	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_dac_detect
_nv04_dac_detect:                       ## @nv04_dac_detect
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nouveau_drm
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_nv_two_heads
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVSetOwner
LBB0_2:
	movq	_NV_CIO_CR_MODE_INDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadVgaCrtc
	movl	(%r12), %edx
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	%eax, %ecx
	orl	$128, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVWriteVgaCrtc
	movq	_NV_VIO_SR_CLOCK_INDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadVgaSeq
	movl	(%r12), %edx
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	%eax, %ecx
	andl	$-33, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVWriteVgaSeq
	movq	_NV_PRAMDAC_TEST_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadRAMDAC
	movl	(%r12), %edx
	movq	_NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	andl	%eax, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVWriteRAMDAC
	movl	$10, %edi
	callq	_msleep
	movq	_NV_CIO_CRE_PIXEL_INDEX@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadVgaCrtc
	movl	%eax, %r12d
	movl	(%r13), %r13d
	movq	_NV_CIO_CRE_PIXEL_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MASK
	notl	%eax
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	andl	%eax, %r12d
	andl	$-129, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_NVWriteVgaCrtc
	movq	_NV_CIO_CRE_RPC1_INDEX@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadVgaCrtc
	movl	(%r12), %edx
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%eax, %ecx
	andl	$-193, %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVWriteVgaCrtc
	movq	_NV_PRMDIO_READ_MODE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movq	_NV_PRMDIO_PALETTE_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd08
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd08
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd08
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_NV_PRMDIO_PIXEL_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_nv_rd08
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movq	_NV_PRAMDAC_GENERAL_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVReadRAMDAC
	movl	(%r12), %edx
	movq	_NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS@GOTPCREL(%rip), %rsi
	movq	_NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	notl	%ecx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	andl	%eax, %ecx
	movq	_NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_NVWriteRAMDAC
	movl	$8, %ecx
	leaq	-56(%rbp), %r13
	movq	_MAX_SAMPLE_PAIRS@GOTPCREL(%rip), %r12
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	_NV_PRMDIO_WRITE_MODE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movq	_NV_PRMDIO_PALETTE_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movl	(%rbx), %esi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nv_wr08
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sample_load_twice
	testq	%rax, %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %eax
	cmpl	-52(%rbp), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	movl	(%r12), %ecx
	cmpl	%ecx, %r15d
	jl	LBB0_4
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %edx
	cmpl	$22, %ebx
	ja	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %r15d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %ecx
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_3
	jmp	LBB0_13
LBB0_11:
	movl	%ebx, %edx
LBB0_12:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_13:
	movq	_NV_PRMDIO_PIXEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%edx, %r12d
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr08
	movq	_NV_PRAMDAC_GENERAL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	callq	_NVWriteRAMDAC
	movq	_NV_PRMDIO_WRITE_MODE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_nv_wr08
	movq	_NV_PRMDIO_PALETTE_DATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr08
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr08
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr08
	movq	_NV_PRAMDAC_TEST_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	callq	_NVWriteRAMDAC
	movq	_NV_CIO_CRE_PIXEL_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	callq	_NVWriteVgaCrtc
	movq	_NV_CIO_CRE_RPC1_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	callq	_NVWriteVgaCrtc
	movq	_NV_VIO_SR_CLOCK_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	callq	_NVWriteVgaSeq
	movq	_NV_CIO_CR_MODE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	callq	_NVWriteVgaCrtc
	cmpl	$24, %r12d
	jne	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_NV_DEBUG
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.17:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_CIO_CR_MODE_INDEX,4,2       ## @NV_CIO_CR_MODE_INDEX
	.comm	_NV_VIO_SR_CLOCK_INDEX,4,2      ## @NV_VIO_SR_CLOCK_INDEX
	.comm	_NV_PRAMDAC_TEST_CONTROL,4,2    ## @NV_PRAMDAC_TEST_CONTROL
	.comm	_NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF,4,2 ## @NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF
	.comm	_NV_CIO_CRE_PIXEL_INDEX,4,2     ## @NV_CIO_CRE_PIXEL_INDEX
	.comm	_NV_CIO_CRE_PIXEL_FORMAT,4,2    ## @NV_CIO_CRE_PIXEL_FORMAT
	.comm	_NV_CIO_CRE_RPC1_INDEX,4,2      ## @NV_CIO_CRE_RPC1_INDEX
	.comm	_NV_PRMDIO_READ_MODE_ADDRESS,4,2 ## @NV_PRMDIO_READ_MODE_ADDRESS
	.comm	_NV_PRMDIO_PALETTE_DATA,4,2     ## @NV_PRMDIO_PALETTE_DATA
	.comm	_NV_PRMDIO_PIXEL_MASK,4,2       ## @NV_PRMDIO_PIXEL_MASK
	.comm	_NV_PRAMDAC_GENERAL_CONTROL,4,2 ## @NV_PRAMDAC_GENERAL_CONTROL
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS,4,2 ## @NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM,4,2 ## @NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON,4,2 ## @NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON
	.comm	_NV_PRMDIO_WRITE_MODE_ADDRESS,4,2 ## @NV_PRMDIO_WRITE_MODE_ADDRESS
	.comm	_MAX_SAMPLE_PAIRS,4,2           ## @MAX_SAMPLE_PAIRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Load detected on head A\n"

	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_nv04_dac_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_dac_detect
