	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wined3d_timestamp_query_create
_wined3d_timestamp_query_create:        ## @wined3d_timestamp_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, %r9
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	callq	_TRACE
	movq	(%r14), %rax
	movq	_ARB_TIMER_QUERY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_1
## %bb.2:
	movl	$8, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rcx
	addq	$4, %rcx
	movq	_timestamp_query_ops@GOTPCREL(%rip), %r9
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	$4, %r8d
	pushq	%r15
	pushq	%r12
	callq	_wined3d_query_init
	addq	$16, %rsp
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	_WINED3D_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	_WINED3DERR_NOTAVAILABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_5:
	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,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device %p, type %#x, parent %p, parent_ops %p, query %p.\n"

	.comm	_ARB_TIMER_QUERY,8,3            ## @ARB_TIMER_QUERY
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported in local OpenGL implementation: ARB_TIMER_QUERY.\n"

	.comm	_WINED3DERR_NOTAVAILABLE,4,2    ## @WINED3DERR_NOTAVAILABLE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_timestamp_query_ops,4,2        ## @timestamp_query_ops
L_.str.2:                               ## @.str.2
	.asciz	"Created query %p.\n"

	.comm	_WINED3D_OK,4,2                 ## @WINED3D_OK
	.no_dead_strip	_wined3d_timestamp_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_timestamp_query_create
_wined3d_timestamp_query_create:        ; @wined3d_timestamp_query_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x24, [x0]
	stp	x3, x4, [sp, #24]
	stp	x22, x2, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	x8, [x24]
Lloh2:
	adrp	x9, _ARB_TIMER_QUERY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ARB_TIMER_QUERY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w0, #8
	bl	_heap_alloc_zero
	cbz	x0, LBB0_4
; %bb.2:
	mov	x24, x0
	add	x3, x0, #4
Lloh5:
	adrp	x5, _timestamp_query_ops@GOTPAGE
Lloh6:
	ldr	x5, [x5, _timestamp_query_ops@GOTPAGEOFF]
	mov	x1, x23
	mov	x2, x22
	mov	w4, #4
	mov	x6, x21
	mov	x7, x20
	bl	_wined3d_query_init
	str	x24, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	str	x24, [x19]
Lloh9:
	adrp	x8, _WINED3D_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WINED3D_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
Lloh13:
	adrp	x8, _WINED3DERR_NOTAVAILABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WINED3DERR_NOTAVAILABLE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device %p, type %#x, parent %p, parent_ops %p, query %p.\n"

	.comm	_ARB_TIMER_QUERY,8,3            ; @ARB_TIMER_QUERY
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported in local OpenGL implementation: ARB_TIMER_QUERY.\n"

	.comm	_WINED3DERR_NOTAVAILABLE,4,2    ; @WINED3DERR_NOTAVAILABLE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_timestamp_query_ops,4,2        ; @timestamp_query_ops
l_.str.2:                               ; @.str.2
	.asciz	"Created query %p.\n"

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