	.file	"extr_sdhci.c___sdhci_add_host.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DMA"
.LC1:
	.string	"ADMA"
.LC2:
	.string	"ADMA 64-bit"
.LC3:
	.string	"PIO"
.LC4:
	.string	"sdhci"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"%s: Failed to request IRQ %d: %d\n"
	.align 8
.LC6:
	.string	"%s: Failed to register LED device: %d\n"
	.align 8
.LC7:
	.string	"%s: SDHCI controller on %s [%s] using %s\n"
	.text
	.p2align 4
	.globl	__sdhci_add_host
	.type	__sdhci_add_host, @function
__sdhci_add_host:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR 32[rdi]
	mov	esi, DWORD PTR WQ_UNBOUND[rip]
	lea	rdi, .LC4[rip]
	or	esi, DWORD PTR WQ_MEM_RECLAIM[rip]
	or	esi, DWORD PTR WQ_HIGHPRI[rip]
	call	alloc_workqueue@PLT
	mov	DWORD PTR 4[rbp], eax
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR sdhci_complete_work[rip]
	lea	rdi, 28[rbp]
	call	INIT_WORK@PLT
	mov	esi, DWORD PTR sdhci_timeout_timer[rip]
	lea	rdi, 24[rbp]
	xor	edx, edx
	call	timer_setup@PLT
	mov	esi, DWORD PTR sdhci_timeout_data_timer[rip]
	xor	edx, edx
	lea	rdi, 20[rbp]
	call	timer_setup@PLT
	lea	rdi, 16[rbp]
	call	init_waitqueue_head@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	sdhci_init@PLT
	mov	rdi, r13
	call	mmc_hostname@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r9, rbp
	mov	ecx, DWORD PTR IRQF_SHARED[rip]
	mov	edx, DWORD PTR sdhci_thread_irq[rip]
	mov	esi, DWORD PTR sdhci_irq[rip]
	mov	r8d, eax
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	rdi, rbp
	call	sdhci_led_register@PLT
	mov	rdi, r13
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	call	mmc_add_host@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR SDHCI_USE_ADMA[rip], eax
	je	.L9
	test	DWORD PTR SDHCI_USE_64_BIT_DMA[rip], eax
	lea	rbx, .LC2[rip]
	lea	r8, .LC1[rip]
	cmove	rbx, r8
.L10:
	mov	rdi, r13
	call	mmc_dev@PLT
	mov	edi, eax
	call	dev_name@PLT
	mov	r15d, DWORD PTR 12[rbp]
	mov	rdi, r13
	mov	r14d, eax
	call	mmc_hostname@PLT
	mov	r8, rbx
	mov	ecx, r14d
	mov	edx, r15d
	mov	esi, eax
	lea	rdi, .LC7[rip]
	call	pr_info@PLT
	mov	rdi, rbp
	call	sdhci_enable_card_detection@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r14d, DWORD PTR 8[rbp]
	mov	rdi, r13
	call	mmc_hostname@PLT
	mov	ecx, r12d
	lea	rdi, .LC5[rip]
	mov	esi, eax
	mov	edx, r14d
	xor	eax, eax
	call	pr_err@PLT
.L5:
	mov	edi, DWORD PTR 4[rbp]
	call	destroy_workqueue@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	call	mmc_hostname@PLT
	mov	edx, r12d
	lea	rdi, .LC6[rip]
	mov	esi, eax
	xor	eax, eax
	call	pr_err@PLT
