	.file	"extr_sdio.c_ssb_sdio_set_sbaddr_window.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to set address window to 0x%08x, error %d\n"
	.text
	.p2align 4
	.type	ssb_sdio_set_sbaddr_window, @function
ssb_sdio_set_sbaddr_window:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, esi
	mov	r13d, esi
	mov	esi, DWORD PTR SBSDIO_FUNC1_SBADDRLOW[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sar	edx, 8
	and	edx, DWORD PTR SBSDIO_SBADDRLOW_MASK[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	ssb_sdio_writeb@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
.L2:
	mov	rdi, rbp
	call	ssb_sdio_dev@PLT
	mov	ecx, r12d
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_dbg@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR SBSDIO_FUNC1_SBADDRMID[rip]
	mov	edx, r13d
	mov	rdi, rbp
	sar	edx, 16
	and	edx, DWORD PTR SBSDIO_SBADDRMID_MASK[rip]
	call	ssb_sdio_writeb@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR SBSDIO_FUNC1_SBADDRHIGH[rip]
	mov	edx, r13d
	mov	rdi, rbp
	sar	edx, 24
	and	edx, DWORD PTR SBSDIO_SBADDRHIGH_MASK[rip]
	call	ssb_sdio_writeb@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	DWORD PTR 0[rbp], r13d
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ssb_sdio_set_sbaddr_window, .-ssb_sdio_set_sbaddr_window
	.comm	SBSDIO_SBADDRMID_MASK,4,4
	.comm	SBSDIO_SBADDRLOW_MASK,4,4
	.comm	SBSDIO_SBADDRHIGH_MASK,4,4
	.comm	SBSDIO_FUNC1_SBADDRMID,4,4
	.comm	SBSDIO_FUNC1_SBADDRLOW,4,4
	.comm	SBSDIO_FUNC1_SBADDRHIGH,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_sdio.c_ssb_sdio_set_sbaddr_window.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to set address window to 0x%08x, error %d\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssb_sdio_set_sbaddr_window, %function
ssb_sdio_set_sbaddr_window:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r2, .L8
	ldr	r3, .L8+4
	ldr	r2, [r2]
	ldr	r1, [r3]
	and	r2, r2, r5, asr #8
	mov	r6, r0
	bl	ssb_sdio_writeb
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r0, r6
	bl	ssb_sdio_dev
	mov	r3, r4
	mov	r2, r5
	ldr	r1, .L8+8
	bl	dev_dbg
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r3]
	and	r2, r2, r5, asr #16
	bl	ssb_sdio_writeb
	subs	r4, r0, #0
	bne	.L2
	ldr	r2, .L8+20
	ldr	r3, .L8+24
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r1, [r3]
	and	r2, r2, r5, asr #24
	bl	ssb_sdio_writeb
	subs	r4, r0, #0
	streq	r5, [r6]
	bne	.L2
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	SBSDIO_SBADDRLOW_MASK
	.word	SBSDIO_FUNC1_SBADDRLOW
	.word	.LC0
	.word	SBSDIO_SBADDRMID_MASK
	.word	SBSDIO_FUNC1_SBADDRMID
	.word	SBSDIO_SBADDRHIGH_MASK
	.word	SBSDIO_FUNC1_SBADDRHIGH
	.size	ssb_sdio_set_sbaddr_window, .-ssb_sdio_set_sbaddr_window
	.comm	SBSDIO_SBADDRMID_MASK,4,4
	.comm	SBSDIO_SBADDRLOW_MASK,4,4
	.comm	SBSDIO_SBADDRHIGH_MASK,4,4
	.comm	SBSDIO_FUNC1_SBADDRMID,4,4
	.comm	SBSDIO_FUNC1_SBADDRLOW,4,4
	.comm	SBSDIO_FUNC1_SBADDRHIGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
