	.file	"extr_ak4113.c_ak4113_init_regs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ak4113_init_regs, @function
ak4113_init_regs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR AK4113_REG_PWRDN[rip]
	movzx	edx, BYTE PTR AK4113_RST[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	or	dl, BYTE PTR AK4113_PWN[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	not	edx
	movzx	r12d, BYTE PTR [rax+rsi]
	and	edx, r12d
	movzx	edx, dl
	call	reg_write@PLT
	mov	edi, 200
	call	udelay@PLT
	movzx	edx, BYTE PTR AK4113_RST[rip]
	movzx	eax, BYTE PTR AK4113_PWN[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR AK4113_REG_PWRDN[rip]
	or	edx, r12d
	not	eax
	and	edx, eax
	movzx	edx, dl
	call	reg_write@PLT
	mov	edi, 200
	call	udelay@PLT
	cmp	BYTE PTR AK4113_WRITABLE_REGS[rip], 1
	jbe	.L2
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 0[rbp]
	movzx	esi, bl
	mov	rdi, rbp
	add	ebx, 1
	movzx	edx, BYTE PTR [rax+rsi]
	call	reg_write@PLT
	cmp	BYTE PTR AK4113_WRITABLE_REGS[rip], bl
	ja	.L3
.L2:
	movzx	edx, BYTE PTR AK4113_RST[rip]
	or	dl, BYTE PTR AK4113_PWN[rip]
	mov	rdi, rbp
	or	r12d, edx
	mov	rsi, QWORD PTR AK4113_REG_PWRDN[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	movzx	edx, r12b
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	reg_write@PLT
	.cfi_endproc
.LFE0:
	.size	ak4113_init_regs, .-ak4113_init_regs
	.comm	AK4113_WRITABLE_REGS,1,1
	.comm	AK4113_RST,1,1
	.comm	AK4113_REG_PWRDN,8,8
	.comm	AK4113_PWN,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ak4113.c_ak4113_init_regs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ak4113_init_regs, %function
ak4113_init_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r8, .L7
	ldr	r10, .L7+4
	ldr	r9, .L7+8
	ldr	ip, [r0]
	ldr	r1, [r8]
	ldrb	r3, [r9]	@ zero_extendqisi2
	ldrb	r2, [r10]	@ zero_extendqisi2
	ldrb	r7, [ip, r1]	@ zero_extendqisi2
	orr	r2, r2, r3
	bic	r2, r7, r2
	bl	reg_write
	mov	r0, #200
	bl	udelay
	ldrb	r3, [r10]	@ zero_extendqisi2
	ldrb	r2, [r9]	@ zero_extendqisi2
	orr	r3, r7, r3
	bic	r2, r3, r2
	ldr	r1, [r8]
	mov	r0, r5
	ldr	r6, .L7+12
	bl	reg_write
	mov	r0, #200
	bl	udelay
	ldrb	r3, [r6]	@ zero_extendqisi2
	cmp	r3, #1
	bls	.L2
	mov	r4, #1
.L3:
	ldr	r3, [r5]
	mov	r1, r4
	ldrb	r2, [r3, r4]	@ zero_extendqisi2
	mov	r0, r5
	bl	reg_write
	add	r4, r4, #1
	ldrb	r3, [r6]	@ zero_extendqisi2
	and	r4, r4, #255
	cmp	r3, r4
	bhi	.L3
.L2:
	ldrb	r2, [r10]	@ zero_extendqisi2
	ldrb	r3, [r9]	@ zero_extendqisi2
	mov	r0, r5
	orr	r2, r2, r3
	ldr	r1, [r8]
	orr	r2, r7, r2
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	reg_write
.L8:
	.align	2
.L7:
	.word	AK4113_REG_PWRDN
	.word	AK4113_RST
	.word	AK4113_PWN
	.word	AK4113_WRITABLE_REGS
	.size	ak4113_init_regs, .-ak4113_init_regs
	.comm	AK4113_WRITABLE_REGS,1,1
	.comm	AK4113_RST,1,1
	.comm	AK4113_REG_PWRDN,4,4
	.comm	AK4113_PWN,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
