	.file	"extr_db1000.c_db1100_mmc_set_power.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	db1100_mmc_set_power, @function
db1100_mmc_set_power:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR BCSR_WHOAMI[rip]
	mov	ebx, esi
	call	bcsr_read@PLT
	mov	edi, eax
	call	BCSR_WHOAMI_BOARD@PLT
	cmp	rax, QWORD PTR BCSR_WHOAMI_DB1100[rip]
	mov	esi, DWORD PTR BCSR_BOARD_PB1100_SD0PWR[rip]
	jne	.L3
	mov	esi, DWORD PTR BCSR_BOARD_SD0PWR[rip]
.L3:
	mov	edi, DWORD PTR BCSR_BOARD[rip]
	test	ebx, ebx
	je	.L4
	mov	edx, esi
	xor	esi, esi
	call	bcsr_mod@PLT
	mov	edi, 400
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	msleep@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	bcsr_mod@PLT
	.cfi_endproc
.LFE0:
	.size	db1100_mmc_set_power, .-db1100_mmc_set_power
	.comm	BCSR_WHOAMI_DB1100,8,8
	.comm	BCSR_WHOAMI,4,4
	.comm	BCSR_BOARD_SD0PWR,4,4
	.comm	BCSR_BOARD_PB1100_SD0PWR,4,4
	.comm	BCSR_BOARD,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_db1000.c_db1100_mmc_set_power.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db1100_mmc_set_power, %function
db1100_mmc_set_power:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, lr}
	ldr	r0, [r3]
	mov	r4, r1
	bl	bcsr_read
	bl	BCSR_WHOAMI_BOARD
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L7+8
	ldrne	r3, .L7+12
	cmp	r4, #0
	ldr	r1, [r3]
	ldr	r3, .L7+16
	ldr	r0, [r3]
	beq	.L4
	mov	r2, r1
	mov	r1, #0
	bl	bcsr_mod
	pop	{r4, lr}
	mov	r0, #400
	b	msleep
.L4:
	mov	r2, r4
	pop	{r4, lr}
	b	bcsr_mod
.L8:
	.align	2
.L7:
	.word	BCSR_WHOAMI
	.word	BCSR_WHOAMI_DB1100
	.word	BCSR_BOARD_SD0PWR
	.word	BCSR_BOARD_PB1100_SD0PWR
	.word	BCSR_BOARD
	.size	db1100_mmc_set_power, .-db1100_mmc_set_power
	.comm	BCSR_WHOAMI_DB1100,4,4
	.comm	BCSR_WHOAMI,4,4
	.comm	BCSR_BOARD_SD0PWR,4,4
	.comm	BCSR_BOARD_PB1100_SD0PWR,4,4
	.comm	BCSR_BOARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
