	.file	"extr_rts5227.c_rts522a_switch_output_voltage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rts522a_switch_output_voltage, @function
rts522a_switch_output_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 22500
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR OUTPUT_3V3[rip], esi
	je	.L7
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	DWORD PTR OUTPUT_1V8[rip], esi
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	edx, 15362
	mov	esi, 17
	call	rtsx_pci_write_phy_register@PLT
	test	eax, eax
	js	.L1
	mov	edx, 21668
.L7:
	mov	esi, 8
	mov	rdi, r12
	call	rtsx_pci_write_phy_register@PLT
	test	eax, eax
	js	.L1
	mov	rdi, r12
	call	rtsx_pci_init_cmd@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	rts5227_fill_driving@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	mov	esi, 100
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rtsx_pci_send_cmd@PLT
	.cfi_endproc
.LFE0:
	.size	rts522a_switch_output_voltage, .-rts522a_switch_output_voltage
	.comm	OUTPUT_3V3,4,4
	.comm	OUTPUT_1V8,4,4
	.comm	EINVAL,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_rts5227.c_rts522a_switch_output_voltage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rts522a_switch_output_voltage, %function
rts522a_switch_output_voltage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r1
	cmp	r3, r1
	mov	r5, r0
	beq	.L10
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L11
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r1, #17
	ldr	r2, .L12+12
	bl	rtsx_pci_write_phy_register
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r1, #8
	mov	r0, r5
	ldr	r2, .L12+16
	bl	rtsx_pci_write_phy_register
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	bl	rtsx_pci_init_cmd
	mov	r1, r4
	mov	r0, r5
	bl	rts5227_fill_driving
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #100
	b	rtsx_pci_send_cmd
.L10:
	mov	r1, #8
	ldr	r2, .L12+20
	bl	rtsx_pci_write_phy_register
	cmp	r0, #0
	bge	.L4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	OUTPUT_3V3
	.word	OUTPUT_1V8
	.word	EINVAL
	.word	15362
	.word	21668
	.word	22500
	.size	rts522a_switch_output_voltage, .-rts522a_switch_output_voltage
	.comm	OUTPUT_3V3,4,4
	.comm	OUTPUT_1V8,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
