	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10codec_attach
_a10codec_attach:                       ## @a10codec_attach
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SND_STATUSLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	movl	%eax, %r12d
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_compat_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_ofw_bus_search_compatible
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	%r14d, 28(%rbx)
	movl	%r14d, %edi
	callq	_device_get_nameunit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_snd_mtxcreate
	movl	%eax, 4(%rbx)
	movq	_a10codec_spec@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	8(%rbx), %edx
	movl	%r14d, %edi
	callq	_bus_alloc_resources
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	$131072, (%rbx)                 ## imm = 0x20000
	movl	%r14d, %edi
	callq	_bus_get_dma_tag
	movl	(%rbx), %edx
	movq	_BUS_SPACE_MAXADDR_32BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BUS_SPACE_MAXADDR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movq	%rbx, %rsi
	addq	$24, %rsi
	subq	$64, %rsp
	movq	%rsi, 56(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsp)
	movl	%edx, 24(%rsp)
	movl	%edx, 8(%rsp)
	movl	$0, 32(%rsp)
	movl	$1, 16(%rsp)
	movq	$0, (%rsp)
	movl	%eax, %edi
	movl	$4, %esi
	xorl	%r9d, %r9d
	callq	_bus_dma_tag_create
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%r14d, %edi
	callq	_device_printf
	movl	(%r15), %esi
	movl	8(%rbx), %edx
	movl	%r14d, %edi
	callq	_bus_release_resources
	movl	4(%rbx), %edi
	callq	_snd_mtxfree
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.3(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.4(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.6(%rip), %rdx
	leaq	-52(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movl	-56(%rbp), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_2
LBB0_12:
	movl	-52(%rbp), %edi
	movq	_CLK_SET_ROUND_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24576000, %esi                 ## imm = 0x1770000
	callq	_clk_set_freq
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_2
LBB0_14:
	movl	-52(%rbp), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_hwreset_get_by_ofw_idx
	testq	%rax, %rax
	je	LBB0_17
LBB0_19:
	movq	%rbx, %rdi
	callq	_AC_DAC_DPC
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_CODEC_READ
	movl	%eax, %r13d
	movq	_DAC_DPC_EN_DA@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_AC_DAC_DPC
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_CODEC_WRITE
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_mixer_init
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_2
LBB0_17:
	movl	-60(%rbp), %edi
	callq	_hwreset_deassert
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_2
LBB0_21:
	leaq	L_.str.13(%rip), %rdx
	leaq	-80(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_gpio_pin_get_by_ofw_property
	testq	%rax, %rax
	jne	LBB0_24
## %bb.22:
	movq	-80(%rbp), %rdi
	movl	$1, %esi
	callq	_gpio_pin_set_active
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.14(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
LBB0_24:
	movl	%r14d, %edi
	callq	_pcm_getflags
	movq	_SD_F_MPSAFE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pcm_setflags
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_pcm_register
	testq	%rax, %rax
	movq	_SND_STATUSLEN@GOTPCREL(%rip), %r13
	je	LBB0_26
## %bb.25:
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_2
LBB0_26:
	movq	_PCMDIR_PLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_a10codec_chan_class@GOTPCREL(%rip), %r12
	movl	%r14d, %edi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_pcm_addchan
	movq	_PCMDIR_REC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_pcm_addchan
	movl	(%r13), %r15d
	movl	%r14d, %edi
	callq	_ofw_bus_get_name
	leaq	L_.str.16(%rip), %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_pcm_setstatus
	xorl	%eax, %eax
	jmp	LBB0_27
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SND_STATUSLEN,4,2              ## @SND_STATUSLEN
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_compat_data,4,2                ## @compat_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a10codec softc"

	.comm	_a10codec_spec,4,2              ## @a10codec_spec
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ## @BUS_SPACE_MAXADDR_32BIT
	.comm	_BUS_SPACE_MAXADDR,4,2          ## @BUS_SPACE_MAXADDR
L_.str.2:                               ## @.str.2
	.asciz	"cannot create DMA tag\n"

L_.str.3:                               ## @.str.3
	.asciz	"apb"

L_.str.4:                               ## @.str.4
	.asciz	"ahb"

L_.str.5:                               ## @.str.5
	.asciz	"cannot find bus clock\n"

L_.str.6:                               ## @.str.6
	.asciz	"codec"

L_.str.7:                               ## @.str.7
	.asciz	"cannot find codec clock\n"

L_.str.8:                               ## @.str.8
	.asciz	"cannot enable bus clock\n"

	.comm	_CLK_SET_ROUND_DOWN,4,2         ## @CLK_SET_ROUND_DOWN
L_.str.9:                               ## @.str.9
	.asciz	"cannot set codec clock frequency\n"

L_.str.10:                              ## @.str.10
	.asciz	"cannot enable codec clock\n"

L_.str.11:                              ## @.str.11
	.asciz	"cannot de-assert reset\n"

	.comm	_DAC_DPC_EN_DA,4,2              ## @DAC_DPC_EN_DA
L_.str.12:                              ## @.str.12
	.asciz	"mixer_init failed\n"

L_.str.13:                              ## @.str.13
	.asciz	"allwinner,pa-gpios"

L_.str.14:                              ## @.str.14
	.asciz	"failed to unmute PA\n"

	.comm	_SD_F_MPSAFE,4,2                ## @SD_F_MPSAFE
L_.str.15:                              ## @.str.15
	.asciz	"pcm_register failed\n"

	.comm	_PCMDIR_PLAY,4,2                ## @PCMDIR_PLAY
	.comm	_a10codec_chan_class,4,2        ## @a10codec_chan_class
	.comm	_PCMDIR_REC,4,2                 ## @PCMDIR_REC
L_.str.16:                              ## @.str.16
	.asciz	"at %s"

	.no_dead_strip	_a10codec_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10codec_attach
_a10codec_attach:                       ; @a10codec_attach
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _SND_STATUSLEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SND_STATUSLEN@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_ofw_bus_get_node
	mov	x22, x0
Lloh7:
	adrp	x24, _M_DEVBUF@GOTPAGE
Lloh8:
	ldr	x24, [x24, _M_DEVBUF@GOTPAGEOFF]
Lloh9:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #32
	bl	_malloc
	mov	x20, x0
Lloh15:
	adrp	x8, _compat_data@GOTPAGE
Lloh16:
	ldr	x8, [x8, _compat_data@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ofw_bus_search_compatible
	ldr	x8, [x0]
	str	x8, [x20, #16]
	str	w19, [x20, #28]
	mov	x0, x19
	bl	_device_get_nameunit
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_snd_mtxcreate
	str	w0, [x20, #4]
Lloh20:
	adrp	x25, _a10codec_spec@GOTPAGE
Lloh21:
	ldr	x25, [x25, _a10codec_spec@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_bus_alloc_resources
	cbz	x0, LBB0_2
; %bb.1:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w8, #131072
	str	w8, [x20]
	mov	x0, x19
	bl	_bus_get_dma_tag
	mov	x8, x20
	ldr	w2, [x8], #24
Lloh24:
	adrp	x9, _BUS_SPACE_MAXADDR_32BIT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BUS_SPACE_MAXADDR_32BIT@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x9]
Lloh27:
	adrp	x9, _BUS_SPACE_MAXADDR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BUS_SPACE_MAXADDR@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x9]
	sub	sp, sp, #48
	stp	xzr, xzr, [sp, #16]
	str	x8, [sp, #32]
	stp	w2, wzr, [sp, #4]
	mov	w8, #1
	str	w8, [sp]
	mov	w1, #4
	mov	x5, #0
	mov	x6, #0
	mov	x7, x2
	bl	_bus_dma_tag_create
	add	sp, sp, #48
	cbz	w0, LBB0_7
; %bb.3:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_device_printf
	ldr	w1, [x25]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_bus_release_resources
	ldr	w0, [x20, #4]
	bl	_snd_mtxfree
	ldr	w1, [x24]
	mov	x0, x20
	bl	_free
Lloh32:
	adrp	x8, _ENXIO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.6:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
	sub	x3, x29, #84
	mov	x0, x19
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	x0, LBB0_10
; %bb.8:
Lloh40:
	adrp	x2, l_.str.4@PAGE
Lloh41:
	add	x2, x2, l_.str.4@PAGEOFF
	sub	x3, x29, #84
	mov	x0, x19
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	x0, LBB0_10
; %bb.9:
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_10:
Lloh44:
	adrp	x2, l_.str.6@PAGE
Lloh45:
	add	x2, x2, l_.str.6@PAGEOFF
	sub	x3, x29, #88
	mov	x0, x19
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	x0, LBB0_12
; %bb.11:
Lloh46:
	adrp	x1, l_.str.7@PAGE
Lloh47:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_12:
	ldur	w0, [x29, #-84]
	bl	_clk_enable
	cbz	w0, LBB0_14
; %bb.13:
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_14:
	ldur	w0, [x29, #-88]
Lloh50:
	adrp	x8, _CLK_SET_ROUND_DOWN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CLK_SET_ROUND_DOWN@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	w1, #24576000
	bl	_clk_set_freq
	cbz	w0, LBB0_16
; %bb.15:
Lloh53:
	adrp	x1, l_.str.9@PAGE
Lloh54:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_4
LBB0_16:
	ldur	w0, [x29, #-88]
	bl	_clk_enable
	cbz	w0, LBB0_18
; %bb.17:
Lloh55:
	adrp	x1, l_.str.10@PAGE
Lloh56:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_4
LBB0_18:
	sub	x3, x29, #92
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_hwreset_get_by_ofw_idx
	cbz	x0, LBB0_21
LBB0_19:
	mov	x0, x20
	bl	_AC_DAC_DPC
	mov	x1, x0
	mov	x0, x20
	bl	_CODEC_READ
Lloh57:
	adrp	x8, _DAC_DPC_EN_DA@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DAC_DPC_EN_DA@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	orr	w23, w8, w0
	mov	x0, x20
	bl	_AC_DAC_DPC
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	bl	_CODEC_WRITE
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mixer_init
	cbz	x0, LBB0_23
; %bb.20:
Lloh60:
	adrp	x1, l_.str.12@PAGE
Lloh61:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_4
LBB0_21:
	ldur	w0, [x29, #-92]
	bl	_hwreset_deassert
	cbz	w0, LBB0_19
; %bb.22:
Lloh62:
	adrp	x1, l_.str.11@PAGE
Lloh63:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_4
LBB0_23:
Lloh64:
	adrp	x2, l_.str.13@PAGE
Lloh65:
	add	x2, x2, l_.str.13@PAGEOFF
	sub	x3, x29, #80
	mov	x0, x19
	mov	x1, x22
	bl	_gpio_pin_get_by_ofw_property
	cbnz	x0, LBB0_26
; %bb.24:
	ldur	x0, [x29, #-80]
	mov	w1, #1
	bl	_gpio_pin_set_active
	cbz	w0, LBB0_26
; %bb.25:
Lloh66:
	adrp	x1, l_.str.14@PAGE
Lloh67:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_26:
	mov	x0, x19
	bl	_pcm_getflags
Lloh68:
	adrp	x8, _SD_F_MPSAFE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _SD_F_MPSAFE@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	bl	_pcm_setflags
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #1
	bl	_pcm_register
	cbz	x0, LBB0_28
; %bb.27:
Lloh71:
	adrp	x1, l_.str.15@PAGE
Lloh72:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_4
LBB0_28:
Lloh73:
	adrp	x8, _PCMDIR_PLAY@GOTPAGE
Lloh74:
	ldr	x8, [x8, _PCMDIR_PLAY@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
Lloh76:
	adrp	x22, _a10codec_chan_class@GOTPAGE
Lloh77:
	ldr	x22, [x22, _a10codec_chan_class@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	bl	_pcm_addchan
Lloh78:
	adrp	x8, _PCMDIR_REC@GOTPAGE
Lloh79:
	ldr	x8, [x8, _PCMDIR_REC@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x20
	bl	_pcm_addchan
	ldr	w20, [x26]
	mov	x0, x19
	bl	_ofw_bus_get_name
	mov	x3, x0
Lloh81:
	adrp	x2, l_.str.16@PAGE
Lloh82:
	add	x2, x2, l_.str.16@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_snprintf
	mov	x0, x19
	mov	x1, x21
	bl	_pcm_setstatus
	mov	w0, #0
	b	LBB0_5
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_SND_STATUSLEN,4,2              ; @SND_STATUSLEN
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_compat_data,4,2                ; @compat_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a10codec softc"

	.comm	_a10codec_spec,4,2              ; @a10codec_spec
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate resources for device\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_BUS_SPACE_MAXADDR_32BIT,4,2    ; @BUS_SPACE_MAXADDR_32BIT
	.comm	_BUS_SPACE_MAXADDR,4,2          ; @BUS_SPACE_MAXADDR
l_.str.2:                               ; @.str.2
	.asciz	"cannot create DMA tag\n"

l_.str.3:                               ; @.str.3
	.asciz	"apb"

l_.str.4:                               ; @.str.4
	.asciz	"ahb"

l_.str.5:                               ; @.str.5
	.asciz	"cannot find bus clock\n"

l_.str.6:                               ; @.str.6
	.asciz	"codec"

l_.str.7:                               ; @.str.7
	.asciz	"cannot find codec clock\n"

l_.str.8:                               ; @.str.8
	.asciz	"cannot enable bus clock\n"

	.comm	_CLK_SET_ROUND_DOWN,4,2         ; @CLK_SET_ROUND_DOWN
l_.str.9:                               ; @.str.9
	.asciz	"cannot set codec clock frequency\n"

l_.str.10:                              ; @.str.10
	.asciz	"cannot enable codec clock\n"

l_.str.11:                              ; @.str.11
	.asciz	"cannot de-assert reset\n"

	.comm	_DAC_DPC_EN_DA,4,2              ; @DAC_DPC_EN_DA
l_.str.12:                              ; @.str.12
	.asciz	"mixer_init failed\n"

l_.str.13:                              ; @.str.13
	.asciz	"allwinner,pa-gpios"

l_.str.14:                              ; @.str.14
	.asciz	"failed to unmute PA\n"

	.comm	_SD_F_MPSAFE,4,2                ; @SD_F_MPSAFE
l_.str.15:                              ; @.str.15
	.asciz	"pcm_register failed\n"

	.comm	_PCMDIR_PLAY,4,2                ; @PCMDIR_PLAY
	.comm	_a10codec_chan_class,4,2        ; @a10codec_chan_class
	.comm	_PCMDIR_REC,4,2                 ; @PCMDIR_REC
l_.str.16:                              ; @.str.16
	.asciz	"at %s"

	.no_dead_strip	_a10codec_attach
.subsections_via_symbols
