	.file	"extr_ab8500_charger.c_ab8500_charger_set_usb_connected.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"USB connected:%i\n"
.LC1:
	.string	"present"
	.text
	.p2align 4
	.type	ab8500_charger_set_usb_connected, @function
ab8500_charger_set_usb_connected:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR 28[rdi], esi
	jne	.L12
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edx, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	lea	rsi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 32[rdi]
	call	dev_dbg@PLT
	mov	DWORD PTR 28[rbp], ebx
	test	ebx, ebx
	jne	.L4
	mov	DWORD PTR 24[rbp], 0
	mov	rdi, QWORD PTR 16[rbp]
	lea	rdx, .LC1[rip]
	xor	esi, esi
	call	sysfs_notify@PLT
	lea	rdi, 4[rbp]
	call	cancel_delayed_work_sync@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbp]
	xor	esi, esi
	lea	rdx, .LC1[rip]
	call	sysfs_notify@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	is_ab8500@PLT
	test	rax, rax
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR HZ[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, 4[rbp]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	queue_delayed_work@PLT
	.cfi_endproc
.LFE0:
	.size	ab8500_charger_set_usb_connected, .-ab8500_charger_set_usb_connected
	.comm	HZ,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_ab8500_charger.c_ab8500_charger_set_usb_connected.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"USB connected:%i\012\000"
	.align	2
.LC1:
	.ascii	"present\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ab8500_charger_set_usb_connected, %function
ab8500_charger_set_usb_connected:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	cmp	r3, r1
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r2, r1
	ldr	r0, [r0, #28]
	ldr	r1, .L12
	bl	dev_dbg
	cmp	r5, #0
	str	r5, [r4, #24]
	bne	.L4
	mov	r1, r5
	ldr	r2, .L12+4
	ldr	r0, [r4, #16]
	str	r5, [r4, #20]
	bl	sysfs_notify
	add	r0, r4, #4
	bl	cancel_delayed_work_sync
	mov	r0, r4
	bl	mutex_lock
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L4:
	mov	r1, #0
	ldr	r2, .L12+4
	ldr	r0, [r4, #16]
	bl	sysfs_notify
	mov	r0, r4
	bl	mutex_lock
	mov	r0, r4
	bl	mutex_unlock
	ldr	r0, [r4, #12]
	bl	is_ab8500
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L12+8
	ldr	r0, [r4, #8]
	add	r1, r4, #4
	ldr	r2, [r3]
	pop	{r4, r5, r6, lr}
	b	queue_delayed_work
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	HZ
	.size	ab8500_charger_set_usb_connected, .-ab8500_charger_set_usb_connected
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
