	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_card
_init_card:                             ## @init_card
	.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	%rdi, %r12
	movq	_speedfax_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rdi), %edi
	movl	4(%r12), %ecx
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_1
## %bb.17:
	movl	%eax, %ebx
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_16
LBB0_1:
	leaq	12(%r12), %r14
	leaq	16(%r12), %r15
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_info
LBB0_15:
	movl	(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	%r12, %rdi
	callq	_enable_hwirq
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65, %edx
	callq	_WriteISAC_IND
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movq	_debug@GOTPCREL(%rip), %rcx
	movq	_DEBUG_HW@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	je	LBB0_6
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$1, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:
	movq	%r12, %rdi
	callq	_enable_hwirq
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65, %edx
	callq	_WriteISAC_IND
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	jne	LBB0_16
## %bb.10:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$2, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	*16(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.11:
	movq	%r12, %rdi
	callq	_enable_hwirq
	movq	_ISAC_CMDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$65, %edx
	callq	_WriteISAC_IND
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	movq	_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	8(%r12), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_notice
LBB0_13:
	xorl	%ebx, %ebx
	cmpl	$0, 8(%r12)
	jne	LBB0_16
## %bb.14:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	$3, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_speedfax_irq,4,2               ## @speedfax_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't get interrupt %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: ISAC init failed with %d\n"

	.comm	_ISAC_CMDR,4,2                  ## @ISAC_CMDR
	.comm	_debug,4,2                      ## @debug
	.comm	_DEBUG_HW,4,2                   ## @DEBUG_HW
L_.str.2:                               ## @.str.2
	.asciz	"%s: IRQ %d count %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: IRQ(%d) got no requests during init %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_init_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_card
_init_card:                             ; @init_card
	.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	x19, x0
Lloh0:
	adrp	x8, _speedfax_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _speedfax_irq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w0, [x0]
	ldr	w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldp	w2, w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_9
LBB0_2:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x21, x19
	ldr	x8, [x21, #16]!
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
LBB0_4:
	bl	_pr_info
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_enable_hwirq
Lloh13:
	adrp	x23, _ISAC_CMDR@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ISAC_CMDR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #65
	bl	_WriteISAC_IND
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
Lloh15:
	adrp	x24, _debug@GOTPAGE
Lloh16:
	ldr	x24, [x24, _debug@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh17:
	adrp	x25, _DEBUG_HW@GOTPAGE
Lloh18:
	ldr	x25, [x25, _DEBUG_HW@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_7:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
	ldp	w2, w1, [x19]
	mov	w8, #1
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.11:
	mov	x0, x19
	bl	_enable_hwirq
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #65
	bl	_WriteISAC_IND
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x24]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_13:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.14:
	ldp	w2, w1, [x19]
	mov	w8, #2
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.15:
	mov	x0, x19
	bl	_enable_hwirq
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #65
	bl	_WriteISAC_IND
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x24]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_17:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
; %bb.18:
	ldp	w2, w1, [x19]
	mov	w8, #3
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_speedfax_irq,4,2               ; @speedfax_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't get interrupt %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: ISAC init failed with %d\n"

	.comm	_ISAC_CMDR,4,2                  ; @ISAC_CMDR
	.comm	_debug,4,2                      ; @debug
	.comm	_DEBUG_HW,4,2                   ; @DEBUG_HW
l_.str.2:                               ; @.str.2
	.asciz	"%s: IRQ %d count %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: IRQ(%d) got no requests during init %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_init_card
.subsections_via_symbols
