	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ems_pcmcia_interrupt
_ems_pcmcia_interrupt:                  ## @ems_pcmcia_interrupt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	16(%rsi), %edi
	callq	_readw
	cmpl	$43605, %eax                    ## imm = 0xAA55
	jne	LBB0_3
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%r15d, %edi
	callq	_sja1000_interrupt
	cmpq	(%r12), %rax
	movl	$1, %eax
	cmovel	%eax, %r13d
	movl	(%rbx), %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_10
LBB0_3:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,8,3                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,8,3                ## @IRQ_HANDLED
	.no_dead_strip	_ems_pcmcia_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ems_pcmcia_interrupt
_ems_pcmcia_interrupt:                  ; @ems_pcmcia_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w0, [x1, #16]
	bl	_readw
	mov	w8, #43605
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.2:
Lloh3:
	adrp	x22, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x24, #0
	mov	w23, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, #8]
	ldr	x1, [x9, x24, lsl #3]
	cbz	x1, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x21
	bl	_sja1000_interrupt
	ldr	x8, [x22]
	cmp	x0, x8
	csinc	w23, w23, wzr, ne
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x22]
	cmp	w8, #1
	b.ge	LBB0_3
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,8,3                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,8,3                ; @IRQ_HANDLED
	.no_dead_strip	_ems_pcmcia_interrupt
.subsections_via_symbols
