	.file	"extr_tps65010.c_tps65010_set_vbus_draw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tps65010_set_vbus_draw
	.type	tps65010_set_vbus_draw, @function
tps65010_set_vbus_draw:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR the_tps[rip], 0
	je	.L17
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, edi
	xor	edi, edi
	call	local_irq_save@PLT
	mov	eax, 500
	cmp	ebx, 499
	jbe	.L18
.L4:
	mov	rsi, QWORD PTR the_tps[rip]
	mov	DWORD PTR [rsi], eax
	mov	eax, DWORD PTR 4[rsi]
	test	DWORD PTR TPS_CHG_USB[rip], eax
	jne	.L19
.L6:
	xor	edi, edi
	call	local_irq_restore@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	cmp	ebx, 100
	sbb	eax, eax
	not	eax
	and	eax, 100
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR FLAG_VBUS_CHANGED[rip]
	add	rsi, 12
	call	test_and_set_bit@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR the_tps[rip]
	lea	rdi, 8[rax]
	call	schedule_work@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	tps65010_set_vbus_draw, .-tps65010_set_vbus_draw
	.comm	the_tps,8,8
	.comm	TPS_CHG_USB,4,4
	.comm	FLAG_VBUS_CHANGED,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_tps65010.c_tps65010_set_vbus_draw.c"
	.text
	.align	2
	.global	tps65010_set_vbus_draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	tps65010_set_vbus_draw, %function
tps65010_set_vbus_draw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L18
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L15
	mov	r4, r0
	mov	r0, #0
	bl	local_irq_save
	cmp	r4, #500
	movcs	r0, #500
	bcc	.L16
.L4:
	ldr	r1, [r5]
	ldr	r3, .L18+4
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	str	r0, [r1]
	tst	r2, r3
	bne	.L17
.L6:
	mov	r0, #0
	bl	local_irq_restore
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	cmp	r4, #99
	movhi	r0, #100
	movls	r0, #0
	b	.L4
.L17:
	ldr	r3, .L18+8
	add	r1, r1, #12
	ldr	r0, [r3]
	bl	test_and_set_bit
	cmp	r0, #0
	beq	.L6
	ldr	r0, [r5]
	add	r0, r0, #8
	bl	schedule_work
	b	.L6
.L15:
	ldr	r3, .L18+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	the_tps
	.word	TPS_CHG_USB
	.word	FLAG_VBUS_CHANGED
	.word	ENODEV
	.size	tps65010_set_vbus_draw, .-tps65010_set_vbus_draw
	.comm	the_tps,4,4
	.comm	TPS_CHG_USB,4,4
	.comm	FLAG_VBUS_CHANGED,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
