	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_audio_trigger
_vc4_hdmi_audio_trigger:                ## @vc4_hdmi_audio_trigger
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rdi
	movl	%esi, %ebx
	callq	_dai_to_hdmi
	movq	%rax, %r14
	movq	8(%rax), %r15
	movq	(%r15), %rdi
	callq	_to_vc4_dev
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_vc4_hdmi_set_audio_infoframe
	movq	_VC4_HDMI_TX_PHY_CTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_HDMI_READ
	movq	_VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_HDMI_WRITE
	movq	_VC4_HD_MAI_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	movq	_VC4_HD_MAI_CTL_CHNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movq	_VC4_HD_MAI_CTL_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_HD_WRITE
	jmp	LBB0_4
LBB0_3:
	movq	_VC4_HD_MAI_CTL@GOTPCREL(%rip), %rax
	movq	_VC4_HD_MAI_CTL_DLATE@GOTPCREL(%rip), %rcx
	movq	_VC4_HD_MAI_CTL_ERRORE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_VC4_HD_MAI_CTL_ERRORF@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_HD_WRITE
	movq	_VC4_HDMI_TX_PHY_CTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_HDMI_READ
	movq	_VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_HDMI_WRITE
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC4_HDMI_TX_PHY_CTL0,4,2       ## @VC4_HDMI_TX_PHY_CTL0
	.comm	_VC4_HDMI_TX_PHY_RNG_PWRDN,4,2  ## @VC4_HDMI_TX_PHY_RNG_PWRDN
	.comm	_VC4_HD_MAI_CTL,4,2             ## @VC4_HD_MAI_CTL
	.comm	_VC4_HD_MAI_CTL_CHNUM,4,2       ## @VC4_HD_MAI_CTL_CHNUM
	.comm	_VC4_HD_MAI_CTL_ENABLE,4,2      ## @VC4_HD_MAI_CTL_ENABLE
	.comm	_VC4_HD_MAI_CTL_DLATE,4,2       ## @VC4_HD_MAI_CTL_DLATE
	.comm	_VC4_HD_MAI_CTL_ERRORE,4,2      ## @VC4_HD_MAI_CTL_ERRORE
	.comm	_VC4_HD_MAI_CTL_ERRORF,4,2      ## @VC4_HD_MAI_CTL_ERRORF
	.no_dead_strip	_vc4_hdmi_audio_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_hdmi_audio_trigger
_vc4_hdmi_audio_trigger:                ; @vc4_hdmi_audio_trigger
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, x2
	mov	x21, x1
	bl	_dai_to_hdmi
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x0, [x20]
	bl	_to_vc4_dev
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_vc4_hdmi_set_audio_infoframe
Lloh0:
	adrp	x8, _VC4_HDMI_TX_PHY_CTL0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC4_HDMI_TX_PHY_CTL0@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_HDMI_READ
Lloh3:
	adrp	x8, _VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_HDMI_WRITE
Lloh6:
	adrp	x8, _VC4_HD_MAI_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC4_HD_MAI_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	ldr	w0, [x19]
Lloh9:
	adrp	x8, _VC4_HD_MAI_CTL_CHNUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_CHNUM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
Lloh12:
	adrp	x8, _VC4_HD_MAI_CTL_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_HD_WRITE
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _VC4_HD_MAI_CTL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VC4_HD_MAI_CTL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _VC4_HD_MAI_CTL_DLATE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_DLATE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _VC4_HD_MAI_CTL_ERRORE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VC4_HD_MAI_CTL_ERRORE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _VC4_HD_MAI_CTL_ERRORF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VC4_HD_MAI_CTL_ERRORF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_HD_WRITE
Lloh27:
	adrp	x8, _VC4_HDMI_TX_PHY_CTL0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VC4_HDMI_TX_PHY_CTL0@GOTPAGEOFF]
Lloh29:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_HDMI_READ
Lloh30:
	adrp	x8, _VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VC4_HDMI_TX_PHY_RNG_PWRDN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_HDMI_WRITE
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_VC4_HDMI_TX_PHY_CTL0,4,2       ; @VC4_HDMI_TX_PHY_CTL0
	.comm	_VC4_HDMI_TX_PHY_RNG_PWRDN,4,2  ; @VC4_HDMI_TX_PHY_RNG_PWRDN
	.comm	_VC4_HD_MAI_CTL,4,2             ; @VC4_HD_MAI_CTL
	.comm	_VC4_HD_MAI_CTL_CHNUM,4,2       ; @VC4_HD_MAI_CTL_CHNUM
	.comm	_VC4_HD_MAI_CTL_ENABLE,4,2      ; @VC4_HD_MAI_CTL_ENABLE
	.comm	_VC4_HD_MAI_CTL_DLATE,4,2       ; @VC4_HD_MAI_CTL_DLATE
	.comm	_VC4_HD_MAI_CTL_ERRORE,4,2      ; @VC4_HD_MAI_CTL_ERRORE
	.comm	_VC4_HD_MAI_CTL_ERRORF,4,2      ; @VC4_HD_MAI_CTL_ERRORF
	.no_dead_strip	_vc4_hdmi_audio_trigger
.subsections_via_symbols
