	.file	"extr_tmio_mmc.h_sd_ctrl_write32_as_16_and_16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sd_ctrl_write32_as_16_and_16, @function
sd_ctrl_write32_as_16_and_16:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR CTL_IRQ_MASK[rip], esi
	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
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	je	.L2
	cmp	DWORD PTR CTL_STATUS[rip], esi
	je	.L2
.L3:
	mov	ecx, DWORD PTR 4[r12]
	mov	esi, ebx
	movzx	edi, bp
	add	ebx, 2
	sal	esi, cl
	movsx	rsi, esi
	add	rsi, QWORD PTR 8[r12]
	call	iowrite16@PLT
	mov	ecx, DWORD PTR 4[r12]
	mov	edi, ebp
	sar	edi, 16
	sal	ebx, cl
	movsx	rsi, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	add	rsi, QWORD PTR 8[r12]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	iowrite16@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	or	ebp, DWORD PTR [r12]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sd_ctrl_write32_as_16_and_16, .-sd_ctrl_write32_as_16_and_16
	.comm	CTL_STATUS,4,4
	.comm	CTL_IRQ_MASK,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_tmio_mmc.h_sd_ctrl_write32_as_16_and_16.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sd_ctrl_write32_as_16_and_16, %function
sd_ctrl_write32_as_16_and_16:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r1
	cmp	r3, r1
	mov	r5, r0
	mov	r6, r2
	beq	.L2
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L2
.L3:
	ldmib	r5, {r1, r3}
	lsl	r0, r6, #16
	add	r1, r3, r4, lsl r1
	lsr	r0, r0, #16
	add	r4, r4, #2
	bl	iowrite16
	ldmib	r5, {r1, r3}
	asr	r0, r6, #16
	add	r1, r3, r4, lsl r1
	pop	{r4, r5, r6, lr}
	b	iowrite16
.L2:
	ldr	r3, [r5]
	orr	r6, r6, r3
	b	.L3
.L7:
	.align	2
.L6:
	.word	CTL_IRQ_MASK
	.word	CTL_STATUS
	.size	sd_ctrl_write32_as_16_and_16, .-sd_ctrl_write32_as_16_and_16
	.comm	CTL_STATUS,4,4
	.comm	CTL_IRQ_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
