	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_dac_detect ## -- Begin function amdgpu_atombios_encoder_dac_detect
	.p2align	4, 0x90
_amdgpu_atombios_encoder_dac_detect:    ## @amdgpu_atombios_encoder_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_amdgpu_encoder
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_to_amdgpu_connector
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_amdgpu_atombios_encoder_dac_load_detect
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_mmBIOS_SCRATCH_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%r15), %eax
	movq	_ATOM_DEVICE_CRT1_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_ATOM_S0_CRT1_MASK@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_3
LBB0_4:
	movq	_ATOM_DEVICE_CRT2_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.5:
	movq	_ATOM_S0_CRT2_MASK@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_3
LBB0_9:
	movq	_ATOM_DEVICE_CV_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	movq	_ATOM_S0_CV_MASK@GOTPCREL(%rip), %rcx
	movq	_ATOM_S0_CV_MASK_A@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%r14d, %edx
	je	LBB0_12
LBB0_3:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_connector_status_unknown@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ATOM_DEVICE_TV1_SUPPORT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	_ATOM_S0_TV1_COMPOSITE@GOTPCREL(%rip), %rax
	movq	_ATOM_S0_TV1_COMPOSITE_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	testl	%r14d, %ecx
	jne	LBB0_8
## %bb.14:
	movq	_ATOM_S0_TV1_SVIDEO@GOTPCREL(%rip), %rcx
	movq	_ATOM_S0_TV1_SVIDEO_A@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%r14d, %edx
	jne	LBB0_8
LBB0_15:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detect returned false \n"

	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_mmBIOS_SCRATCH_0,4,2           ## @mmBIOS_SCRATCH_0
L_.str.1:                               ## @.str.1
	.asciz	"Bios 0 scratch %x %08x\n"

	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ## @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_ATOM_S0_CRT1_MASK,4,2          ## @ATOM_S0_CRT1_MASK
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ## @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_S0_CRT2_MASK,4,2          ## @ATOM_S0_CRT2_MASK
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ## @ATOM_DEVICE_CV_SUPPORT
	.comm	_ATOM_S0_CV_MASK,4,2            ## @ATOM_S0_CV_MASK
	.comm	_ATOM_S0_CV_MASK_A,4,2          ## @ATOM_S0_CV_MASK_A
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ## @ATOM_DEVICE_TV1_SUPPORT
	.comm	_ATOM_S0_TV1_COMPOSITE,4,2      ## @ATOM_S0_TV1_COMPOSITE
	.comm	_ATOM_S0_TV1_COMPOSITE_A,4,2    ## @ATOM_S0_TV1_COMPOSITE_A
	.comm	_ATOM_S0_TV1_SVIDEO,4,2         ## @ATOM_S0_TV1_SVIDEO
	.comm	_ATOM_S0_TV1_SVIDEO_A,4,2       ## @ATOM_S0_TV1_SVIDEO_A
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_dac_detect ; -- Begin function amdgpu_atombios_encoder_dac_detect
	.p2align	2
_amdgpu_atombios_encoder_dac_detect:    ; @amdgpu_atombios_encoder_dac_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x22, x0
	bl	_to_amdgpu_encoder
	mov	x21, x0
	mov	x0, x19
	bl	_to_amdgpu_connector
	mov	x20, x0
	mov	x0, x22
	mov	x1, x19
	bl	_amdgpu_atombios_encoder_dac_load_detect
	cbz	w0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _mmBIOS_SCRATCH_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmBIOS_SCRATCH_0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x19, x0
	ldr	w8, [x21]
	stp	x19, x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATOM_DEVICE_CRT1_SUPPORT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _ATOM_S0_CRT1_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ATOM_S0_CRT1_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w19
	b.ne	LBB0_10
LBB0_3:
Lloh11:
	adrp	x9, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATOM_DEVICE_CRT2_SUPPORT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x9, _ATOM_S0_CRT2_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATOM_S0_CRT2_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w19
	b.ne	LBB0_10
LBB0_5:
Lloh17:
	adrp	x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATOM_DEVICE_CV_SUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh20:
	adrp	x9, _ATOM_S0_CV_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ATOM_S0_CV_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _ATOM_S0_CV_MASK_A@GOTPAGE
Lloh24:
	ldr	x10, [x10, _ATOM_S0_CV_MASK_A@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w19
	b.ne	LBB0_10
LBB0_7:
Lloh26:
	adrp	x9, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ATOM_DEVICE_TV1_SUPPORT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
Lloh29:
	adrp	x8, _ATOM_S0_TV1_COMPOSITE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ATOM_S0_TV1_COMPOSITE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _ATOM_S0_TV1_COMPOSITE_A@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ATOM_S0_TV1_COMPOSITE_A@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.ne	LBB0_10
; %bb.9:
Lloh35:
	adrp	x8, _ATOM_S0_TV1_SVIDEO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ATOM_S0_TV1_SVIDEO@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _ATOM_S0_TV1_SVIDEO_A@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ATOM_S0_TV1_SVIDEO_A@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_13
LBB0_10:
Lloh41:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh42:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh45:
	adrp	x8, _connector_status_unknown@GOTPAGE
Lloh46:
	ldr	x8, [x8, _connector_status_unknown@GOTPAGEOFF]
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh47:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh48:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detect returned false \n"

	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_mmBIOS_SCRATCH_0,4,2           ; @mmBIOS_SCRATCH_0
l_.str.1:                               ; @.str.1
	.asciz	"Bios 0 scratch %x %08x\n"

	.comm	_ATOM_DEVICE_CRT1_SUPPORT,4,2   ; @ATOM_DEVICE_CRT1_SUPPORT
	.comm	_ATOM_S0_CRT1_MASK,4,2          ; @ATOM_S0_CRT1_MASK
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_ATOM_DEVICE_CRT2_SUPPORT,4,2   ; @ATOM_DEVICE_CRT2_SUPPORT
	.comm	_ATOM_S0_CRT2_MASK,4,2          ; @ATOM_S0_CRT2_MASK
	.comm	_ATOM_DEVICE_CV_SUPPORT,4,2     ; @ATOM_DEVICE_CV_SUPPORT
	.comm	_ATOM_S0_CV_MASK,4,2            ; @ATOM_S0_CV_MASK
	.comm	_ATOM_S0_CV_MASK_A,4,2          ; @ATOM_S0_CV_MASK_A
	.comm	_ATOM_DEVICE_TV1_SUPPORT,4,2    ; @ATOM_DEVICE_TV1_SUPPORT
	.comm	_ATOM_S0_TV1_COMPOSITE,4,2      ; @ATOM_S0_TV1_COMPOSITE
	.comm	_ATOM_S0_TV1_COMPOSITE_A,4,2    ; @ATOM_S0_TV1_COMPOSITE_A
	.comm	_ATOM_S0_TV1_SVIDEO,4,2         ; @ATOM_S0_TV1_SVIDEO
	.comm	_ATOM_S0_TV1_SVIDEO_A,4,2       ; @ATOM_S0_TV1_SVIDEO_A
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
.subsections_via_symbols
