	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_reg
_detect_reg:                            ## @detect_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_enable_hpd_clocks
	movq	_REG_HDMI_HPD_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdmi_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_enable_hpd_clocks
	movq	(%rbx), %rdi
	callq	_pm_runtime_put_autosuspend
	movq	_HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPCREL(%rip), %rax
	testl	%r14d, (%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
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HDMI_HPD_INT_STATUS,4,2    ## @REG_HDMI_HPD_INT_STATUS
	.comm	_HDMI_HPD_INT_STATUS_CABLE_DETECTED,4,2 ## @HDMI_HPD_INT_STATUS_CABLE_DETECTED
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_detect_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_reg
_detect_reg:                            ; @detect_reg
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	mov	w1, #1
	bl	_enable_hpd_clocks
Lloh0:
	adrp	x8, _REG_HDMI_HPD_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_HDMI_HPD_INT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdmi_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_enable_hpd_clocks
	ldr	x0, [x19]
	bl	_pm_runtime_put_autosuspend
Lloh3:
	adrp	x8, _HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_HPD_INT_STATUS_CABLE_DETECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _connector_status_connected@GOTPAGE
Lloh7:
	ldr	x9, [x9, _connector_status_connected@GOTPAGEOFF]
Lloh8:
	adrp	x10, _connector_status_disconnected@GOTPAGE
Lloh9:
	ldr	x10, [x10, _connector_status_disconnected@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, 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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HDMI_HPD_INT_STATUS,4,2    ; @REG_HDMI_HPD_INT_STATUS
	.comm	_HDMI_HPD_INT_STATUS_CABLE_DETECTED,4,2 ; @HDMI_HPD_INT_STATUS_CABLE_DETECTED
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_detect_reg
.subsections_via_symbols
