	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_audio_control
_hdmi_audio_control:                    ## @hdmi_audio_control
	.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
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %rbx
	cmpl	$0, 8(%rdi)
	movq	_HDMI_AUI_CON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDMI_AUI_CON_NO_TRAN@GOTPCREL(%rip), %rax
	cmoveq	_HDMI_AVI_CON_EVERY_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HDMI_ASP_DIS@GOTPCREL(%rip), %r14
	cmoveq	_HDMI_ASP_EN@GOTPCREL(%rip), %r14
	callq	_hdmi_reg_writeb
	movq	_HDMI_CON_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	_HDMI_ASP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hdmi_reg_writemask             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_AUI_CON,4,2               ## @HDMI_AUI_CON
	.comm	_HDMI_AVI_CON_EVERY_VSYNC,4,2   ## @HDMI_AVI_CON_EVERY_VSYNC
	.comm	_HDMI_AUI_CON_NO_TRAN,4,2       ## @HDMI_AUI_CON_NO_TRAN
	.comm	_HDMI_CON_0,4,2                 ## @HDMI_CON_0
	.comm	_HDMI_ASP_EN,4,2                ## @HDMI_ASP_EN
	.comm	_HDMI_ASP_DIS,4,2               ## @HDMI_ASP_DIS
	.comm	_HDMI_ASP_MASK,4,2              ## @HDMI_ASP_MASK
	.no_dead_strip	_hdmi_audio_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_audio_control
_hdmi_audio_control:                    ; @hdmi_audio_control
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _HDMI_AUI_CON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDMI_AUI_CON@GOTPAGEOFF]
Lloh2:
	adrp	x10, _HDMI_AVI_CON_EVERY_VSYNC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HDMI_AVI_CON_EVERY_VSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	adrp	x9, _HDMI_AUI_CON_NO_TRAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_AUI_CON_NO_TRAN@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _HDMI_ASP_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDMI_ASP_EN@GOTPAGEOFF]
Lloh9:
	adrp	x9, _HDMI_ASP_DIS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDMI_ASP_DIS@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	bl	_hdmi_reg_writeb
Lloh11:
	adrp	x8, _HDMI_CON_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HDMI_CON_0@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _HDMI_ASP_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDMI_ASP_MASK@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hdmi_reg_writemask
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_AUI_CON,4,2               ; @HDMI_AUI_CON
	.comm	_HDMI_AVI_CON_EVERY_VSYNC,4,2   ; @HDMI_AVI_CON_EVERY_VSYNC
	.comm	_HDMI_AUI_CON_NO_TRAN,4,2       ; @HDMI_AUI_CON_NO_TRAN
	.comm	_HDMI_CON_0,4,2                 ; @HDMI_CON_0
	.comm	_HDMI_ASP_EN,4,2                ; @HDMI_ASP_EN
	.comm	_HDMI_ASP_DIS,4,2               ; @HDMI_ASP_DIS
	.comm	_HDMI_ASP_MASK,4,2              ; @HDMI_ASP_MASK
	.no_dead_strip	_hdmi_audio_control
.subsections_via_symbols
