	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_dac_sense                 ## -- Begin function nv50_dac_sense
	.p2align	4, 0x90
_nv50_dac_sense:                        ## @nv50_dac_sense
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	callq	_nv50_ior_base
	movl	%eax, %r12d
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*(%rax)
	addl	$6397964, %r12d                 ## imm = 0x61A00C
	orl	$1048576, %r13d                 ## imm = 0x100000
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_nvkm_wr32
	movl	$9, %edi
	callq	_mdelay
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_udelay
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_nvkm_mask
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	*(%rax)
	movl	%r15d, %eax
	shrl	$27, %eax
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r14d
	andl	$7, %eax
	testl	%r15d, %r15d
	cmovsl	%eax, %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_dac_sense                 ; -- Begin function nv50_dac_sense
	.p2align	2
_nv50_dac_sense:                        ; @nv50_dac_sense
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	bl	_nv50_ior_base
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	blr	x8
	add	w8, w22, #1562, lsl #12         ; =6397952
	add	w22, w8, #12
	orr	w2, w19, #0x100000
	mov	x0, x21
	mov	x1, x22
	bl	_nvkm_wr32
	mov	w0, #9
	bl	_mdelay
	mov	w0, #500
	bl	_udelay
	mov	x0, x21
	mov	x1, x22
	mov	w2, #-1
	mov	w3, #0
	bl	_nvkm_mask
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	blr	x8
	ubfx	w8, w19, #27, #3
Lloh0:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w19, #0
	csneg	w0, w8, w9, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
