	.file	"extr_nau8825.c_nau8825_i2c_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to read device id from the NAU8825: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Not a NAU8825 chip\n"
	.text
	.p2align 4
	.type	nau8825_i2c_probe, @function
nau8825_i2c_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_get_platdata@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
.L2:
	mov	rsi, rbp
	mov	rdi, r13
	call	i2c_set_clientdata@PLT
	mov	rdi, r13
	lea	rsi, nau8825_regmap_config[rip]
	call	devm_regmap_init_i2c@PLT
	mov	DWORD PTR 8[rbp], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR 32[rbp], r13
	lea	rdi, 16[rbp]
	mov	esi, 1
	mov	QWORD PTR 24[rbp], rax
	mov	eax, DWORD PTR NAU8825_XTALK_DONE[rip]
	mov	QWORD PTR 0[rbp], 0
	mov	DWORD PTR 20[rbp], eax
	call	sema_init@PLT
	mov	esi, DWORD PTR nau8825_xtalk_work[rip]
	lea	rdi, 12[rbp]
	call	INIT_WORK@PLT
	mov	rdi, rbp
	call	nau8825_print_device_properties@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	nau8825_reset_chip@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR NAU8825_REG_I2C_DEVICE_ID[rip]
	lea	rdx, 4[rsp]
	call	regmap_read@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L15
	mov	eax, DWORD PTR 4[rsp]
	and	eax, DWORD PTR NAU8825_SOFTWARE_ID_MASK[rip]
	cmp	eax, DWORD PTR NAU8825_SOFTWARE_ID_NAU8825[rip]
	je	.L7
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 40
	mov	rdi, r13
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rsi, rax
	mov	rdi, r13
	call	nau8825_read_device_properties@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR 8[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	call	nau8825_init_regs@PLT
	cmp	QWORD PTR 8[r13], 0
	jne	.L17
.L8:
	mov	ecx, 1
	lea	rdx, nau8825_dai[rip]
	lea	rsi, nau8825_component_driver[rip]
	mov	rdi, r13
	call	devm_snd_soc_register_component@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	nau8825_setup_irq@PLT
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nau8825_i2c_probe, .-nau8825_i2c_probe
	.comm	nau8825_xtalk_work,4,4
	.comm	nau8825_regmap_config,4,4
	.comm	nau8825_dai,4,4
	.comm	nau8825_component_driver,4,4
	.comm	NAU8825_XTALK_DONE,4,4
	.comm	NAU8825_SOFTWARE_ID_NAU8825,4,4
	.comm	NAU8825_SOFTWARE_ID_MASK,4,4
	.comm	NAU8825_REG_I2C_DEVICE_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.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_nau8825.c_nau8825_i2c_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read device id from the NAU8825: %d\012\000"
	.align	2
.LC1:
	.ascii	"Not a NAU8825 chip\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nau8825_i2c_probe, %function
nau8825_i2c_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L21
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	dev_get_platdata
	subs	r4, r0, #0
	beq	.L15
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	i2c_set_clientdata
	ldr	r1, .L21+4
	mov	r0, r6
	bl	devm_regmap_init_i2c
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
	ldr	r2, .L21+8
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	mov	r1, #1
	str	r2, [r4, #20]
	str	r3, [r4, #24]
	str	r0, [r4]
	str	r0, [r4, #4]
	str	r6, [r4, #28]
	add	r0, r4, #16
	bl	sema_init
	ldr	r3, .L21+12
	add	r0, r4, #12
	ldr	r1, [r3]
	bl	INIT_WORK
	mov	r0, r4
	bl	nau8825_print_device_properties
	ldr	r0, [r4, #8]
	bl	nau8825_reset_chip
	ldr	r3, .L21+16
	mov	r2, sp
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	regmap_read
	subs	r5, r0, #0
	blt	.L17
	ldr	r3, .L21+20
	ldr	r2, .L21+24
	ldr	r1, [r3]
	ldr	r3, [sp]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	beq	.L7
	mov	r0, r6
	ldr	r1, .L21+28
	bl	dev_err
	ldr	r3, .L21+32
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L21+36
	mov	r1, #32
	mov	r0, r6
	ldr	r2, [r3]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L19
	mov	r1, r4
	mov	r0, r6
	bl	nau8825_read_device_properties
	subs	r5, r0, #0
	beq	.L2
	b	.L1
.L16:
	ldr	r0, [r4, #8]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L7:
	mov	r0, r4
	bl	nau8825_init_regs
	ldr	r3, [r6, #4]
	cmp	r3, #0
	bne	.L20
.L8:
	mov	r0, r6
	mov	r3, #1
	ldr	r2, .L21+40
	ldr	r1, .L21+44
	bl	devm_snd_soc_register_component
	mov	r5, r0
	b	.L1
.L17:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L21+48
	bl	dev_err
	b	.L1
.L20:
	mov	r0, r4
	bl	nau8825_setup_irq
	b	.L8
.L19:
	ldr	r3, .L21+52
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L18:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	nau8825_regmap_config
	.word	NAU8825_XTALK_DONE
	.word	nau8825_xtalk_work
	.word	NAU8825_REG_I2C_DEVICE_ID
	.word	NAU8825_SOFTWARE_ID_MASK
	.word	NAU8825_SOFTWARE_ID_NAU8825
	.word	.LC1
	.word	ENODEV
	.word	GFP_KERNEL
	.word	nau8825_dai
	.word	nau8825_component_driver
	.word	.LC0
	.word	ENOMEM
	.size	nau8825_i2c_probe, .-nau8825_i2c_probe
	.comm	nau8825_xtalk_work,4,4
	.comm	nau8825_regmap_config,4,4
	.comm	nau8825_dai,4,4
	.comm	nau8825_component_driver,4,4
	.comm	NAU8825_XTALK_DONE,4,4
	.comm	NAU8825_SOFTWARE_ID_NAU8825,4,4
	.comm	NAU8825_SOFTWARE_ID_MASK,4,4
	.comm	NAU8825_REG_I2C_DEVICE_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
