	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h3_mixer_init
_h3_mixer_init:                         ## @h3_mixer_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, -68(%rbp)
	callq	_mix_getdevinfo
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_ofw_bus_get_node
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movl	%eax, %edi
	movl	$8, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movq	-80(%rbp), %rdi
	callq	_OF_node_from_xref
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movl	%eax, %edi
	movl	$16, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_1
## %bb.3:
	movl	(%r15), %edi
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %r9
	leaq	(%r9,%rcx), %r8
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-68(%rbp), %rdx
	callq	_bus_alloc_resource
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_1
## %bb.4:
	movq	_SOUND_MASK_PCM@GOTPCREL(%rip), %rax
	movq	_SOUND_MASK_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SOUND_MASK_RECLEV@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_SOUND_MASK_MIC@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movq	_SOUND_MASK_LINE@GOTPCREL(%rip), %rbx
	orl	(%rbx), %esi
	movq	_SOUND_MASK_LINE1@GOTPCREL(%rip), %r13
	orl	(%r13), %esi
	movq	%r14, %rdi
	callq	_mix_setdevs
	movl	(%rbx), %esi
	orl	(%r12), %esi
	orl	(%r13), %esi
	movq	_SOUND_MASK_IMIX@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mix_setrecdevs
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_pcm_getflags
	movq	_SD_F_SOFTPCMVOL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pcm_setflags
	movq	_H3_PAEN_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_H3_LINEOUTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_h3_pr_set_clear
	movq	_H3_MIC2G_LINEOUT_CTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_H3_LINEOUT_LSEL@GOTPCREL(%rip), %rax
	movq	_H3_LINEOUT_RSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_h3_pr_set_clear
	jmp	LBB0_5
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allwinner,codec-analog-controls"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"reg"

	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.comm	_SOUND_MASK_PCM,4,2             ## @SOUND_MASK_PCM
	.comm	_SOUND_MASK_VOLUME,4,2          ## @SOUND_MASK_VOLUME
	.comm	_SOUND_MASK_RECLEV,4,2          ## @SOUND_MASK_RECLEV
	.comm	_SOUND_MASK_MIC,4,2             ## @SOUND_MASK_MIC
	.comm	_SOUND_MASK_LINE,4,2            ## @SOUND_MASK_LINE
	.comm	_SOUND_MASK_LINE1,4,2           ## @SOUND_MASK_LINE1
	.comm	_SOUND_MASK_IMIX,4,2            ## @SOUND_MASK_IMIX
	.comm	_SD_F_SOFTPCMVOL,4,2            ## @SD_F_SOFTPCMVOL
	.comm	_H3_PAEN_CTR,4,2                ## @H3_PAEN_CTR
	.comm	_H3_LINEOUTEN,4,2               ## @H3_LINEOUTEN
	.comm	_H3_MIC2G_LINEOUT_CTR,4,2       ## @H3_MIC2G_LINEOUT_CTR
	.comm	_H3_LINEOUT_LSEL,4,2            ## @H3_LINEOUT_LSEL
	.comm	_H3_LINEOUT_RSEL,4,2            ## @H3_LINEOUT_RSEL
	.no_dead_strip	_h3_mixer_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h3_mixer_init
_h3_mixer_init:                         ; @h3_mixer_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #20]
	bl	_mix_getdevinfo
	mov	x19, x0
	ldr	w0, [x0]
	bl	_ofw_bus_get_node
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	w3, #8
	bl	_OF_getencprop
	cmp	x0, #0
	b.le	LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	bl	_OF_node_from_xref
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	w3, #16
	bl	_OF_getencprop
	cmp	x0, #0
	b.le	LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	x3, x5, [sp, #24]
	add	x4, x5, x3
Lloh10:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x8]
	add	x2, sp, #20
	bl	_bus_alloc_resource
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _SOUND_MASK_PCM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOUND_MASK_PCM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SOUND_MASK_VOLUME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOUND_MASK_VOLUME@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _SOUND_MASK_RECLEV@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SOUND_MASK_RECLEV@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh22:
	adrp	x21, _SOUND_MASK_MIC@GOTPAGE
Lloh23:
	ldr	x21, [x21, _SOUND_MASK_MIC@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh24:
	adrp	x22, _SOUND_MASK_LINE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _SOUND_MASK_LINE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh26:
	adrp	x23, _SOUND_MASK_LINE1@GOTPAGE
Lloh27:
	ldr	x23, [x23, _SOUND_MASK_LINE1@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_mix_setdevs
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _SOUND_MASK_IMIX@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SOUND_MASK_IMIX@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_mix_setrecdevs
	ldr	w20, [x19]
	mov	x0, x20
	bl	_pcm_getflags
Lloh31:
	adrp	x8, _SD_F_SOFTPCMVOL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SD_F_SOFTPCMVOL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_pcm_setflags
Lloh34:
	adrp	x8, _H3_PAEN_CTR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _H3_PAEN_CTR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _H3_LINEOUTEN@GOTPAGE
Lloh38:
	ldr	x8, [x8, _H3_LINEOUTEN@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_h3_pr_set_clear
Lloh40:
	adrp	x8, _H3_MIC2G_LINEOUT_CTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _H3_MIC2G_LINEOUT_CTR@GOTPAGEOFF]
Lloh42:
	adrp	x9, _H3_LINEOUT_LSEL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _H3_LINEOUT_LSEL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	ldr	w8, [x9]
Lloh46:
	adrp	x9, _H3_LINEOUT_RSEL@GOTPAGE
Lloh47:
	ldr	x9, [x9, _H3_LINEOUT_RSEL@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_h3_pr_set_clear
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh49:
	adrp	x8, _ENXIO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
LBB0_5:
	ldr	x8, [sp, #40]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh44
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allwinner,codec-analog-controls"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"reg"

	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.comm	_SOUND_MASK_PCM,4,2             ; @SOUND_MASK_PCM
	.comm	_SOUND_MASK_VOLUME,4,2          ; @SOUND_MASK_VOLUME
	.comm	_SOUND_MASK_RECLEV,4,2          ; @SOUND_MASK_RECLEV
	.comm	_SOUND_MASK_MIC,4,2             ; @SOUND_MASK_MIC
	.comm	_SOUND_MASK_LINE,4,2            ; @SOUND_MASK_LINE
	.comm	_SOUND_MASK_LINE1,4,2           ; @SOUND_MASK_LINE1
	.comm	_SOUND_MASK_IMIX,4,2            ; @SOUND_MASK_IMIX
	.comm	_SD_F_SOFTPCMVOL,4,2            ; @SD_F_SOFTPCMVOL
	.comm	_H3_PAEN_CTR,4,2                ; @H3_PAEN_CTR
	.comm	_H3_LINEOUTEN,4,2               ; @H3_LINEOUTEN
	.comm	_H3_MIC2G_LINEOUT_CTR,4,2       ; @H3_MIC2G_LINEOUT_CTR
	.comm	_H3_LINEOUT_LSEL,4,2            ; @H3_LINEOUT_LSEL
	.comm	_H3_LINEOUT_RSEL,4,2            ; @H3_LINEOUT_RSEL
	.no_dead_strip	_h3_mixer_init
.subsections_via_symbols