_nv04_dac_detect:                       ; @nv04_dac_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_nouveau_dev
	mov	x22, x0
	mov	x0, x19
	bl	_nouveau_drm
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x0, x19
	bl	_nv_two_heads
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_NVSetOwner
LBB0_2:
Lloh3:
	adrp	x20, _NV_CIO_CR_MODE_INDEX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NV_CIO_CR_MODE_INDEX@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadVgaCrtc
	ldr	w2, [x20]
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	orr	w3, w0, #0x80
	mov	x0, x19
	mov	w1, #0
	bl	_NVWriteVgaCrtc
Lloh5:
	adrp	x20, _NV_VIO_SR_CLOCK_INDEX@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NV_VIO_SR_CLOCK_INDEX@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadVgaSeq
	ldr	w2, [x20]
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	and	w3, w0, #0xffffffdf
	mov	x0, x19
	mov	w1, #0
	bl	_NVWriteVgaSeq
Lloh7:
	adrp	x20, _NV_PRAMDAC_TEST_CONTROL@GOTPAGE
Lloh8:
	ldr	x20, [x20, _NV_PRAMDAC_TEST_CONTROL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadRAMDAC
	ldr	w2, [x20]
Lloh9:
	adrp	x8, _NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	bic	w3, w0, w8
	mov	x0, x19
	mov	w1, #0
	bl	_NVWriteRAMDAC
	mov	w0, #10
	bl	_msleep
Lloh12:
	adrp	x20, _NV_CIO_CRE_PIXEL_INDEX@GOTPAGE
Lloh13:
	ldr	x20, [x20, _NV_CIO_CRE_PIXEL_INDEX@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadVgaCrtc
	mov	x21, x0
	ldr	w20, [x20]
Lloh14:
	adrp	x8, _NV_CIO_CRE_PIXEL_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NV_CIO_CRE_PIXEL_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_MASK
	str	w21, [sp, #32]                  ; 4-byte Folded Spill
	bic	w8, w21, w0
	and	w3, w8, #0xffffff7f
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_NVWriteVgaCrtc
Lloh17:
	adrp	x20, _NV_CIO_CRE_RPC1_INDEX@GOTPAGE
Lloh18:
	ldr	x20, [x20, _NV_CIO_CRE_RPC1_INDEX@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadVgaCrtc
	ldr	w2, [x20]
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	and	w3, w0, #0xffffff3f
	mov	x0, x19
	mov	w1, #0
	bl	_NVWriteVgaCrtc
Lloh19:
	adrp	x8, _NV_PRMDIO_READ_MODE_ADDRESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NV_PRMDIO_READ_MODE_ADDRESS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
Lloh22:
	adrp	x28, _NV_PRMDIO_PALETTE_DATA@GOTPAGE
Lloh23:
	ldr	x28, [x28, _NV_PRMDIO_PALETTE_DATA@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x22
	bl	_nv_rd08
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w1, [x28]
	mov	x0, x22
	bl	_nv_rd08
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w1, [x28]
	mov	x0, x22
	bl	_nv_rd08
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
Lloh24:
	adrp	x20, _NV_PRMDIO_PIXEL_MASK@GOTPAGE
Lloh25:
	ldr	x20, [x20, _NV_PRMDIO_PIXEL_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x22
	bl	_nv_rd08
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w1, [x20]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
Lloh26:
	adrp	x24, _NV_PRAMDAC_GENERAL_CONTROL@GOTPAGE
Lloh27:
	ldr	x24, [x24, _NV_PRAMDAC_GENERAL_CONTROL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #0
	bl	_NVReadRAMDAC
	mov	x23, x0
	ldr	w2, [x24]
Lloh28:
	adrp	x8, _NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh34:
	adrp	x9, _NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON@GOTPAGE
Lloh35:
	ldr	x9, [x9, _NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x19
	mov	w1, #0
	bl	_NVWriteRAMDAC
	mov	w27, #8
Lloh37:
	adrp	x25, _NV_PRMDIO_WRITE_MODE_ADDRESS@GOTPAGE
Lloh38:
	ldr	x25, [x25, _NV_PRMDIO_WRITE_MODE_ADDRESS@GOTPAGEOFF]
Lloh39:
	adrp	x20, _MAX_SAMPLE_PAIRS@GOTPAGE
Lloh40:
	ldr	x20, [x20, _MAX_SAMPLE_PAIRS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	mov	x2, x27
	bl	_nv_wr08
	mov	w21, #0
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x1, sp, #48
	mov	x0, x19
	bl	_sample_load_twice
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldp	w8, w9, [sp, #48]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w21, w21, #1
	ldr	w9, [x20]
	cmp	w21, w9
	b.lt	LBB0_4
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w27, #1
	cmp	w27, #22
	b.hi	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w9
	ccmp	w8, #0, #4, ne
	mov	x27, x26
	b.ne	LBB0_3
	b	LBB0_11
LBB0_10:
	mov	x26, x27
LBB0_11:
Lloh41:
	adrp	x8, _NV_PRMDIO_PIXEL_MASK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NV_PRMDIO_PIXEL_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_nv_wr08
	ldr	w2, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x23
	bl	_NVWriteRAMDAC
	ldr	w1, [x25]
	mov	x0, x22
	mov	w2, #0
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_nv_wr08
	ldr	w1, [x28]
	mov	x0, x22
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_nv_wr08
Lloh44:
	adrp	x8, _NV_PRAMDAC_TEST_CONTROL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NV_PRAMDAC_TEST_CONTROL@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldr	w3, [sp, #36]                   ; 4-byte Folded Reload
	bl	_NVWriteRAMDAC
Lloh47:
	adrp	x8, _NV_CIO_CRE_PIXEL_INDEX@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NV_CIO_CRE_PIXEL_INDEX@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldr	w3, [sp, #32]                   ; 4-byte Folded Reload
	bl	_NVWriteVgaCrtc
Lloh50:
	adrp	x8, _NV_CIO_CRE_RPC1_INDEX@GOTPAGE
Lloh51:
	ldr	x8, [x8, _NV_CIO_CRE_RPC1_INDEX@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	bl	_NVWriteVgaCrtc
Lloh53:
	adrp	x8, _NV_VIO_SR_CLOCK_INDEX@GOTPAGE
Lloh54:
	ldr	x8, [x8, _NV_VIO_SR_CLOCK_INDEX@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldr	w3, [sp, #40]                   ; 4-byte Folded Reload
	bl	_NVWriteVgaSeq
Lloh56:
	adrp	x8, _NV_CIO_CR_MODE_INDEX@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NV_CIO_CR_MODE_INDEX@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldr	w3, [sp, #44]                   ; 4-byte Folded Reload
	bl	_NVWriteVgaCrtc
	cmp	w26, #24
	b.ne	LBB0_13
; %bb.12:
Lloh59:
	adrp	x1, l_.str@PAGE
Lloh60:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_NV_DEBUG
Lloh61:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh62:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh63:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh64:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldr	x8, [sp, #56]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_CIO_CR_MODE_INDEX,4,2       ; @NV_CIO_CR_MODE_INDEX
	.comm	_NV_VIO_SR_CLOCK_INDEX,4,2      ; @NV_VIO_SR_CLOCK_INDEX
	.comm	_NV_PRAMDAC_TEST_CONTROL,4,2    ; @NV_PRAMDAC_TEST_CONTROL
	.comm	_NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF,4,2 ; @NV_PRAMDAC_TEST_CONTROL_PWRDWN_DAC_OFF
	.comm	_NV_CIO_CRE_PIXEL_INDEX,4,2     ; @NV_CIO_CRE_PIXEL_INDEX
	.comm	_NV_CIO_CRE_PIXEL_FORMAT,4,2    ; @NV_CIO_CRE_PIXEL_FORMAT
	.comm	_NV_CIO_CRE_RPC1_INDEX,4,2      ; @NV_CIO_CRE_RPC1_INDEX
	.comm	_NV_PRMDIO_READ_MODE_ADDRESS,4,2 ; @NV_PRMDIO_READ_MODE_ADDRESS
	.comm	_NV_PRMDIO_PALETTE_DATA,4,2     ; @NV_PRMDIO_PALETTE_DATA
	.comm	_NV_PRMDIO_PIXEL_MASK,4,2       ; @NV_PRMDIO_PIXEL_MASK
	.comm	_NV_PRAMDAC_GENERAL_CONTROL,4,2 ; @NV_PRAMDAC_GENERAL_CONTROL
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS,4,2 ; @NV_PRAMDAC_GENERAL_CONTROL_BPC_8BITS
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM,4,2 ; @NV_PRAMDAC_GENERAL_CONTROL_TERMINATION_75OHM
	.comm	_NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON,4,2 ; @NV_PRAMDAC_GENERAL_CONTROL_PIXMIX_ON
	.comm	_NV_PRMDIO_WRITE_MODE_ADDRESS,4,2 ; @NV_PRMDIO_WRITE_MODE_ADDRESS
	.comm	_MAX_SAMPLE_PAIRS,4,2           ; @MAX_SAMPLE_PAIRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Load detected on head A\n"

	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_nv04_dac_detect
.subsections_via_symbols
