	.file	"extr_sdio.c_wl1251_sdio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wl1251"
.LC1:
	.string	"request_irq() failed: %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"using dedicated interrupt line"
	.section	.rodata.str1.1
.LC3:
	.string	"using SDIO interrupt"
	.text
	.p2align 4
	.type	wl1251_sdio_probe, @function
wl1251_sdio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	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
	mov	rbp, rdi
	call	wl1251_alloc_hw@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 8
	mov	r15, QWORD PTR 24[r12]
	call	kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	mov	r14, rax
	neg	r13d
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	sdio_claim_host@PLT
	mov	rdi, rbp
	call	sdio_enable_func@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L5
	mov	esi, 512
	mov	rdi, rbp
	call	sdio_set_block_size@PLT
	mov	rdi, rbp
	call	sdio_release_host@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	SET_IEEE80211_DEV@PLT
	lea	rax, wl1251_sdio_ops[rip]
	mov	QWORD PTR [r14], rbp
	mov	QWORD PTR 16[r15], rax
	xor	eax, eax
	mov	QWORD PTR 24[r15], r14
	call	wl12xx_get_platform_data@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	je	.L8
.L20:
	mov	esi, DWORD PTR IRQ_NOAUTOEN[rip]
	call	irq_set_status_flags@PLT
	mov	esi, DWORD PTR wl1251_line_irq[rip]
	mov	rdi, QWORD PTR [r15]
	xor	edx, edx
	mov	r8, r15
	lea	rcx, .LC0[rip]
	call	request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L18
	mov	rdi, QWORD PTR [r15]
	mov	esi, DWORD PTR IRQ_TYPE_EDGE_RISING[rip]
	call	irq_set_irq_type@PLT
	mov	eax, DWORD PTR wl1251_enable_line_irq[rip]
	lea	rdi, .LC2[rip]
	mov	DWORD PTR wl1251_sdio_ops[rip+4], eax
	mov	eax, DWORD PTR wl1251_disable_line_irq[rip]
	mov	DWORD PTR wl1251_sdio_ops[rip], eax
	call	wl1251_info@PLT
.L11:
	mov	rdi, r15
	call	wl1251_init_ieee80211@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L12
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	jne	.L19
.L10:
	mov	rdi, rbp
	call	sdio_claim_host@PLT
	mov	rdi, rbp
	call	sdio_disable_func@PLT
.L5:
	mov	rdi, rbp
	call	sdio_release_host@PLT
	mov	rdi, r14
	call	kfree@PLT
.L4:
	mov	rdi, r15
	call	wl1251_free_hw@PLT
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L17:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[r12]
	mov	rdi, QWORD PTR 8[r12]
	mov	DWORD PTR 12[r15], eax
	mov	eax, DWORD PTR [r12]
	mov	QWORD PTR [r15], rdi
	mov	DWORD PTR 8[r15], eax
	test	rdi, rdi
	jne	.L20
.L8:
	mov	eax, DWORD PTR wl1251_sdio_enable_irq[rip]
	lea	rdi, .LC3[rip]
	mov	DWORD PTR wl1251_sdio_ops[rip+4], eax
	mov	eax, DWORD PTR wl1251_sdio_disable_irq[rip]
	mov	DWORD PTR wl1251_sdio_ops[rip], eax
	call	wl1251_info@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	mov	rsi, r15
	call	sdio_set_drvdata@PLT
	mov	rdi, rbp
	call	pm_runtime_put_noidle@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rsi, r15
	call	free_irq@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	wl1251_error@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	wl1251_sdio_probe, .-wl1251_sdio_probe
	.comm	wl1251_sdio_ops,8,8
	.comm	wl1251_sdio_enable_irq,4,4
	.comm	wl1251_sdio_disable_irq,4,4
	.comm	wl1251_line_irq,4,4
	.comm	wl1251_enable_line_irq,4,4
	.comm	wl1251_disable_line_irq,4,4
	.comm	IRQ_TYPE_EDGE_RISING,4,4
	.comm	IRQ_NOAUTOEN,4,4
	.comm	GFP_KERNEL,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_sdio.c_wl1251_sdio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wl1251\000"
	.align	2
.LC1:
	.ascii	"request_irq() failed: %d\000"
	.align	2
