	.file	"extr_sd.c_sd_change_bank_voltage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_change_bank_voltage, @function
sd_change_bank_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR SD_IO_3V3[rip], rsi
	je	.L11
	cmp	QWORD PTR SD_IO_1V8[rip], rsi
	mov	eax, DWORD PTR STATUS_FAIL[rip]
	jne	.L1
	cmp	QWORD PTR 8[rdi], 0
	je	.L7
	mov	edx, DWORD PTR [rdi]
	mov	esi, 8
	or	edx, 19520
	call	rtsx_write_phy_register@PLT
	cmp	DWORD PTR STATUS_SUCCESS[rip], eax
	jne	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	QWORD PTR 8[rdi], 0
	je	.L3
	mov	edx, DWORD PTR [rdi]
	mov	esi, 8
	or	edx, 20416
	call	rtsx_write_phy_register@PLT
	cmp	DWORD PTR STATUS_SUCCESS[rip], eax
	je	.L1
.L9:
	mov	eax, DWORD PTR STATUS_FAIL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR SD_IO_USING_1V8[rip]
	mov	esi, DWORD PTR SD_PAD_CTL[rip]
	xor	ecx, ecx
	call	rtsx_write_register@PLT
	test	eax, eax
	cmove	eax, DWORD PTR STATUS_SUCCESS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edx, DWORD PTR SD_IO_USING_1V8[rip]
	mov	esi, DWORD PTR SD_PAD_CTL[rip]
	mov	ecx, edx
	call	rtsx_write_register@PLT
	test	eax, eax
	cmove	eax, DWORD PTR STATUS_SUCCESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sd_change_bank_voltage, .-sd_change_bank_voltage
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_FAIL,4,4
	.comm	SD_PAD_CTL,4,4
	.comm	SD_IO_USING_1V8,4,4
	.comm	SD_IO_3V3,8,8
	.comm	SD_IO_1V8,8,8
	.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_sd.c_sd_change_bank_voltage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_change_bank_voltage, %function
sd_change_bank_voltage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, lr}
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L11
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, r1
	bne	.L6
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [r0]
	mov	r1, #8
	orr	r2, r2, #19456
	orr	r2, r2, #64
	bl	rtsx_write_phy_register
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, r0
	popeq	{r4, pc}
.L6:
	ldr	r3, .L13+12
	ldr	r0, [r3]
	pop	{r4, pc}
.L11:
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bne	.L12
	ldr	r2, .L13+16
	ldr	r1, .L13+20
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	rtsx_write_register
	cmp	r0, #0
	popne	{r4, pc}
.L9:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, pc}
.L12:
	ldr	r2, [r0]
	mov	r1, #8
	orr	r2, r2, #20224
	orr	r2, r2, #192
	bl	rtsx_write_phy_register
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, r0
	popeq	{r4, pc}
	b	.L6
.L7:
	ldr	r3, .L13+16
	ldr	r2, .L13+20
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r2, r3
	bl	rtsx_write_register
	cmp	r0, #0
	beq	.L9
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	SD_IO_3V3
	.word	SD_IO_1V8
	.word	STATUS_SUCCESS
	.word	STATUS_FAIL
	.word	SD_IO_USING_1V8
	.word	SD_PAD_CTL
	.size	sd_change_bank_voltage, .-sd_change_bank_voltage
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_FAIL,4,4
	.comm	SD_PAD_CTL,4,4
	.comm	SD_IO_USING_1V8,4,4
	.comm	SD_IO_3V3,4,4
	.comm	SD_IO_1V8,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
