	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_cf_irq
_at91_cf_irq:                           ## @at91_cf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	16(%rsi), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_at91_cf_present
	cmpl	(%rbx), %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	addq	$4, %rbx
	movq	_SS_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pcmcia_parse_events
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"present"

L_.str.2:                               ## @.str.2
	.asciz	"gone"

	.comm	_SS_DETECT,4,2                  ## @SS_DETECT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_at91_cf_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_cf_irq
_at91_cf_irq:                           ; @at91_cf_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	cmp	w0, w20
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_at91_cf_present
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	str	w0, [x19]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w0, #0
	csel	x2, x10, x9, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
	add	x0, x19, #4
Lloh6:
	adrp	x8, _SS_DETECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SS_DETECT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_pcmcia_parse_events
LBB0_3:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"present"

l_.str.2:                               ; @.str.2
	.asciz	"gone"

	.comm	_SS_DETECT,4,2                  ; @SS_DETECT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_at91_cf_irq
.subsections_via_symbols
