	.file	"extr_sdio.c_ath6kl_sdio_power_on.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sdio power on\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Unable to enable sdio func: %d)\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Failed to config sdio: %d\n"
	.text
	.p2align 4
	.type	ath6kl_sdio_power_on, @function
ath6kl_sdio_power_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ath6kl_sdio_priv@PLT
	mov	r12d, DWORD PTR [rax]
	test	r12d, r12d
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L10:
	.cfi_restore_state
	mov	r13, QWORD PTR 8[rax]
	mov	edi, DWORD PTR ATH6KL_DBG_BOOT[rip]
	lea	rsi, .LC0[rip]
	mov	rbx, rax
	call	ath6kl_dbg@PLT
	mov	rdi, r13
	call	sdio_claim_host@PLT
	mov	rdi, r13
	call	sdio_enable_func@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	mov	rdi, r13
	call	sdio_release_host@PLT
	mov	edi, 10
	call	msleep@PLT
	mov	rdi, rbp
	call	ath6kl_sdio_config@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	mov	DWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L11:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	ath6kl_err@PLT
	mov	rdi, r13
	call	sdio_release_host@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L12:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	ath6kl_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ath6kl_sdio_power_on, .-ath6kl_sdio_power_on
	.comm	ATH6KL_DBG_BOOT,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_ath6kl_sdio_power_on.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sdio power on\012\000"
	.align	2
.LC1:
	.ascii	"Unable to enable sdio func: %d)\012\000"
	.align	2
.LC2:
	.ascii	"Failed to config sdio: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_sdio_power_on, %function
ath6kl_sdio_power_on:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	ath6kl_sdio_priv
	ldr	r4, [r0]
	cmp	r4, #0
	bne	.L10
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L12
	ldr	r7, [r0, #4]
	ldr	r1, .L12+4
	mov	r5, r0
	ldr	r0, [r3]
	bl	ath6kl_dbg
	mov	r0, r7
	bl	sdio_claim_host
	mov	r0, r7
	bl	sdio_enable_func
	subs	r4, r0, #0
	bne	.L11
	mov	r0, r7
	bl	sdio_release_host
	mov	r0, #10
	bl	msleep
	mov	r0, r6
	bl	ath6kl_sdio_config
	subs	r4, r0, #0
	streq	r4, [r5]
	beq	.L1
	mov	r1, r4
	ldr	r0, .L12+8
	bl	ath6kl_err
	b	.L1
.L11:
	mov	r1, r4
	ldr	r0, .L12+12
	bl	ath6kl_err
	mov	r0, r7
	bl	sdio_release_host
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	ATH6KL_DBG_BOOT
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	ath6kl_sdio_power_on, .-ath6kl_sdio_power_on
	.comm	ATH6KL_DBG_BOOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
