	.file	"extr_if_sdio.c_if_sdio_prog_helper.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't load helper firmware\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"waiting for helper to boot...\n"
	.align 8
.LC2:
	.string	"failed to load helper firmware\n"
	.section	.rodata.str1.1
.LC3:
	.string	"ret %d"
	.text
	.p2align 4
	.type	if_sdio_prog_helper, @function
if_sdio_prog_helper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR LBS_DEB_SDIO[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	lbs_deb_enter@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdx, QWORD PTR [rbx]
	lea	rdi, 32[rsp]
	call	request_firmware@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	jne	.L32
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L33
	mov	rdi, QWORD PTR [rbx]
	call	sdio_claim_host@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, 32
	call	sdio_set_block_size@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR 32[rsp]
	lea	r12, 28[rsp]
	mov	r14, QWORD PTR 8[rax]
	mov	r15, QWORD PTR [rax]
	lea	rax, 16[r13]
	mov	QWORD PTR 8[rsp], rax
	test	r14, r14
	je	.L14
.L7:
	mov	rbp, QWORD PTR HZ[rip]
	add	rbp, QWORD PTR jiffies[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L34:
	test	DWORD PTR IF_SDIO_IO_RDY[rip], eax
	je	.L9
	test	DWORD PTR IF_SDIO_DL_RDY[rip], eax
	jne	.L10
.L9:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, rbp
	call	time_after@PLT
	test	rax, rax
	jne	.L30
	mov	edi, 1
	call	mdelay@PLT
.L13:
	mov	rsi, QWORD PTR IF_SDIO_STATUS[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	call	sdio_readb@PLT
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	je	.L34
.L12:
	mov	rdi, QWORD PTR [rbx]
	call	sdio_release_host@PLT
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L33:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR 28[rsp], eax
.L5:
.L3:
	endbr64
	mov	rdi, QWORD PTR 32[rsp]
	call	release_firmware@PLT
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	jne	.L35
.L17:
	mov	edi, DWORD PTR LBS_DEB_SDIO[rip]
	lea	rsi, .LC3[rip]
	call	lbs_deb_leave_args@PLT
	mov	eax, DWORD PTR 28[rsp]
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L36
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	lbs_pr_err@PLT
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	je	.L17
.L35:
	lea	rdi, .LC2[rip]
	call	lbs_pr_err@PLT
	mov	edx, DWORD PTR 28[rsp]
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	mov	eax, DWORD PTR ETIMEDOUT[rip]
	mov	rdi, QWORD PTR [rbx]
	neg	eax
	mov	DWORD PTR 28[rsp], eax
	call	sdio_release_host@PLT
	mov	rdi, r13
	call	kfree@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 60
	mov	rdi, r14
	call	min@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	cpu_to_le32@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, rbp
	mov	rsi, r15
	mov	DWORD PTR 0[r13], eax
	call	memcpy@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	mov	ecx, 64
	mov	rdx, r13
	call	sdio_writesb@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	jne	.L12
	lea	r15, [r15+rbp*4]
	sub	r14, rbp
	jne	.L7
.L14:
	mov	edx, 4
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	mov	ecx, 64
	mov	rdx, r13
	call	sdio_writesb@PLT
	mov	DWORD PTR 28[rsp], eax
	test	eax, eax
	jne	.L12
	lea	rdi, .LC1[rip]
	lea	r12, 28[rsp]
	call	lbs_deb_sdio@PLT
	mov	r14, QWORD PTR HZ[rip]
	add	r14, QWORD PTR jiffies[rip]
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR IF_SDIO_RD_BASE[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	lea	rsi, 1[rax]
	call	sdio_readb@PLT
	or	ebp, DWORD PTR 28[rsp]
	sal	eax, 8
	or	ebp, eax
	jne	.L12
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r14
	call	time_after@PLT
	test	rax, rax
	jne	.L30
	mov	edi, 10
	call	msleep@PLT
.L16:
	mov	rsi, QWORD PTR IF_SDIO_RD_BASE[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	call	sdio_readb@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	je	.L37
	jmp	.L12
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	if_sdio_prog_helper, .-if_sdio_prog_helper
	.comm	jiffies,8,8
	.comm	LBS_DEB_SDIO,4,4
	.comm	IF_SDIO_STATUS,8,8
	.comm	IF_SDIO_RD_BASE,8,8
	.comm	IF_SDIO_IO_RDY,4,4
	.comm	IF_SDIO_DL_RDY,4,4
	.comm	HZ,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,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_sdio.c_if_sdio_prog_helper.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't load helper firmware\012\000"
	.align	2
.LC1:
	.ascii	"waiting for helper to boot...\012\000"
	.align	2
.LC2:
	.ascii	"failed to load helper firmware\012\000"
	.align	2
.LC3:
	.ascii	"ret %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	if_sdio_prog_helper, %function
if_sdio_prog_helper:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r10, .L41
	ldr	r3, .L41+4
	sub	sp, sp, #36
	ldr	r0, [r10]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	lbs_deb_enter
	ldr	r2, [r4]
	ldr	r1, [r4, #8]
	add	r0, sp, #24
	bl	request_firmware
	cmp	r0, #0
	str	r0, [sp, #20]
	bne	.L35
	ldr	r3, .L41+8
	mov	r0, #64
	ldr	r1, [r3]
	bl	kzalloc
	subs	r3, r0, #0
	str	r3, [sp, #4]
	beq	.L36
	ldr	r0, [r4]
	bl	sdio_claim_host
	mov	r1, #32
	ldr	r0, [r4]
	bl	sdio_set_block_size
	cmp	r0, #0
	str	r0, [sp, #20]
	bne	.L12
	ldr	r3, [sp, #24]
	ldr	r2, [r3, #4]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	beq	.L14
	ldr	r6, .L41+12
	ldr	r8, .L41+16
	ldr	r9, .L41+20
	ldr	fp, .L41+24
	add	r7, sp, #20
.L7:
	ldr	r3, .L41+28
	ldr	r5, [r6]
	ldr	r3, [r3]
	add	r5, r5, r3
	b	.L13
.L37:
	ldr	r3, [r9]
	tst	r0, r3
	beq	.L9
	ldr	r3, [fp]
	tst	r0, r3
	bne	.L10
.L9:
	mov	r1, r5
	ldr	r0, [r6]
	bl	time_after
	cmp	r0, #0
	bne	.L33
	mov	r0, #1
	bl	mdelay
.L13:
	mov	r2, r7
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	sdio_readb
	ldr	r3, [sp, #20]
	cmp	r3, #0
	beq	.L37
.L12:
	ldr	r0, [r4]
	bl	sdio_release_host
	ldr	r0, [sp, #4]
	bl	kfree
	b	.L5
.L36:
	ldr	r3, .L41+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #20]
.L5:
.L3:
	ldr	r0, [sp, #24]
	bl	release_firmware
	ldr	r2, [sp, #20]
	cmp	r2, #0
	bne	.L38
.L17:
	ldr	r0, [r10]
	ldr	r1, .L41+36
	bl	lbs_deb_leave_args
	ldr	r3, .L41+4
	ldr	r0, [sp, #20]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L39
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r0, .L41+40
	bl	lbs_pr_err
	ldr	r2, [sp, #20]
	cmp	r2, #0
	beq	.L17
.L38:
	ldr	r0, .L41+44
	bl	lbs_pr_err
	ldr	r2, [sp, #20]
	b	.L17
.L33:
	ldr	r3, .L41+48
	ldr	r0, [r4]
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #20]
	bl	sdio_release_host
	ldr	r0, [sp, #4]
	bl	kfree
	b	.L5
.L10:
	mov	r1, #60
	ldr	r0, [sp, #12]
	bl	min
	mov	r5, r0
	bl	cpu_to_le32
	ldr	r3, [sp, #4]
	mov	r2, r5
	str	r0, [r3], #16
	mov	r0, r3
	ldr	r1, [sp, #8]
	bl	memcpy
	ldm	r4, {r0, r1}
	mov	r3, #64
	ldr	r2, [sp, #4]
	bl	sdio_writesb
	cmp	r0, #0
	str	r0, [sp, #20]
	bne	.L12
	ldr	r3, [sp, #12]
	subs	r2, r3, r5
	ldr	r3, [sp, #8]
	str	r2, [sp, #12]
	add	r3, r3, r5, lsl #2
	str	r3, [sp, #8]
	bne	.L7
.L14:
	mov	r3, #0
	ldr	r2, [sp, #4]
	strb	r3, [r2]
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	strb	r3, [r2, #3]
	ldm	r4, {r0, r1}
	mov	r3, #64
	bl	sdio_writesb
	cmp	r0, #0
	str	r0, [sp, #20]
	bne	.L12
	ldr	r0, .L41+52
	bl	lbs_deb_sdio
	ldr	r6, .L41+12
	ldr	r3, .L41+28
	ldr	r9, [r6]
	ldr	r3, [r3]
	ldr	r8, .L41+56
	add	r9, r9, r3
	add	r7, sp, #20
	b	.L16
.L40:
	ldr	r1, [r8]
	mov	r2, r7
	ldr	r0, [r4]
	add	r1, r1, #1
	bl	sdio_readb
	ldr	r3, [sp, #20]
	orr	r5, r5, r3
	orrs	r3, r5, r0, lsl #8
	bne	.L12
	mov	r1, r9
	ldr	r0, [r6]
	bl	time_after
	cmp	r0, #0
	bne	.L33
	mov	r0, #10
	bl	msleep
.L16:
	mov	r2, r7
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	sdio_readb
	ldr	r3, [sp, #20]
	mov	r5, r0
	cmp	r3, #0
	beq	.L40
	b	.L12
.L39:
	bl	__stack_chk_fail
.L42:
	.align	2
.L41:
	.word	LBS_DEB_SDIO
	.word	.LC4
	.word	GFP_KERNEL
	.word	jiffies
	.word	IF_SDIO_STATUS
	.word	IF_SDIO_IO_RDY
	.word	IF_SDIO_DL_RDY
	.word	HZ
	.word	ENOMEM
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	ETIMEDOUT
	.word	.LC1
	.word	IF_SDIO_RD_BASE
	.size	if_sdio_prog_helper, .-if_sdio_prog_helper
	.comm	jiffies,4,4
	.comm	LBS_DEB_SDIO,4,4
	.comm	IF_SDIO_STATUS,4,4
	.comm	IF_SDIO_RD_BASE,4,4
	.comm	IF_SDIO_IO_RDY,4,4
	.comm	IF_SDIO_DL_RDY,4,4
	.comm	HZ,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
