	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_statistics_query_create
_wined3d_statistics_query_create:       ## @wined3d_statistics_query_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	callq	_FIXME
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	_wined3d_statistics_query_create.statistics(%rip), %rcx
	movq	_statistics_query_ops@GOTPCREL(%rip), %r9
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	$8, %r8d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_wined3d_query_init
	addq	$16, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_TRACE
	movq	%r15, (%r14)
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @wined3d_statistics_query_create.statistics
_wined3d_statistics_query_create.statistics:
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device %p, type %#x, parent %p, query %p.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_statistics_query_ops,4,2       ## @statistics_query_ops
L_.str.1:                               ## @.str.1
	.asciz	"Created query %p.\n"

	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
	.no_dead_strip	_wined3d_statistics_query_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_statistics_query_create
_wined3d_statistics_query_create:       ; @wined3d_statistics_query_create
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_FIXME
	bl	_GetProcessHeap
Lloh2:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh5:
	adrp	x3, _wined3d_statistics_query_create.statistics@PAGE
Lloh6:
	add	x3, x3, _wined3d_statistics_query_create.statistics@PAGEOFF
Lloh7:
	adrp	x5, _statistics_query_ops@GOTPAGE
Lloh8:
	ldr	x5, [x5, _statistics_query_ops@GOTPAGEOFF]
	mov	x1, x23
	mov	x2, x22
	mov	w4, #8
	mov	x6, x21
	mov	x7, x20
	bl	_wined3d_query_init
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_TRACE
	str	x24, [x19]
Lloh11:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @wined3d_statistics_query_create.statistics
_wined3d_statistics_query_create.statistics:
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device %p, type %#x, parent %p, query %p.\n"

	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_statistics_query_ops,4,2       ; @statistics_query_ops
l_.str.1:                               ; @.str.1
	.asciz	"Created query %p.\n"

	.comm	_WINED3D_OK,4,2                 ; @WINED3D_OK
	.no_dead_strip	_wined3d_statistics_query_create
.subsections_via_symbols
