	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_gpiod_request_cd_irq       ## -- Begin function mmc_gpiod_request_cd_irq
	.p2align	4, 0x90
_mmc_gpiod_request_cd_irq:              ## @mmc_gpiod_request_cd_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	jns	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.2:
	movl	16(%r12), %edi
	testl	%edi, %edi
	je	LBB0_12
## %bb.3:
	movq	_MMC_CAP_NEEDS_POLL@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r14d, %r14d
	jns	LBB0_7
	jmp	LBB0_11
LBB0_5:
	callq	_gpiod_to_irq
	movl	%eax, %r14d
	testl	%r14d, %r14d
	js	LBB0_11
LBB0_7:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.8:
	movq	_mmc_gpio_cd_irqt@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 8(%r12)
LBB0_9:
	movl	24(%rbx), %edi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	(%r12), %r9d
	movq	%rbx, (%rsp)
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	movl	%r14d, 8(%rbx)
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r14d
LBB0_11:
	movl	%r14d, 8(%rbx)
	movl	(%r15), %eax
	orl	%eax, (%rbx)
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ## @MMC_CAP_NEEDS_POLL
	.comm	_mmc_gpio_cd_irqt,8,3           ## @mmc_gpio_cd_irqt
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mmc_gpiod_request_cd_irq       ; -- Begin function mmc_gpiod_request_cd_irq
	.p2align	2
_mmc_gpiod_request_cd_irq:              ; @mmc_gpiod_request_cd_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0, #8]
	tbz	w8, #31, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #16]
	cbz	x22, LBB0_12
; %bb.2:
	ldr	w0, [x22, #16]
	cbz	w0, LBB0_12
; %bb.3:
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _MMC_CAP_NEEDS_POLL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMC_CAP_NEEDS_POLL@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	tbz	w20, #31, LBB0_6
	b	LBB0_11
LBB0_5:
	bl	_gpiod_to_irq
	mov	x20, x0
	tbnz	w20, #31, LBB0_11
LBB0_6:
	ldr	x3, [x22, #8]
	cbnz	x3, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _mmc_gpio_cd_irqt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmc_gpio_cd_irqt@GOTPAGEOFF]
Lloh7:
	ldr	x3, [x8]
	str	x3, [x22, #8]
LBB0_8:
	ldr	w0, [x19, #24]
Lloh8:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w4, w8, w9
	ldr	w5, [x22]
	mov	x1, x20
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_10
; %bb.9:
	str	w20, [x19, #8]
	b	LBB0_12
LBB0_10:
	mov	x20, x0
LBB0_11:
	str	w20, [x19, #8]
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMC_CAP_NEEDS_POLL,4,2         ; @MMC_CAP_NEEDS_POLL
	.comm	_mmc_gpio_cd_irqt,8,3           ; @mmc_gpio_cd_irqt
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
.subsections_via_symbols
