	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_hotplug_enable
_cdv_hotplug_enable:                    ## @cdv_hotplug_enable
	.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	_PORT_HOTPLUG_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	callq	_REG_READ
	movq	_HDMIB_HOTPLUG_INT_EN@GOTPCREL(%rip), %rcx
	movq	_HDMIC_HOTPLUG_INT_EN@GOTPCREL(%rip), %rdx
	movq	_HDMID_HOTPLUG_INT_EN@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_CRT_HOTPLUG_INT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_REG_WRITE
	movq	_PORT_HOTPLUG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_REG_READ
	movl	%ebx, %edi
LBB0_3:
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_HOTPLUG_EN,4,2            ## @PORT_HOTPLUG_EN
	.comm	_HDMIB_HOTPLUG_INT_EN,4,2       ## @HDMIB_HOTPLUG_INT_EN
	.comm	_HDMIC_HOTPLUG_INT_EN,4,2       ## @HDMIC_HOTPLUG_INT_EN
	.comm	_HDMID_HOTPLUG_INT_EN,4,2       ## @HDMID_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_INT_EN,4,2         ## @CRT_HOTPLUG_INT_EN
	.comm	_PORT_HOTPLUG_STAT,4,2          ## @PORT_HOTPLUG_STAT
	.no_dead_strip	_cdv_hotplug_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_hotplug_enable
_cdv_hotplug_enable:                    ; @cdv_hotplug_enable
	.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	x19, _PORT_HOTPLUG_EN@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PORT_HOTPLUG_EN@GOTPAGEOFF]
	ldr	w0, [x19]
	cbz	w1, LBB0_2
; %bb.1:
	bl	_REG_READ
Lloh2:
	adrp	x8, _HDMIB_HOTPLUG_INT_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMIB_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HDMIC_HOTPLUG_INT_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMIC_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh7:
	adrp	x10, _HDMID_HOTPLUG_INT_EN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _HDMID_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _CRT_HOTPLUG_INT_EN@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CRT_HOTPLUG_INT_EN@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w1, w8, w11
	ldr	w0, [x19]
	b	LBB0_3
LBB0_2:
	bl	_REG_WRITE
Lloh14:
	adrp	x8, _PORT_HOTPLUG_STAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PORT_HOTPLUG_STAT@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x1, x0
	mov	x0, x19
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_HOTPLUG_EN,4,2            ; @PORT_HOTPLUG_EN
	.comm	_HDMIB_HOTPLUG_INT_EN,4,2       ; @HDMIB_HOTPLUG_INT_EN
	.comm	_HDMIC_HOTPLUG_INT_EN,4,2       ; @HDMIC_HOTPLUG_INT_EN
	.comm	_HDMID_HOTPLUG_INT_EN,4,2       ; @HDMID_HOTPLUG_INT_EN
	.comm	_CRT_HOTPLUG_INT_EN,4,2         ; @CRT_HOTPLUG_INT_EN
	.comm	_PORT_HOTPLUG_STAT,4,2          ; @PORT_HOTPLUG_STAT
	.no_dead_strip	_cdv_hotplug_enable
.subsections_via_symbols
