	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_audio_reset
_vc4_hdmi_audio_reset:                  ## @vc4_hdmi_audio_reset
	.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), %r14
	movq	8(%rdi), %rbx
	movq	(%rbx), %rdi
	callq	_to_vc4_dev
	movq	_HDMI_INFOFRAME_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vc4_hdmi_stop_packet
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	_VC4_HD_MAI_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_VC4_HD_MAI_CTL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HD_WRITE
	movl	(%rbx), %edi
	movq	_VC4_HD_MAI_CTL_ERRORF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HD_WRITE
	movl	(%rbx), %edi
	movq	_VC4_HD_MAI_CTL_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_HD_WRITE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AUDIO,4,2  ## @HDMI_INFOFRAME_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to stop audio infoframe: %d\n"

	.comm	_VC4_HD_MAI_CTL,4,2             ## @VC4_HD_MAI_CTL
	.comm	_VC4_HD_MAI_CTL_RESET,4,2       ## @VC4_HD_MAI_CTL_RESET
	.comm	_VC4_HD_MAI_CTL_ERRORF,4,2      ## @VC4_HD_MAI_CTL_ERRORF
	.comm	_VC4_HD_MAI_CTL_FLUSH,4,2       ## @VC4_HD_MAI_CTL_FLUSH
	.no_dead_strip	_vc4_hdmi_audio_reset
.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_reset
_vc4_hdmi_audio_reset:                  ; @vc4_hdmi_audio_reset
	.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
	ldp	x19, x20, [x0]
	ldr	x0, [x20]
	bl	_to_vc4_dev
Lloh0:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc4_hdmi_stop_packet
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_2:
Lloh5:
	adrp	x19, _VC4_HD_MAI_CTL@GOTPAGE
Lloh6:
	ldr	x19, [x19, _VC4_HD_MAI_CTL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _VC4_HD_MAI_CTL_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_HD_WRITE
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _VC4_HD_MAI_CTL_ERRORF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_ERRORF@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_HD_WRITE
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _VC4_HD_MAI_CTL_FLUSH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC4_HD_MAI_CTL_FLUSH@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HD_WRITE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AUDIO,4,2  ; @HDMI_INFOFRAME_TYPE_AUDIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to stop audio infoframe: %d\n"

	.comm	_VC4_HD_MAI_CTL,4,2             ; @VC4_HD_MAI_CTL
	.comm	_VC4_HD_MAI_CTL_RESET,4,2       ; @VC4_HD_MAI_CTL_RESET
	.comm	_VC4_HD_MAI_CTL_ERRORF,4,2      ; @VC4_HD_MAI_CTL_ERRORF
	.comm	_VC4_HD_MAI_CTL_FLUSH,4,2       ; @VC4_HD_MAI_CTL_FLUSH
	.no_dead_strip	_vc4_hdmi_audio_reset
.subsections_via_symbols
