	.file	"extr_if_smc.c_smc_mmu_wait.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	smc_mmu_wait, @function
smc_mmu_wait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	device_get_nameunit@PLT
	mov	esi, DWORD PTR BSR[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	bus_read_2@PLT
	and	eax, DWORD PTR BSR_BANK_MASK[rip]
	xor	edi, edi
	movsx	rsi, ebp
	cmp	eax, 2
	sete	dil
	call	KASSERT@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR MMUCR[rip]
	mov	edi, DWORD PTR [rbx]
	call	bus_read_2@PLT
	test	DWORD PTR MMUCR_BUSY[rip], eax
	jne	.L2
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	smc_mmu_wait, .-smc_mmu_wait
	.comm	MMUCR_BUSY,4,4
	.comm	MMUCR,4,4
	.comm	BSR_BANK_MASK,4,4
	.comm	BSR,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_if_smc.c_smc_mmu_wait.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smc_mmu_wait, %function
smc_mmu_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	ldr	r0, [r0]
	bl	bus_read_2
	mov	r5, r0
	ldr	r3, .L7+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	ldr	r6, .L7+8
	and	r5, r5, r3
	sub	r5, r5, #2
	clz	r5, r5
	bl	device_get_nameunit
	lsr	r5, r5, #5
	mov	r1, r0
	mov	r0, r5
	bl	KASSERT
	ldr	r5, .L7+12
.L2:
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	bus_read_2
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L2
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	BSR
	.word	BSR_BANK_MASK
	.word	MMUCR
	.word	MMUCR_BUSY
	.size	smc_mmu_wait, .-smc_mmu_wait
	.comm	MMUCR_BUSY,4,4
	.comm	MMUCR,4,4
	.comm	BSR_BANK_MASK,4,4
	.comm	BSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
