	.file	"extr_sc27xx_fuel_gauge.c_sc27xx_fgu_bat_detection.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to get gpio state\n"
	.text
	.p2align 4
	.type	sc27xx_fgu_bat_detection, @function
sc27xx_fgu_bat_detection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 8[rsi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 16[rbx]
	call	gpiod_get_value_cansleep@PLT
	test	eax, eax
	js	.L5
	setne	al
	mov	rdi, r12
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	power_supply_changed@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC0[rip]
	mov	ebp, eax
	call	dev_err@PLT
	mov	rdi, r12
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	IRQ_RETVAL@PLT
	.cfi_endproc
.LFE0:
	.size	sc27xx_fgu_bat_detection, .-sc27xx_fgu_bat_detection
	.comm	IRQ_HANDLED,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_sc27xx_fuel_gauge.c_sc27xx_fgu_bat_detection.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to get gpio state\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sc27xx_fgu_bat_detection, %function
sc27xx_fgu_bat_detection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	add	r6, r1, #8
	mov	r0, r6
	bl	mutex_lock
	ldr	r0, [r4, #16]
	bl	gpiod_get_value_cansleep
	subs	r5, r0, #0
	blt	.L5
	movne	r3, #1
	moveq	r3, #0
	mov	r0, r6
	str	r3, [r4]
	bl	mutex_unlock
	ldr	r0, [r4, #4]
	bl	power_supply_changed
	ldr	r3, .L6
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, [r4, #12]
	ldr	r1, .L6+4
	bl	dev_err
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	IRQ_RETVAL
.L7:
	.align	2
.L6:
	.word	IRQ_HANDLED
	.word	.LC0
	.size	sc27xx_fgu_bat_detection, .-sc27xx_fgu_bat_detection
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
