	.file	"extr_lp872x.c_lp872x_select_buck_vout_addr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lp872x_select_buck_vout_addr, @function
lp872x_select_buck_vout_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR LP872X_GENERAL_CFG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	mov	rdx, r12
	call	lp872x_read_byte@PLT
	test	rax, rax
	jne	.L16
	cmp	ebx, 129
	je	.L4
	cmp	ebx, 130
	je	.L5
	cmp	ebx, 128
	je	.L6
.L16:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	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
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR LP8725_DVS2_M[rip], eax
	mov	eax, DWORD PTR LP8725_BUCK2_VOUT1[rip]
	cmove	eax, DWORD PTR LP8725_BUCK2_VOUT2[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR LP8720_EXT_DVS_M[rip], eax
	je	.L7
	mov	eax, DWORD PTR LP8720_BUCK_VOUT2[rip]
	mov	ecx, DWORD PTR DVS_HIGH[rip]
	cmp	DWORD PTR 0[rbp], ecx
	jne	.L1
	mov	eax, DWORD PTR LP8720_BUCK_VOUT1[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR LP8725_DVS1_M[rip], eax
	jne	.L12
	mov	eax, DWORD PTR DVS_HIGH[rip]
	cmp	DWORD PTR 0[rbp], eax
	je	.L12
	mov	eax, DWORD PTR LP8725_BUCK1_VOUT2[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR LP8725_BUCK1_VOUT1[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR LP8720_ENABLE[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	lp872x_read_byte@PLT
	test	rax, rax
	jne	.L16
	mov	eax, DWORD PTR 4[rsp]
	test	DWORD PTR LP8720_DVS_SEL_M[rip], eax
	mov	eax, DWORD PTR LP8720_BUCK_VOUT1[rip]
	cmove	eax, DWORD PTR LP8720_BUCK_VOUT2[rip]
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lp872x_select_buck_vout_addr, .-lp872x_select_buck_vout_addr
	.comm	LP872X_GENERAL_CFG,4,4
	.comm	LP8725_DVS2_M,4,4
	.comm	LP8725_DVS1_M,4,4
	.comm	LP8725_BUCK2_VOUT2,4,4
	.comm	LP8725_BUCK2_VOUT1,4,4
	.comm	LP8725_BUCK1_VOUT2,4,4
	.comm	LP8725_BUCK1_VOUT1,4,4
	.comm	LP8720_EXT_DVS_M,4,4
	.comm	LP8720_ENABLE,4,4
	.comm	LP8720_DVS_SEL_M,4,4
	.comm	LP8720_BUCK_VOUT2,4,4
	.comm	LP8720_BUCK_VOUT1,4,4
	.comm	DVS_HIGH,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_lp872x.c_lp872x_select_buck_vout_addr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp872x_select_buck_vout_addr, %function
lp872x_select_buck_vout_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L21
	sub	sp, sp, #12
	mov	r4, r1
	ldr	r1, [r3]
	ldr	r3, .L21+4
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	lp872x_read_byte
	cmp	r0, #0
	bne	.L9
	cmp	r4, #129
	beq	.L4
	cmp	r4, #130
	beq	.L5
	cmp	r4, #128
	beq	.L18
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	ldr	r3, .L21+8
	mov	r2, sp
	mov	r0, r5
	ldr	r1, [r3]
	bl	lp872x_read_byte
	cmp	r0, #0
	beq	.L20
.L9:
	mov	r0, #0
	b	.L1
.L18:
	ldr	r3, .L21+12
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L21+16
	ldreq	r3, .L21+20
	ldr	r0, [r3]
	b	.L1
.L5:
	ldr	r3, .L21+24
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	ldr	r3, .L21+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
.L10:
	ldr	r3, .L21+32
	ldr	r0, [r3]
	b	.L1
.L4:
	ldr	r3, .L21+36
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L12
	ldr	r3, .L21+28
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	ldrne	r3, .L21+40
	ldrne	r0, [r3]
	bne	.L1
.L12:
	ldr	r3, .L21+44
	ldr	r0, [r3]
	b	.L1
.L20:
	ldr	r3, .L21+48
	ldr	r2, [sp]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
.L16:
	ldr	r3, .L21+52
	ldr	r0, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	LP872X_GENERAL_CFG
	.word	.LC0
	.word	LP8720_ENABLE
	.word	LP8725_DVS2_M
	.word	LP8725_BUCK2_VOUT1
	.word	LP8725_BUCK2_VOUT2
	.word	LP8720_EXT_DVS_M
	.word	DVS_HIGH
	.word	LP8720_BUCK_VOUT2
	.word	LP8725_DVS1_M
	.word	LP8725_BUCK1_VOUT2
	.word	LP8725_BUCK1_VOUT1
	.word	LP8720_DVS_SEL_M
	.word	LP8720_BUCK_VOUT1
	.size	lp872x_select_buck_vout_addr, .-lp872x_select_buck_vout_addr
	.comm	LP872X_GENERAL_CFG,4,4
	.comm	LP8725_DVS2_M,4,4
	.comm	LP8725_DVS1_M,4,4
	.comm	LP8725_BUCK2_VOUT2,4,4
	.comm	LP8725_BUCK2_VOUT1,4,4
	.comm	LP8725_BUCK1_VOUT2,4,4
	.comm	LP8725_BUCK1_VOUT1,4,4
	.comm	LP8720_EXT_DVS_M,4,4
	.comm	LP8720_ENABLE,4,4
	.comm	LP8720_DVS_SEL_M,4,4
	.comm	LP8720_BUCK_VOUT2,4,4
	.comm	LP8720_BUCK_VOUT1,4,4
	.comm	DVS_HIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
