	.file	"extr_atlas-ph-sensor.c_atlas_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-dev%d"
.LC1:
	.string	"regmap initialization failed\n"
.LC2:
	.string	"no valid irq defined\n"
.LC3:
	.string	"failed to register trigger\n"
.LC4:
	.string	"cannot setup iio trigger\n"
.LC5:
	.string	"atlas_irq"
.LC6:
	.string	"request irq (%d) failed\n"
.LC7:
	.string	"cannot power device on"
.LC8:
	.string	"unable to register device\n"
	.text
	.p2align 4
	.type	atlas_probe, @function
atlas_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 8[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	mov	esi, 32
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, r14
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	devm_iio_device_alloc@PLT
	test	rax, rax
	je	.L19
	mov	edi, DWORD PTR atlas_dt_ids[rip]
	mov	rsi, r14
	mov	rbp, rax
	call	of_match_device@PLT
	test	rax, rax
	je	.L21
	mov	r12, QWORD PTR [rax]
	sal	r12, 4
	add	r12, QWORD PTR atlas_devices[rip]
.L5:
	lea	rax, atlas_info[rip]
	mov	edx, DWORD PTR ATLAS_DRV_NAME[rip]
	mov	ecx, DWORD PTR 16[rbp]
	mov	rdi, r14
	mov	QWORD PTR 32[rbp], rax
	mov	eax, DWORD PTR 12[r12]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 20[rbp], edx
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 8[r12]
	mov	QWORD PTR 8[rbp], r14
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR INDIO_BUFFER_SOFTWARE[rip]
	or	eax, DWORD PTR INDIO_DIRECT_MODE[rip]
	mov	DWORD PTR 0[rbp], eax
	call	devm_iio_trigger_alloc@PLT
	test	rax, rax
	je	.L19
	mov	rdi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	iio_priv@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	QWORD PTR 24[rax], rbx
	mov	r15, rax
	mov	QWORD PTR [rax], r8
	mov	rdi, r8
	mov	QWORD PTR 16[rax], r12
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[r8], rax
	lea	rax, atlas_interrupt_trigger_ops[rip]
	mov	QWORD PTR [r8], rax
	call	iio_trigger_set_drvdata@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	i2c_set_clientdata@PLT
	lea	rsi, atlas_regmap_config[rip]
	mov	rdi, rbx
	call	devm_regmap_init_i2c@PLT
	mov	DWORD PTR 12[r15], eax
	mov	edi, eax
	call	IS_ERR@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L22
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], r8
	call	pm_runtime_set_active@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR [rbx], 0
	mov	r8, QWORD PTR 8[rsp]
	jle	.L23
	mov	QWORD PTR 8[rsp], r8
	mov	rdi, r15
	call	[QWORD PTR [r12]]
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r8
	call	iio_trigger_register@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L24
	lea	rcx, atlas_buffer_setup_ops[rip]
	lea	rdx, atlas_trigger_handler[rip]
	mov	rdi, rbp
	lea	rsi, iio_pollfunc_store_time[rip]
	call	iio_triggered_buffer_setup@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L25
	mov	esi, DWORD PTR atlas_work_handler[rip]
	lea	rdi, 8[r15]
	call	init_irq_work@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rsi, QWORD PTR [rbx]
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR atlas_interrupt_handler[rip]
	mov	rdi, r14
	lea	r9, .LC5[rip]
	mov	r8d, DWORD PTR IRQF_TRIGGER_RISING[rip]
	or	r8d, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	mov	r13d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r13d, r13d
	jne	.L26
	mov	esi, 1
	mov	rdi, r15
	call	atlas_set_powermode@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L27
	mov	rdi, r14
	call	pm_runtime_enable@PLT
	mov	esi, 2500
	mov	rdi, r14
	call	pm_runtime_set_autosuspend_delay@PLT
	mov	rdi, r14
	call	pm_runtime_use_autosuspend@PLT
	mov	rdi, rbp
	call	iio_device_register@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	lea	rsi, .LC8[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, r14
	call	pm_runtime_disable@PLT
	xor	esi, esi
	mov	rdi, r15
	call	atlas_set_powermode@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	iio_triggered_buffer_cleanup@PLT
.L11:
	mov	rdi, QWORD PTR [r15]
	call	iio_trigger_unregister@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	r12, QWORD PTR [r12]
	sal	r12, 4
	add	r12, QWORD PTR atlas_devices[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r14
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	edi, DWORD PTR 12[r15]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC4[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, .LC6[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L13
.L27:
	lea	rsi, .LC7[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	atlas_probe, .-atlas_probe
	.comm	iio_pollfunc_store_time,4,4
	.comm	atlas_work_handler,4,4
	.comm	atlas_trigger_handler,4,4
	.comm	atlas_regmap_config,4,4
	.comm	atlas_interrupt_trigger_ops,4,4
	.comm	atlas_interrupt_handler,4,4
	.comm	atlas_info,4,4
	.comm	atlas_dt_ids,4,4
	.comm	atlas_devices,8,8
	.comm	atlas_buffer_setup_ops,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	INDIO_BUFFER_SOFTWARE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ATLAS_DRV_NAME,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_atlas-ph-sensor.c_atlas_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-dev%d\000"
	.align	2
.LC1:
	.ascii	"regmap initialization failed\012\000"
	.align	2
.LC2:
	.ascii	"no valid irq defined\012\000"
	.align	2
.LC3:
	.ascii	"failed to register trigger\012\000"
	.align	2
.LC4:
	.ascii	"cannot setup iio trigger\012\000"
	.align	2
.LC5:
	.ascii	"atlas_irq\000"
	.align	2
.LC6:
	.ascii	"request irq (%d) failed\012\000"
	.align	2
.LC7:
	.ascii	"cannot power device on\000"
	.align	2
.LC8:
	.ascii	"unable to register device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atlas_probe, %function
atlas_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r8, r0, #4
	mov	r5, r0
	mov	r6, r1
	mov	r0, r8
	mov	r1, #20
	sub	sp, sp, #16
	bl	devm_iio_device_alloc
	subs	r4, r0, #0
	beq	.L19
	ldr	r3, .L27
	mov	r1, r8
	ldr	r0, [r3]
	bl	of_match_device
	ldr	r2, .L27+4
	cmp	r0, #0
	ldrne	r3, [r0]
	ldreq	r3, [r6]
	ldr	r9, [r2]
	add	r3, r3, r3, lsl #1
	add	r9, r9, r3, lsl #2
	ldr	r1, .L27+8
	ldr	r3, .L27+12
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, .L27+16
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, .L27+20
	ldmib	r9, {r0, ip}
	str	r3, [r4]
	str	r0, [r4, #16]
	str	r1, [r4, #24]
	mov	r0, r8
	ldr	r3, [r4, #8]
	ldr	r1, .L27+24
	str	r2, [r4, #12]
	str	ip, [r4, #20]
	str	r8, [r4, #4]
	bl	devm_iio_trigger_alloc
	subs	r7, r0, #0
	beq	.L19
	mov	r0, r4
	bl	iio_priv
	ldr	r2, [r4, #4]
	ldr	r3, .L27+28
	str	r5, [r0, #16]
	str	r7, [r0]
	str	r9, [r0, #12]
	mov	r10, r0
	str	r2, [r7, #4]
	str	r3, [r7]
	mov	r1, r4
	mov	r0, r7
	bl	iio_trigger_set_drvdata
	mov	r1, r4
	mov	r0, r5
	bl	i2c_set_clientdata
	ldr	r1, .L27+32
	mov	r0, r5
	bl	devm_regmap_init_i2c
	str	r0, [r10, #8]
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r8
	bne	.L21
	bl	pm_runtime_set_active
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L22
	mov	r0, r10
	ldr	r3, [r9]
	blx	r3
	subs	r6, r0, #0
	bne	.L1
	mov	r0, r7
	bl	iio_trigger_register
	subs	r6, r0, #0
	bne	.L23
	mov	r0, r4
	ldr	r3, .L27+36
	ldr	r2, .L27+40
	ldr	r1, .L27+44
	bl	iio_triggered_buffer_setup
	subs	r6, r0, #0
	bne	.L24
	ldr	r3, .L27+48
	add	r0, r10, #4
	ldr	r1, [r3]
	bl	init_irq_work
	ldr	r3, .L27+52
	ldr	r1, .L27+56
	ldr	r2, .L27+60
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	ldr	r0, .L27+64
	ldr	r1, .L27+68
	str	r4, [sp, #8]
	str	r3, [sp]
	ldr	r3, [r0]
	str	r1, [sp, #4]
	mov	r2, r6
	mov	r0, r8
	ldr	r1, [r5]
	bl	devm_request_threaded_irq
	subs	r6, r0, #0
	bne	.L25
	mov	r1, #1
	mov	r0, r10
	bl	atlas_set_powermode
	subs	r6, r0, #0
	mov	r0, r8
	bne	.L26
	bl	pm_runtime_enable
	ldr	r1, .L27+72
	mov	r0, r8
	bl	pm_runtime_set_autosuspend_delay
	mov	r0, r8
	bl	pm_runtime_use_autosuspend
	mov	r0, r4
	bl	iio_device_register
	subs	r6, r0, #0
	beq	.L1
	ldr	r1, .L27+76
	mov	r0, r8
	bl	dev_err
	mov	r0, r8
	bl	pm_runtime_disable
	mov	r1, #0
	mov	r0, r10
	bl	atlas_set_powermode
.L13:
	mov	r0, r4
	bl	iio_triggered_buffer_cleanup
.L11:
	ldr	r0, [r10]
	bl	iio_trigger_unregister
	b	.L1
.L19:
	ldr	r3, .L27+80
	ldr	r0, [r3]
	rsb	r6, r0, #0
.L1:
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r1, .L27+84
	bl	dev_err
	ldr	r0, [r10, #8]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L22:
	mov	r0, r8
	ldr	r1, .L27+88
	bl	dev_err
	ldr	r3, .L27+92
	ldr	r0, [r3]
	rsb	r6, r0, #0
	b	.L1
.L24:
	mov	r0, r8
	ldr	r1, .L27+96
	bl	dev_err
	b	.L11
.L23:
	mov	r0, r8
	ldr	r1, .L27+100
	bl	dev_err
	b	.L1
.L25:
	mov	r0, r8
	ldr	r2, [r5]
	ldr	r1, .L27+104
	bl	dev_err
	b	.L13
.L26:
	ldr	r1, .L27+108
	bl	dev_err
	b	.L13
.L28:
	.align	2
.L27:
	.word	atlas_dt_ids
	.word	atlas_devices
	.word	INDIO_DIRECT_MODE
	.word	INDIO_BUFFER_SOFTWARE
	.word	ATLAS_DRV_NAME
	.word	atlas_info
	.word	.LC0
	.word	atlas_interrupt_trigger_ops
	.word	atlas_regmap_config
	.word	atlas_buffer_setup_ops
	.word	atlas_trigger_handler
	.word	iio_pollfunc_store_time
	.word	atlas_work_handler
	.word	IRQF_TRIGGER_RISING
	.word	IRQF_TRIGGER_FALLING
	.word	IRQF_ONESHOT
	.word	atlas_interrupt_handler
	.word	.LC5
	.word	2500
	.word	.LC8
	.word	ENOMEM
	.word	.LC1
	.word	.LC2
	.word	EINVAL
	.word	.LC4
	.word	.LC3
	.word	.LC6
	.word	.LC7
	.size	atlas_probe, .-atlas_probe
	.comm	iio_pollfunc_store_time,4,4
	.comm	atlas_work_handler,4,4
	.comm	atlas_trigger_handler,4,4
	.comm	atlas_regmap_config,4,4
	.comm	atlas_interrupt_trigger_ops,4,4
	.comm	atlas_interrupt_handler,4,4
	.comm	atlas_info,4,4
	.comm	atlas_dt_ids,4,4
	.comm	atlas_devices,4,4
	.comm	atlas_buffer_setup_ops,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	INDIO_DIRECT_MODE,4,4
	.comm	INDIO_BUFFER_SOFTWARE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	ATLAS_DRV_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
