	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_head_mthd_scanoutpos      ## -- Begin function nvkm_head_mthd_scanoutpos
	.p2align	4, 0x90
_nvkm_head_mthd_scanoutpos:             ## @nvkm_head_mthd_scanoutpos
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, -56(%rbp)
	movl	%ecx, -44(%rbp)
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	callq	_nvif_ioctl
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	32(%r13), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nvif_unpack
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	40(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvif_ioctl
	movq	(%r14), %rax
	leaq	8(%r14), %rsi
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	28(%r14), %ecx
	movl	%ecx, 20(%r13)
	movl	24(%r14), %eax
	movl	%eax, 36(%r13)
	movl	20(%r14), %eax
	movl	%eax, 32(%r13)
	movl	16(%r14), %eax
	movl	%eax, 16(%r13)
	movl	12(%r14), %edx
	movl	%edx, 28(%r13)
	movl	8(%r14), %edx
	movl	%edx, 24(%r13)
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	leaq	12(%r13), %rsi
	leaq	8(%r13), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	callq	_ktime_to_ns
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_5
LBB0_3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head scanoutpos size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"head scanoutpos vers %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_head_mthd_scanoutpos      ; -- Begin function nvkm_head_mthd_scanoutpos
	.p2align	2
_nvkm_head_mthd_scanoutpos:             ; @nvkm_head_mthd_scanoutpos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stur	x2, [x29, #-40]
	stur	w3, [x29, #-44]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	bl	_nvif_ioctl
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	ldr	q0, [x19, #32]
	str	q0, [sp, #32]
	sub	x1, x29, #40
	sub	x2, x29, #44
	mov	x3, sp
	mov	x0, x22
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_nvif_unpack
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w2, [x19, #40]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_nvif_ioctl
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x1, x20, #8
	mov	x0, x20
	blr	x8
	ldr	w9, [x20, #28]
	str	w9, [x19, #20]
	ldr	w8, [x20, #24]
	str	w8, [x19, #36]
	ldr	w8, [x20, #20]
	str	w8, [x19, #32]
	ldr	w8, [x20, #16]
	str	w8, [x19, #16]
	ldr	w10, [x20, #12]
	str	w10, [x19, #28]
	ldr	w10, [x20, #8]
	str	w10, [x19, #24]
	cbz	w9, LBB0_4
; %bb.2:
	cbz	w8, LBB0_4
; %bb.3:
	bl	_ktime_get
	bl	_ktime_to_ns
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x1, x19, #12
	add	x2, x19, #8
	mov	x0, x20
	blr	x8
	bl	_ktime_get
	bl	_ktime_to_ns
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9, #8]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head scanoutpos size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"head scanoutpos vers %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
.subsections_via_symbols
