	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_audio_init
_vc4_hdmi_audio_init:                   ## @vc4_hdmi_audio_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	136(%rdi), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_find_property
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_address
	movq	%rax, %rdi
	callq	_be32_to_cpup
	movq	_VC4_HD_MAI_DATA@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, 40(%r15)
	movq	_DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movl	$2, 32(%r15)
	movq	_pcm_conf@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_snd_dmaengine_pcm_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	jmp	LBB0_12
LBB0_4:
	movq	_vc4_hdmi_audio_cpu_dai_comp@GOTPCREL(%rip), %rsi
	movq	_vc4_hdmi_audio_cpu_dai_drv@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_devm_snd_soc_register_component
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movq	_vc4_hdmi_audio_component_drv@GOTPCREL(%rip), %rsi
	movq	_vc4_hdmi_audio_codec_dai_drv@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_devm_snd_soc_register_component
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	leaq	80(%r15), %r13
	leaq	48(%r15), %rbx
	leaq	24(%r15), %rax
	movq	%rax, 128(%r15)
	leaq	8(%r15), %rax
	movq	%rax, 120(%r15)
	movq	%r15, 112(%r15)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 80(%r15)
	movl	$1, 88(%r15)
	leaq	L_.str.5(%rip), %rax
	movq	%rax, 96(%r15)
	leaq	L_.str.6(%rip), %rax
	movq	%rax, 104(%r15)
	movl	(%r12), %eax
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	callq	_dev_name
	movq	128(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_dev_name
	movq	120(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_dev_name
	movq	112(%r15), %rcx
	movq	%rax, (%rcx)
	movq	%r13, 72(%r15)
	movl	$1, 48(%r15)
	leaq	L_.str.7(%rip), %rax
	movq	%rax, 56(%r15)
	movq	%r14, 64(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_snd_soc_card_set_drvdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_snd_soc_register_card
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmas"

L_.str.1:                               ## @.str.1
	.asciz	"'dmas' DT property is missing, no HDMI audio\n"

	.comm	_VC4_HD_MAI_DATA,4,2            ## @VC4_HD_MAI_DATA
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ## @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_pcm_conf,4,2                   ## @pcm_conf
L_.str.2:                               ## @.str.2
	.asciz	"Could not register PCM component: %d\n"

	.comm	_vc4_hdmi_audio_cpu_dai_comp,4,2 ## @vc4_hdmi_audio_cpu_dai_comp
	.comm	_vc4_hdmi_audio_cpu_dai_drv,4,2 ## @vc4_hdmi_audio_cpu_dai_drv
L_.str.3:                               ## @.str.3
	.asciz	"Could not register CPU DAI: %d\n"

	.comm	_vc4_hdmi_audio_component_drv,4,2 ## @vc4_hdmi_audio_component_drv
	.comm	_vc4_hdmi_audio_codec_dai_drv,4,2 ## @vc4_hdmi_audio_codec_dai_drv
L_.str.4:                               ## @.str.4
	.asciz	"Could not register component: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"MAI"

L_.str.6:                               ## @.str.6
	.asciz	"MAI PCM"

L_.str.7:                               ## @.str.7
	.asciz	"vc4-hdmi"

L_.str.8:                               ## @.str.8
	.asciz	"Could not register sound card: %d\n"

	.no_dead_strip	_vc4_hdmi_audio_init
.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_init
_vc4_hdmi_audio_init:                   ; @vc4_hdmi_audio_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0, #136]
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_of_find_property
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_of_get_address
	bl	_be32_to_cpup
Lloh2:
	adrp	x8, _VC4_HD_MAI_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC4_HD_MAI_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w8, w8, w0
	str	w8, [x20, #40]
Lloh5:
	adrp	x8, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	w9, #2
	stp	w9, w8, [x20, #32]
Lloh8:
	adrp	x1, _pcm_conf@GOTPAGE
Lloh9:
	ldr	x1, [x1, _pcm_conf@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_devm_snd_dmaengine_pcm_register
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_3:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w21, #0
	b	LBB0_11
LBB0_4:
Lloh14:
	adrp	x1, _vc4_hdmi_audio_cpu_dai_comp@GOTPAGE
Lloh15:
	ldr	x1, [x1, _vc4_hdmi_audio_cpu_dai_comp@GOTPAGEOFF]
Lloh16:
	adrp	x2, _vc4_hdmi_audio_cpu_dai_drv@GOTPAGE
Lloh17:
	ldr	x2, [x2, _vc4_hdmi_audio_cpu_dai_drv@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #1
	bl	_devm_snd_soc_register_component
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x1, _vc4_hdmi_audio_component_drv@GOTPAGE
Lloh21:
	ldr	x1, [x1, _vc4_hdmi_audio_component_drv@GOTPAGEOFF]
Lloh22:
	adrp	x22, _vc4_hdmi_audio_codec_dai_drv@GOTPAGE
Lloh23:
	ldr	x22, [x22, _vc4_hdmi_audio_codec_dai_drv@GOTPAGEOFF]
	mov	w23, #1
	mov	x0, x19
	mov	x2, x22
	mov	w3, #1
	bl	_devm_snd_soc_register_component
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
	add	x24, x20, #80
	add	x21, x20, #48
	add	x9, x20, #24
	add	x8, x20, #8
	stp	x8, x9, [x20, #120]
	movi.2s	v0, #1
	str	d0, [x20, #80]
	str	w23, [x20, #88]
Lloh26:
	adrp	x8, l_.str.5@PAGE
Lloh27:
	add	x8, x8, l_.str.5@PAGEOFF
Lloh28:
	adrp	x9, l_.str.6@PAGE
Lloh29:
	add	x9, x9, l_.str.6@PAGEOFF
	str	x8, [x20, #96]
	stp	x9, x20, [x20, #104]
	ldr	w8, [x22]
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_dev_name
	ldr	x8, [x20, #128]
	str	x0, [x8]
	mov	x0, x19
	bl	_dev_name
	ldr	x8, [x20, #120]
	str	x0, [x8]
	mov	x0, x19
	bl	_dev_name
	ldr	x8, [x20, #112]
	str	x0, [x8]
	stp	x19, x24, [x20, #64]
	str	w23, [x20, #48]
Lloh30:
	adrp	x8, l_.str.7@PAGE
Lloh31:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x20, #56]
	mov	x0, x21
	mov	x1, x20
	bl	_snd_soc_card_set_drvdata
	mov	x0, x19
	mov	x1, x21
	bl	_devm_snd_soc_register_card
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.9:
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_10:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmas"

l_.str.1:                               ; @.str.1
	.asciz	"'dmas' DT property is missing, no HDMI audio\n"

	.comm	_VC4_HD_MAI_DATA,4,2            ; @VC4_HD_MAI_DATA
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,4,2 ; @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_pcm_conf,4,2                   ; @pcm_conf
l_.str.2:                               ; @.str.2
	.asciz	"Could not register PCM component: %d\n"

	.comm	_vc4_hdmi_audio_cpu_dai_comp,4,2 ; @vc4_hdmi_audio_cpu_dai_comp
	.comm	_vc4_hdmi_audio_cpu_dai_drv,4,2 ; @vc4_hdmi_audio_cpu_dai_drv
l_.str.3:                               ; @.str.3
	.asciz	"Could not register CPU DAI: %d\n"

	.comm	_vc4_hdmi_audio_component_drv,4,2 ; @vc4_hdmi_audio_component_drv
	.comm	_vc4_hdmi_audio_codec_dai_drv,4,2 ; @vc4_hdmi_audio_codec_dai_drv
l_.str.4:                               ; @.str.4
	.asciz	"Could not register component: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"MAI"

l_.str.6:                               ; @.str.6
	.asciz	"MAI PCM"

l_.str.7:                               ; @.str.7
	.asciz	"vc4-hdmi"

l_.str.8:                               ; @.str.8
	.asciz	"Could not register sound card: %d\n"

	.no_dead_strip	_vc4_hdmi_audio_init
.subsections_via_symbols
