	.file	"extr_power_supply.c_gb_power_supply_state_change.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fail to set wake lock for charging state\n"
	.align 8
.LC1:
	.string	"Fail to set wake unlock for none charging\n"
	.text
	.p2align 4
	.type	gb_power_supply_state_change, @function
gb_power_supply_state_change:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	r12, 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_conn_from_psy@PLT
	mov	rdi, r12
	mov	r13, rax
	call	mutex_lock@PLT
	mov	rax, QWORD PTR GB_POWER_SUPPLY_STATUS_CHARGING[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L9
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L10
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 0[r13]
	test	edx, edx
	je	.L11
.L3:
	call	gb_pm_runtime_put_autosuspend@PLT
	test	eax, eax
	jne	.L12
	mov	DWORD PTR [rbx], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	call	gb_pm_runtime_get_sync@PLT
	test	eax, eax
	jne	.L13
	mov	DWORD PTR [rbx], 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 0[r13]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	gb_power_supply_state_change, .-gb_power_supply_state_change
	.comm	GB_POWER_SUPPLY_STATUS_CHARGING,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_power_supply.c_gb_power_supply_state_change.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fail to set wake lock for charging state\012\000"
	.align	2
.LC1:
	.ascii	"Fail to set wake unlock for none charging\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gb_power_supply_state_change, %function
gb_power_supply_state_change:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	bl	get_conn_from_psy
	add	r6, r4, #4
	mov	r7, r0
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, .L15
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	ldr	r3, [r4]
	beq	.L12
	cmp	r3, #0
	bne	.L13
.L5:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	mutex_unlock
.L12:
	cmp	r3, #0
	ldr	r0, [r7]
	beq	.L14
.L3:
	bl	gb_pm_runtime_put_autosuspend
	cmp	r0, #0
	streq	r0, [r4]
	beq	.L5
	ldr	r0, [r7]
	ldr	r1, .L15+4
	bl	dev_err
	b	.L5
.L14:
	bl	gb_pm_runtime_get_sync
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r4]
	beq	.L5
	ldr	r0, [r7]
	ldr	r1, .L15+8
	bl	dev_err
	b	.L5
.L13:
	ldr	r0, [r7]
	b	.L3
.L16:
	.align	2
.L15:
	.word	GB_POWER_SUPPLY_STATUS_CHARGING
	.word	.LC1
	.word	.LC0
	.size	gb_power_supply_state_change, .-gb_power_supply_state_change
	.comm	GB_POWER_SUPPLY_STATUS_CHARGING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
