	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interrupt_ecf
_interrupt_ecf:                         ## @interrupt_ecf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_pcmcia_dev_present
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$-50, %r14d
	movq	_CIS_OFFSET@GOTPCREL(%rip), %r13
	movq	_ECF_INTR_OFFSET@GOTPCREL(%rip), %r12
	movq	_ECF_INTR_SET@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_readb
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	jne	LBB0_5
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_SCB_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_writeb
	movl	(%r15), %edi
	movq	(%r13), %rsi
	addq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ray_cs interrupt_ecf - device not present\n"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt_ecf(local=%p, ccs = 0x%x\n"

	.comm	_CIS_OFFSET,8,3                 ## @CIS_OFFSET
	.comm	_ECF_INTR_OFFSET,8,3            ## @ECF_INTR_OFFSET
	.comm	_ECF_INTR_SET,4,2               ## @ECF_INTR_SET
L_.str.2:                               ## @.str.2
	.asciz	"ray_cs interrupt_ecf card not ready for interrupt\n"

	.comm	_SCB_BASE,8,3                   ## @SCB_BASE
	.no_dead_strip	_interrupt_ecf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interrupt_ecf
_interrupt_ecf:                         ; @interrupt_ecf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_pcmcia_dev_present
	cbz	w0, LBB0_5
; %bb.1:
	stp	x19, x20, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	w25, #-50
Lloh2:
	adrp	x23, _CIS_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CIS_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x22, _ECF_INTR_OFFSET@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ECF_INTR_OFFSET@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ECF_INTR_SET@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ECF_INTR_SET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x10, [x22]
	add	x8, x9, x8
	add	x0, x8, x10
	bl	_readb
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	adds	w25, w25, #1
	b.lo	LBB0_2
; %bb.4:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_dev_dbg
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _SCB_BASE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SCB_BASE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb
	ldr	w0, [x24]
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x10, [x22]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writeb
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ray_cs interrupt_ecf - device not present\n"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt_ecf(local=%p, ccs = 0x%x\n"

	.comm	_CIS_OFFSET,8,3                 ; @CIS_OFFSET
	.comm	_ECF_INTR_OFFSET,8,3            ; @ECF_INTR_OFFSET
	.comm	_ECF_INTR_SET,4,2               ; @ECF_INTR_SET
l_.str.2:                               ; @.str.2
	.asciz	"ray_cs interrupt_ecf card not ready for interrupt\n"

	.comm	_SCB_BASE,8,3                   ; @SCB_BASE
	.no_dead_strip	_interrupt_ecf
.subsections_via_symbols
