	.file	"extr_ak8975.c_ak8975_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error in setting fuse access mode\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Not able to read asa data\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Error in setting power-down mode\n"
	.align 8
.LC3:
	.string	"Error setting data ready interrupt\n"
	.text
	.p2align 4
	.type	ak8975_setup, @function
ak8975_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	i2c_get_clientdata@PLT
	mov	rdi, rax
	call	iio_priv@PLT
	mov	esi, DWORD PTR FUSE_ROM[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	ak8975_set_mode@PLT
	test	eax, eax
	js	.L10
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR ASA_BASE[rip]
	mov	rdi, rbx
	mov	rcx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, 3
	call	i2c_smbus_read_i2c_block_data_or_emulated@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	mov	esi, DWORD PTR POWER_DOWN[rip]
	mov	rdi, rbp
	call	ak8975_set_mode@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	cmp	QWORD PTR 0[rbp], 0
	jg	.L6
	cmp	QWORD PTR [rbx], 0
	jle	.L7
.L6:
	mov	rdi, rbp
	call	ak8975_setup_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L13
.L7:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 16[rbp]
	xor	r12d, r12d
	mov	rbx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rdx]
	call	[QWORD PTR [rax]]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR 16[rbp]
	call	[QWORD PTR [rax]]
	mov	DWORD PTR 4[rbx], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	rbx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR 16[rbp]
	call	[QWORD PTR [rax]]
	mov	DWORD PTR 8[rbx], eax
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, eax
	lea	rdi, 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, 8[rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, 8[rbx]
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ak8975_setup, .-ak8975_setup
	.comm	POWER_DOWN,4,4
	.comm	FUSE_ROM,4,4
	.comm	ASA_BASE,8,8
	.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_ak8975.c_ak8975_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error in setting fuse access mode\012\000"
	.align	2
.LC1:
	.ascii	"Not able to read asa data\012\000"
	.align	2
.LC2:
	.ascii	"Error in setting power-down mode\012\000"
	.align	2
.LC3:
	.ascii	"Error setting data ready interrupt\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ak8975_setup, %function
ak8975_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	bl	i2c_get_clientdata
	bl	iio_priv
	ldr	r3, .L14
	mov	r5, r0
	ldr	r1, [r3]
	bl	ak8975_set_mode
	subs	r4, r0, #0
	blt	.L10
	ldr	r2, [r5, #8]
	ldr	r3, .L14+4
	ldr	r2, [r2, #4]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r5, #4]
	mov	r2, #3
	bl	i2c_smbus_read_i2c_block_data_or_emulated
	subs	r4, r0, #0
	blt	.L11
	ldr	r3, .L14+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	ak8975_set_mode
	subs	r4, r0, #0
	blt	.L12
	ldr	r3, [r5]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L7
.L6:
	mov	r0, r5
	bl	ak8975_setup_irq
	subs	r4, r0, #0
	blt	.L13
.L7:
	ldmib	r5, {r2, r3}
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r4, [r5, #12]
	blx	r3
	ldmib	r5, {r2, r3}
	str	r0, [r4]
	ldr	r0, [r2, #4]
	ldr	r3, [r3]
	ldr	r4, [r5, #12]
	blx	r3
	ldmib	r5, {r2, r3}
	str	r0, [r4, #4]
	ldr	r0, [r2, #8]
	ldr	r3, [r3]
	ldr	r5, [r5, #12]
	blx	r3
	mov	r4, #0
	str	r0, [r5, #8]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, .L14+12
	add	r0, r6, #4
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r1, .L14+16
	add	r0, r6, #4
	bl	dev_err
	b	.L1
.L11:
	ldr	r1, .L14+20
	add	r0, r6, #4
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r1, .L14+24
	add	r0, r6, #4
	bl	dev_err
	b	.L1
.L15:
	.align	2
.L14:
	.word	FUSE_ROM
	.word	ASA_BASE
	.word	POWER_DOWN
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	ak8975_setup, .-ak8975_setup
	.comm	POWER_DOWN,4,4
	.comm	FUSE_ROM,4,4
	.comm	ASA_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
