	.file	"extr_slot-gpio.c_mmc_gpiod_request_cd_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mmc_gpiod_request_cd_irq
	.type	mmc_gpiod_request_cd_irq, @function
mmc_gpiod_request_cd_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 8[rdi]
	mov	rbp, QWORD PTR 16[rdi]
	test	esi, esi
	jns	.L1
	test	rbp, rbp
	je	.L1
	mov	rbx, rdi
	mov	edi, DWORD PTR 16[rbp]
	test	edi, edi
	je	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MMC_CAP_NEEDS_POLL[rip], eax
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L4:
	test	r12d, r12d
	js	.L5
	mov	rcx, QWORD PTR 8[rbp]
	test	rcx, rcx
	jne	.L6
	mov	rcx, QWORD PTR mmc_gpio_cd_irqt[rip]
	mov	QWORD PTR 8[rbp], rcx
.L6:
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	edi, DWORD PTR 24[rbx]
	mov	r9d, DWORD PTR 0[rbp]
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 48
	mov	r8d, DWORD PTR IRQF_TRIGGER_RISING[rip]
	mov	esi, r12d
	or	r8d, DWORD PTR IRQF_TRIGGER_FALLING[rip]
	or	r8d, DWORD PTR IRQF_ONESHOT[rip]
	call	devm_request_threaded_irq@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	test	eax, eax
	js	.L8
	mov	DWORD PTR 8[rbx], r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, eax
.L5:
	mov	DWORD PTR 8[rbx], r12d
	mov	eax, DWORD PTR MMC_CAP_NEEDS_POLL[rip]
	or	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	gpiod_to_irq@PLT
	mov	r12d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	mmc_gpiod_request_cd_irq, .-mmc_gpiod_request_cd_irq
	.comm	mmc_gpio_cd_irqt,8,8
	.comm	MMC_CAP_NEEDS_POLL,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	EINVAL,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_slot-gpio.c_mmc_gpiod_request_cd_irq.c"
	.text
	.align	2
	.global	mmc_gpiod_request_cd_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmc_gpiod_request_cd_irq, %function
mmc_gpiod_request_cd_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldmib	r0, {r3, r5}
	cmp	r5, #0
	cmpne	r3, #0
	sub	sp, sp, #20
	blt	.L14
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r4, r0
	ldr	r0, [r5, #8]
	cmp	r0, #0
	beq	.L1
	ldr	r7, .L15
	ldr	r2, [r4]
	ldr	r3, [r7]
	tst	r2, r3
	beq	.L3
	ldr	r3, .L15+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L4:
	cmp	r6, #0
	blt	.L5
	ldr	r3, [r5, #4]
	ldr	r0, .L15+8
	cmp	r3, #0
	ldreq	r3, .L15+12
	ldr	r2, .L15+16
	ldreq	r3, [r3]
	ldr	r1, .L15+20
	ldr	ip, [r0]
	ldr	r2, [r2]
	streq	r3, [r5, #4]
	str	r4, [sp, #8]
	ldr	r0, [r1]
	orr	r2, r2, ip
	ldr	r1, [r5]
	orr	r2, r2, r0
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r1, r6
	mov	r2, #0
	ldr	r0, [r4, #12]
	bl	devm_request_threaded_irq
	cmp	r0, #0
	strge	r6, [r4, #4]
	bge	.L1
	mov	r6, r0
.L5:
	ldr	r2, [r7]
	ldr	r3, [r4]
	str	r6, [r4, #4]
	orr	r3, r3, r2
	str	r3, [r4]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	bl	gpiod_to_irq
	mov	r6, r0
	b	.L4
.L16:
	.align	2
.L15:
	.word	MMC_CAP_NEEDS_POLL
	.word	EINVAL
	.word	IRQF_TRIGGER_FALLING
	.word	mmc_gpio_cd_irqt
	.word	IRQF_TRIGGER_RISING
	.word	IRQF_ONESHOT
	.size	mmc_gpiod_request_cd_irq, .-mmc_gpiod_request_cd_irq
	.comm	mmc_gpio_cd_irqt,4,4
	.comm	MMC_CAP_NEEDS_POLL,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
