	.file	"extr_sdio.c_ath10k_sdio_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sdio configuration\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"failed to enable driver strength: %d\n"
	.align 8
.LC2:
	.string	"failed to enable 4-bit async irq mode: %d\n"
	.align 8
.LC3:
	.string	"failed to set sdio block size to %d: %d\n"
	.text
	.p2align 4
	.type	ath10k_sdio_config, @function
ath10k_sdio_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r14, 7[rsp]
	call	ath10k_sdio_priv@PLT
	mov	esi, DWORD PTR ATH10K_DBG_BOOT[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r12
	mov	rbp, QWORD PTR 8[rax]
	mov	rbx, rax
	call	ath10k_dbg@PLT
	mov	rdi, rbp
	call	sdio_claim_host@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rdx, r14
	mov	BYTE PTR 7[rsp], 0
	mov	esi, DWORD PTR SDIO_CCCR_DRIVE_STRENGTH[rip]
	call	ath10k_sdio_func0_cmd52_rd_byte@PLT
	movzx	edi, BYTE PTR ATH10K_SDIO_DRIVE_DTSX_MASK[rip]
	movzx	esi, BYTE PTR ATH10K_SDIO_DRIVE_DTSX_TYPE_D[rip]
	mov	eax, edi
	not	eax
	and	BYTE PTR 7[rsp], al
	call	FIELD_PREP@PLT
	mov	edi, DWORD PTR 4[rbp]
	or	al, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR SDIO_CCCR_DRIVE_STRENGTH[rip]
	movzx	edx, al
	mov	BYTE PTR 7[rsp], al
	call	ath10k_sdio_func0_cmd52_wr_byte@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	rdx, r14
	mov	BYTE PTR 7[rsp], 0
	mov	esi, DWORD PTR CCCR_SDIO_DRIVER_STRENGTH_ENABLE_ADDR[rip]
	call	ath10k_sdio_func0_cmd52_rd_byte@PLT
	movzx	edx, BYTE PTR CCCR_SDIO_DRIVER_STRENGTH_ENABLE_A[rip]
	mov	edi, DWORD PTR 4[rbp]
	or	dl, BYTE PTR CCCR_SDIO_DRIVER_STRENGTH_ENABLE_C[rip]
	mov	esi, DWORD PTR CCCR_SDIO_DRIVER_STRENGTH_ENABLE_ADDR[rip]
	or	dl, BYTE PTR CCCR_SDIO_DRIVER_STRENGTH_ENABLE_D[rip]
	or	dl, BYTE PTR 7[rsp]
	mov	BYTE PTR 7[rsp], dl
	movzx	edx, dl
	call	ath10k_sdio_func0_cmd52_wr_byte@PLT
	test	eax, eax
	jne	.L11
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR CCCR_SDIO_IRQ_MODE_REG_SDIO3[rip]
	mov	rdx, r14
	mov	BYTE PTR 7[rsp], 0
	call	ath10k_sdio_func0_cmd52_rd_byte@PLT
	movzx	edx, BYTE PTR 7[rsp]
	mov	edi, DWORD PTR 4[rbp]
	or	dl, BYTE PTR SDIO_IRQ_MODE_ASYNC_4BIT_IRQ_SDIO3[rip]
	mov	esi, DWORD PTR CCCR_SDIO_IRQ_MODE_REG_SDIO3[rip]
	mov	BYTE PTR 7[rsp], dl
	movzx	edx, dl
	call	ath10k_sdio_func0_cmd52_wr_byte@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L12
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR CCCR_SDIO_ASYNC_INT_DELAY_ADDRESS[rip]
	mov	rdx, r14
	mov	BYTE PTR 7[rsp], 0
	call	ath10k_sdio_func0_cmd52_rd_byte@PLT
	movzx	edi, BYTE PTR CCCR_SDIO_ASYNC_INT_DELAY_MASK[rip]
	mov	esi, 2
	mov	eax, edi
	not	eax
	and	BYTE PTR 7[rsp], al
	call	FIELD_PREP@PLT
	mov	edi, DWORD PTR 4[rbp]
	or	al, BYTE PTR 7[rsp]
	mov	esi, DWORD PTR CCCR_SDIO_ASYNC_INT_DELAY_ADDRESS[rip]
	movzx	edx, al
	mov	BYTE PTR 7[rsp], al
	call	ath10k_sdio_func0_cmd52_wr_byte@PLT
	mov	DWORD PTR 0[rbp], 100
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	sdio_set_block_size@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L13
.L3:
	mov	rdi, rbp
	call	sdio_release_host@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r12
	xor	eax, eax
	call	ath10k_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r13d, eax
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	xor	eax, eax
	call	ath10k_warn@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	xor	eax, eax
	call	ath10k_warn@PLT
	jmp	.L3
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ath10k_sdio_config, .-ath10k_sdio_config
	.comm	SDIO_IRQ_MODE_ASYNC_4BIT_IRQ_SDIO3,1,1
	.comm	SDIO_CCCR_DRIVE_STRENGTH,4,4
	.comm	CCCR_SDIO_IRQ_MODE_REG_SDIO3,4,4
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_D,1,1
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_C,1,1
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_ADDR,4,4
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_A,1,1
	.comm	CCCR_SDIO_ASYNC_INT_DELAY_MASK,1,1
	.comm	CCCR_SDIO_ASYNC_INT_DELAY_ADDRESS,4,4
	.comm	ATH10K_SDIO_DRIVE_DTSX_TYPE_D,1,1
	.comm	ATH10K_SDIO_DRIVE_DTSX_MASK,1,1
	.comm	ATH10K_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_ath10k_sdio_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sdio configuration\012\000"
	.align	2
.LC1:
	.ascii	"failed to enable driver strength: %d\012\000"
	.align	2
.LC2:
	.ascii	"failed to enable 4-bit async irq mode: %d\012\000"
	.align	2
.LC3:
	.ascii	"failed to set sdio block size to %d: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath10k_sdio_config, %function
ath10k_sdio_config:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	ath10k_sdio_priv
	mov	r8, #0
	ldr	r3, .L15+4
	ldr	r5, [r0, #4]
	ldr	r1, [r3]
	ldr	r2, .L15+8
	ldr	r9, .L15+12
	mov	r7, r0
	mov	r0, r6
	bl	ath10k_dbg
	mov	r0, r5
	bl	sdio_claim_host
	ldr	r1, [r9]
	add	r2, sp, #3
	ldr	r0, [r5, #4]
	strb	r8, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_rd_byte
	ldr	r2, .L15+16
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r0, [r2]	@ zero_extendqisi2
	ldr	r2, .L15+20
	bic	r3, r3, r0
	ldrb	r1, [r2]	@ zero_extendqisi2
	strb	r3, [sp, #3]
	bl	FIELD_PREP
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r4, .L15+24
	orr	r2, r0, r2
	and	r2, r2, #255
	ldr	r1, [r9]
	ldr	r0, [r5, #4]
	strb	r2, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_wr_byte
	ldr	r1, [r4]
	add	r2, sp, #3
	ldr	r0, [r5, #4]
	strb	r8, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_rd_byte
	ldr	r2, .L15+28
	ldr	r3, .L15+32
	ldr	r1, .L15+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	ldrb	r1, [r1]	@ zero_extendqisi2
	orr	r2, r2, r3
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	orr	r2, r2, r1
	orr	r2, r2, r3
	ldr	r1, [r4]
	ldr	r0, [r5, #4]
	strb	r2, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_wr_byte
	subs	r4, r0, #0
	bne	.L11
	ldr	r8, .L15+40
	add	r2, sp, #3
	ldr	r1, [r8]
	ldr	r0, [r5, #4]
	strb	r4, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_rd_byte
	ldr	r3, .L15+44
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [r8]
	orr	r2, r2, r3
	ldr	r0, [r5, #4]
	strb	r2, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_wr_byte
	subs	r4, r0, #0
	bne	.L12
	ldr	r8, .L15+48
	add	r2, sp, #3
	ldr	r1, [r8]
	ldr	r0, [r5, #4]
	strb	r4, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_rd_byte
	ldr	r2, .L15+52
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	ldrb	r0, [r2]	@ zero_extendqisi2
	mov	r1, #2
	bic	r3, r3, r0
	strb	r3, [sp, #3]
	bl	FIELD_PREP
	ldrb	r2, [sp, #3]	@ zero_extendqisi2
	ldr	r1, [r8]
	orr	r2, r0, r2
	and	r2, r2, #255
	ldr	r0, [r5, #4]
	strb	r2, [sp, #3]
	bl	ath10k_sdio_func0_cmd52_wr_byte
	mov	r3, #100
	ldr	r1, [r7]
	mov	r0, r5
	str	r3, [r5]
	bl	sdio_set_block_size
	subs	r4, r0, #0
	bne	.L13
.L3:
	mov	r0, r5
	bl	sdio_release_host
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L15+56
	bl	ath10k_warn
	b	.L3
.L11:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L15+60
	bl	ath10k_warn
	b	.L3
.L13:
	mov	r0, r6
	mov	r3, r4
	ldr	r2, [r7]
	ldr	r1, .L15+64
	bl	ath10k_warn
	b	.L3
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	ATH10K_DBG_BOOT
	.word	.LC0
	.word	SDIO_CCCR_DRIVE_STRENGTH
	.word	ATH10K_SDIO_DRIVE_DTSX_MASK
	.word	ATH10K_SDIO_DRIVE_DTSX_TYPE_D
	.word	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_ADDR
	.word	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_A
	.word	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_C
	.word	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_D
	.word	CCCR_SDIO_IRQ_MODE_REG_SDIO3
	.word	SDIO_IRQ_MODE_ASYNC_4BIT_IRQ_SDIO3
	.word	CCCR_SDIO_ASYNC_INT_DELAY_ADDRESS
	.word	CCCR_SDIO_ASYNC_INT_DELAY_MASK
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	ath10k_sdio_config, .-ath10k_sdio_config
	.comm	SDIO_IRQ_MODE_ASYNC_4BIT_IRQ_SDIO3,1,1
	.comm	SDIO_CCCR_DRIVE_STRENGTH,4,4
	.comm	CCCR_SDIO_IRQ_MODE_REG_SDIO3,4,4
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_D,1,1
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_C,1,1
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_ADDR,4,4
	.comm	CCCR_SDIO_DRIVER_STRENGTH_ENABLE_A,1,1
	.comm	CCCR_SDIO_ASYNC_INT_DELAY_MASK,1,1
	.comm	CCCR_SDIO_ASYNC_INT_DELAY_ADDRESS,4,4
	.comm	ATH10K_SDIO_DRIVE_DTSX_TYPE_D,1,1
	.comm	ATH10K_SDIO_DRIVE_DTSX_MASK,1,1
	.comm	ATH10K_DBG_BOOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
