	.file	"extr_tps80031-regulator.c_tps80031_vbus_is_enabled.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"reg 0x%02x read failed, e = %d\n"
	.text
	.p2align 4
	.type	tps80031_vbus_is_enabled, @function
tps80031_vbus_is_enabled:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	rdev_get_drvdata@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	to_tps80031_dev@PLT
	mov	edx, DWORD PTR TPS80031_CHARGERUSB_CTRL1[rip]
	mov	rcx, rsp
	mov	esi, DWORD PTR TPS80031_SLAVE_ID2[rip]
	mov	rdi, rax
	mov	DWORD PTR [rsp], 0
	mov	rbp, rax
	mov	DWORD PTR 4[rsp], 0
	call	tps80031_read@PLT
	test	eax, eax
	js	.L13
	mov	edx, DWORD PTR TPS80031_CHARGERUSB_CTRL3[rip]
	mov	esi, DWORD PTR TPS80031_SLAVE_ID2[rip]
	lea	rcx, 4[rsp]
	mov	rdi, rbp
	call	tps80031_read@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L14
	mov	eax, DWORD PTR [rsp]
	test	DWORD PTR OPA_MODE_EN[rip], eax
	jne	.L15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR BOOST_HW_PWR_EN[rip], eax
	mov	eax, 1
	cmovne	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR TPS80031_CHARGERUSB_CTRL1[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, eax
	mov	r12d, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR TPS80031_CHARGERUSB_CTRL3[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tps80031_vbus_is_enabled, .-tps80031_vbus_is_enabled
	.comm	TPS80031_SLAVE_ID2,4,4
	.comm	TPS80031_CHARGERUSB_CTRL3,4,4
	.comm	TPS80031_CHARGERUSB_CTRL1,4,4
	.comm	OPA_MODE_EN,4,4
	.comm	EIO,4,4
	.comm	BOOST_HW_PWR_EN,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_tps80031-regulator.c_tps80031_vbus_is_enabled.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reg 0x%02x read failed, e = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tps80031_vbus_is_enabled, %function
tps80031_vbus_is_enabled:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	rdev_get_drvdata
	mov	r7, r0
	mov	r0, r4
	bl	to_tps80031_dev
	mov	ip, #0
	ldr	r6, .L16+4
	ldr	r8, .L16+8
	ldr	r2, [r6]
	ldr	r1, [r8]
	add	r3, sp, #4
	mov	r5, r0
	str	ip, [sp, #4]
	str	ip, [sp, #8]
	bl	tps80031_read
	subs	r4, r0, #0
	blt	.L12
	ldr	r6, .L16+12
	mov	r0, r5
	ldr	r1, [r8]
	ldr	r2, [r6]
	add	r3, sp, #8
	bl	tps80031_read
	subs	r4, r0, #0
	blt	.L12
	ldr	r3, .L16+16
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L14
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L16+20
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r4, #1
	b	.L1
.L12:
	mov	r3, r4
	ldr	r2, [r6]
	ldr	r0, [r7]
	ldr	r1, .L16+24
	bl	dev_err
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	TPS80031_CHARGERUSB_CTRL1
	.word	TPS80031_SLAVE_ID2
	.word	TPS80031_CHARGERUSB_CTRL3
	.word	OPA_MODE_EN
	.word	BOOST_HW_PWR_EN
	.word	.LC0
	.size	tps80031_vbus_is_enabled, .-tps80031_vbus_is_enabled
	.comm	TPS80031_SLAVE_ID2,4,4
	.comm	TPS80031_CHARGERUSB_CTRL3,4,4
	.comm	TPS80031_CHARGERUSB_CTRL1,4,4
	.comm	OPA_MODE_EN,4,4
	.comm	EIO,4,4
	.comm	BOOST_HW_PWR_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