.LC2:
	.ascii	"using dedicated interrupt line\000"
	.align	2
.LC3:
	.ascii	"using SDIO interrupt\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wl1251_sdio_probe, %function
wl1251_sdio_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	wl1251_alloc_hw
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L17
	ldr	r3, .L22
	mov	r0, #4
	ldr	r1, [r3]
	ldr	r7, [r6, #12]
	bl	kzalloc
	subs	r8, r0, #0
	beq	.L18
	mov	r0, r4
	bl	sdio_claim_host
	mov	r0, r4
	bl	sdio_enable_func
	subs	r5, r0, #0
	bne	.L5
	mov	r1, #512
	mov	r0, r4
	bl	sdio_set_block_size
	ldr	r9, .L22+4
	mov	r0, r4
	bl	sdio_release_host
	mov	r1, r4
	mov	r0, r6
	bl	SET_IEEE80211_DEV
	str	r4, [r8]
	str	r8, [r7, #16]
	str	r9, [r7, #12]
	bl	wl12xx_get_platform_data
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	ldreq	r3, [r5]
	ldrne	r0, [r7]
	ldmibeq	r5, {r0, r2}
	stmeq	r7, {r0, r3}
	streq	r2, [r7, #8]
	cmp	r0, #0
	bne	.L19
	ldr	r2, .L22+8
	ldr	r3, .L22+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L22+16
	str	r2, [r9, #4]
	str	r3, [r9]
	bl	wl1251_info
.L11:
	mov	r0, r7
	bl	wl1251_init_ieee80211
	subs	r5, r0, #0
	beq	.L12
	ldr	r0, [r7]
	cmp	r0, #0
	bne	.L20
.L10:
	mov	r0, r4
	bl	sdio_claim_host
	mov	r0, r4
	bl	sdio_disable_func
.L5:
	mov	r0, r4
	bl	sdio_release_host
	mov	r0, r8
	bl	kfree
	b	.L4
.L18:
	ldr	r3, .L22+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L4:
	mov	r0, r7
	bl	wl1251_free_hw
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	PTR_ERR
.L19:
	ldr	r3, .L22+24
	ldr	r1, [r3]
	bl	irq_set_status_flags
	ldr	r3, .L22+28
	ldr	r0, [r7]
	ldr	r1, [r3]
	mov	r2, #0
	ldr	r3, .L22+32
	str	r7, [sp]
	bl	request_irq
	subs	r5, r0, #0
	blt	.L21
	ldr	r3, .L22+36
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	irq_set_irq_type
	ldr	r2, .L22+40
	ldr	r3, .L22+44
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L22+48
	str	r2, [r9, #4]
	str	r3, [r9]
	bl	wl1251_info
	b	.L11
.L12:
	mov	r1, r7
	mov	r0, r4
	bl	sdio_set_drvdata
	mov	r0, r4
	bl	pm_runtime_put_noidle
	b	.L1
.L20:
	mov	r1, r7
	bl	free_irq
	b	.L10
.L21:
	mov	r1, r5
	ldr	r0, .L22+52
	bl	wl1251_error
	b	.L10
.L23:
	.align	2
.L22:
	.word	GFP_KERNEL
	.word	wl1251_sdio_ops
	.word	wl1251_sdio_enable_irq
	.word	wl1251_sdio_disable_irq
	.word	.LC3
	.word	ENOMEM
	.word	IRQ_NOAUTOEN
	.word	wl1251_line_irq
	.word	.LC0
	.word	IRQ_TYPE_EDGE_RISING
	.word	wl1251_enable_line_irq
	.word	wl1251_disable_line_irq
	.word	.LC2
	.word	.LC1
	.size	wl1251_sdio_probe, .-wl1251_sdio_probe
	.comm	wl1251_sdio_ops,8,4
	.comm	wl1251_sdio_enable_irq,4,4
	.comm	wl1251_sdio_disable_irq,4,4
	.comm	wl1251_line_irq,4,4
	.comm	wl1251_enable_line_irq,4,4
	.comm	wl1251_disable_line_irq,4,4
	.comm	IRQ_TYPE_EDGE_RISING,4,4
	.comm	IRQ_NOAUTOEN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
