	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oaktrail_hdmi_detect
_oaktrail_hdmi_detect:                  ## @oaktrail_hdmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_HDMI_HSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_READ
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_HDMI_DETECT_HDP@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_HSR,4,2                   ## @HDMI_HSR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI_HSR %x\n"

	.comm	_HDMI_DETECT_HDP,4,2            ## @HDMI_DETECT_HDP
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_oaktrail_hdmi_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oaktrail_hdmi_detect
_oaktrail_hdmi_detect:                  ; @oaktrail_hdmi_detect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _HDMI_HSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_HSR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HDMI_READ
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_KMS
Lloh5:
	adrp	x8, _HDMI_DETECT_HDP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_DETECT_HDP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _connector_status_disconnected@GOTPAGE
Lloh9:
	ldr	x9, [x9, _connector_status_disconnected@GOTPAGEOFF]
Lloh10:
	adrp	x10, _connector_status_connected@GOTPAGE
Lloh11:
	ldr	x10, [x10, _connector_status_connected@GOTPAGEOFF]
	tst	w8, w19
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_HSR,4,2                   ; @HDMI_HSR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI_HSR %x\n"

	.comm	_HDMI_DETECT_HDP,4,2            ; @HDMI_DETECT_HDP
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_oaktrail_hdmi_detect
.subsections_via_symbols
