	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_audio_startup
_vc4_hdmi_audio_startup:                ## @vc4_hdmi_audio_startup
	.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	%rdi, %r14
	movq	%rsi, %rdi
	callq	_dai_to_hdmi
	movq	%rax, %rbx
	movq	16(%rax), %r15
	movl	4(%r15), %edi
	callq	_to_vc4_dev
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	cmpq	%r14, %rax
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	%r14, 8(%rbx)
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.5:
	movq	_VC4_HDMI_RAM_PACKET_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_READ
	movq	_VC4_HDMI_RAM_PACKET_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_hw_constraint_eld      ## TAILCALL
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VC4_HDMI_RAM_PACKET_CONFIG,4,2 ## @VC4_HDMI_RAM_PACKET_CONFIG
	.comm	_VC4_HDMI_RAM_PACKET_ENABLE,4,2 ## @VC4_HDMI_RAM_PACKET_ENABLE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_vc4_hdmi_audio_startup
.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_startup
_vc4_hdmi_audio_startup:                ; @vc4_hdmi_audio_startup
	.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	x19, x0
	mov	x0, x1
	bl	_dai_to_hdmi
	mov	x20, x0
	ldr	x21, [x0, #16]
	ldr	w0, [x21, #4]
	bl	_to_vc4_dev
	ldr	x8, [x20, #8]
	cmp	x8, #0
	ccmp	x8, x19, #4, ne
	b.ne	LBB0_4
; %bb.1:
	str	x19, [x20, #8]
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _VC4_HDMI_RAM_PACKET_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC4_HDMI_RAM_PACKET_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_HDMI_READ
Lloh3:
	adrp	x8, _VC4_HDMI_RAM_PACKET_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC4_HDMI_RAM_PACKET_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19]
	ldr	x8, [x20]
	ldr	w1, [x8]
	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
	b	_snd_pcm_hw_constraint_eld
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VC4_HDMI_RAM_PACKET_CONFIG,4,2 ; @VC4_HDMI_RAM_PACKET_CONFIG
	.comm	_VC4_HDMI_RAM_PACKET_ENABLE,4,2 ; @VC4_HDMI_RAM_PACKET_ENABLE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_vc4_hdmi_audio_startup
.subsections_via_symbols