.L7:
	mov	esi, DWORD PTR SDHCI_RESET_ALL[rip]
	mov	rdi, rbp
	call	sdhci_do_reset@PLT
	mov	edx, DWORD PTR SDHCI_INT_ENABLE[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sdhci_writel@PLT
	mov	edx, DWORD PTR SDHCI_SIGNAL_ENABLE[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	sdhci_writel@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, rbp
	call	free_irq@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	test	DWORD PTR SDHCI_USE_SDMA[rip], eax
	lea	rbx, .LC0[rip]
	lea	r8, .LC3[rip]
	cmove	rbx, r8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbp
	call	sdhci_led_unregister@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	__sdhci_add_host, .-__sdhci_add_host
	.comm	sdhci_timeout_timer,4,4
	.comm	sdhci_timeout_data_timer,4,4
	.comm	sdhci_thread_irq,4,4
	.comm	sdhci_irq,4,4
	.comm	sdhci_complete_work,4,4
	.comm	WQ_UNBOUND,4,4
	.comm	WQ_MEM_RECLAIM,4,4
	.comm	WQ_HIGHPRI,4,4
	.comm	SDHCI_USE_SDMA,4,4
	.comm	SDHCI_USE_ADMA,4,4
	.comm	SDHCI_USE_64_BIT_DMA,4,4
	.comm	SDHCI_SIGNAL_ENABLE,4,4
	.comm	SDHCI_RESET_ALL,4,4
	.comm	SDHCI_INT_ENABLE,4,4
	.comm	IRQF_SHARED,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_sdhci.c___sdhci_add_host.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA\000"
	.align	2
.LC1:
	.ascii	"ADMA\000"
	.align	2
.LC2:
	.ascii	"ADMA 64-bit\000"
	.align	2
.LC3:
	.ascii	"PIO\000"
	.align	2
.LC4:
	.ascii	"sdhci\000"
	.align	2
.LC5:
	.ascii	"%s: Failed to request IRQ %d: %d\012\000"
	.align	2
.LC6:
	.ascii	"%s: Failed to register LED device: %d\012\000"
	.align	2
.LC7:
	.ascii	"%s: SDHCI controller on %s [%s] using %s\012\000"
	.text
	.align	2
	.global	__sdhci_add_host
	.syntax unified
	.arm
	.fpu softvfp
	.type	__sdhci_add_host, %function
__sdhci_add_host:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r3, .L18
	ldr	r2, .L18+4
	ldr	r1, .L18+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r0, .L18+12
	mov	r2, #0
	sub	sp, sp, #12
	orr	r1, r3, r1
	ldr	r6, [r4, #32]
	bl	alloc_workqueue
	cmp	r0, #0
	str	r0, [r4, #4]
	bne	.L2
	ldr	r3, .L18+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r3, .L18+20
	add	r0, r4, #28
	ldr	r1, [r3]
	bl	INIT_WORK
	ldr	r3, .L18+24
	mov	r2, #0
	ldr	r1, [r3]
	add	r0, r4, #24
	bl	timer_setup
	ldr	r3, .L18+28
	mov	r2, #0
	ldr	r1, [r3]
	add	r0, r4, #20
	bl	timer_setup
	add	r0, r4, #16
	bl	init_waitqueue_head
	mov	r1, #0
	mov	r0, r4
	bl	sdhci_init
	ldr	r1, .L18+32
	ldr	r2, .L18+36
	ldr	r3, .L18+40
	mov	r0, r6
	ldr	r5, [r4, #8]
	ldr	r7, [r1]
	ldr	r8, [r2]
	ldr	r9, [r3]
	bl	mmc_hostname
	mov	r3, r9
	str	r0, [sp]
	mov	r2, r8
	mov	r0, r5
	mov	r1, r7
	str	r4, [sp, #4]
	bl	request_threaded_irq
	subs	r5, r0, #0
	bne	.L15
	mov	r0, r4
	bl	sdhci_led_register
	subs	r5, r0, #0
	mov	r0, r6
	bne	.L16
	bl	mmc_add_host
	subs	r5, r0, #0
	bne	.L17
	mov	r0, r6
	bl	mmc_hostname
	mov	r1, r0
	mov	r0, r6
	ldr	r7, [r4, #12]
	mov	r6, r1
	bl	mmc_dev
	bl	dev_name
	ldr	r3, .L18+44
	ldr	r2, [r4]
	ldr	r1, [r3]
	mov	r3, r0
	tst	r2, r1
	ldreq	r0, .L18+48
	ldrne	r0, .L18+52
	ldreq	ip, [r0]
	ldrne	ip, [r0]
	ldreq	r0, .L18+56
	ldreq	r1, .L18+60
	ldrne	r1, .L18+64
	ldrne	r0, .L18+68
	tst	r2, ip
	moveq	r1, r0
	mov	r2, r7
	str	r1, [sp]
	ldr	r0, .L18+72
	mov	r1, r6
	bl	pr_info
	mov	r0, r4
	bl	sdhci_enable_card_detection
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L17:
	mov	r0, r4
	bl	sdhci_led_unregister
.L7:
	ldr	r3, .L18+76
	mov	r0, r4
	ldr	r1, [r3]
	bl	sdhci_do_reset
	ldr	r3, .L18+80
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r4
	bl	sdhci_writel
	ldr	r3, .L18+84
	mov	r1, #0
	mov	r0, r4
	ldr	r2, [r3]
	bl	sdhci_writel
	mov	r1, r4
	ldr	r0, [r4, #8]
	bl	free_irq
.L5:
	ldr	r0, [r4, #4]
	bl	destroy_workqueue
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	mov	r0, r6
	bl	mmc_hostname
	mov	r3, r5
	mov	r1, r0
	ldr	r2, [r4, #8]
	ldr	r0, .L18+88
	bl	pr_err
	b	.L5
.L16:
	bl	mmc_hostname
	mov	r2, r5
	mov	r1, r0
	ldr	r0, .L18+92
	bl	pr_err
	b	.L7
.L19:
	.align	2
.L18:
	.word	WQ_UNBOUND
	.word	WQ_MEM_RECLAIM
	.word	WQ_HIGHPRI
	.word	.LC4
	.word	ENOMEM
	.word	sdhci_complete_work
	.word	sdhci_timeout_timer
	.word	sdhci_timeout_data_timer
	.word	sdhci_irq
	.word	sdhci_thread_irq
	.word	IRQF_SHARED
	.word	SDHCI_USE_ADMA
	.word	SDHCI_USE_SDMA
	.word	SDHCI_USE_64_BIT_DMA
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC7
	.word	SDHCI_RESET_ALL
	.word	SDHCI_INT_ENABLE
	.word	SDHCI_SIGNAL_ENABLE
	.word	.LC5
	.word	.LC6
	.size	__sdhci_add_host, .-__sdhci_add_host
	.comm	sdhci_timeout_timer,4,4
	.comm	sdhci_timeout_data_timer,4,4
	.comm	sdhci_thread_irq,4,4
	.comm	sdhci_irq,4,4
	.comm	sdhci_complete_work,4,4
	.comm	WQ_UNBOUND,4,4
	.comm	WQ_MEM_RECLAIM,4,4
	.comm	WQ_HIGHPRI,4,4
	.comm	SDHCI_USE_SDMA,4,4
	.comm	SDHCI_USE_ADMA,4,4
	.comm	SDHCI_USE_64_BIT_DMA,4,4
	.comm	SDHCI_SIGNAL_ENABLE,4,4
	.comm	SDHCI_RESET_ALL,4,4
	.comm	SDHCI_INT_ENABLE,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
