	.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, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_disable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_w6692_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %edi
	movl	4(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pr_info
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_1:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_initW6692
	movq	%rbx, %rdi
	callq	_enable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movq	_debug@GOTPCREL(%rip), %r12
	movq	_DEBUG_HW@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
LBB0_3:
	xorl	%r15d, %r15d
	cmpl	$0, 8(%rbx)
	jne	LBB0_12
## %bb.4:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	$1, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_reset_w6692
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_initW6692
	movq	%rbx, %rdi
	callq	_enable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
LBB0_6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_12
## %bb.7:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	$2, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_reset_w6692
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_initW6692
	movq	%rbx, %rdi
	callq	_enable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	$10, %edi
	callq	_msleep_interruptible
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	8(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
LBB0_9:
	cmpl	$0, 8(%rbx)
	je	LBB0_10
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	movl	$3, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	callq	_reset_w6692
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_w6692_irq,4,2                  ## @w6692_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't get interrupt %d\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s: IRQ(%d) getting no IRQs during init %d\n"

	.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, #64
	.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
	mov	x19, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_disable_hwirq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh0:
	adrp	x8, _w6692_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _w6692_irq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	w0, w3, [x19]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_3
; %bb.1:
	ldp	w2, w1, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_2:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_3:
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_initW6692
	mov	x0, x19
	bl	_enable_hwirq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
Lloh11:
	adrp	x21, _debug@GOTPAGE
Lloh12:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh13:
	adrp	x22, _DEBUG_HW@GOTPAGE
Lloh14:
	ldr	x22, [x22, _DEBUG_HW@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_5:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
; %bb.6:
	ldp	w2, w1, [x19]
	mov	w8, #1
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_reset_w6692
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_initW6692
	mov	x0, x19
	bl	_enable_hwirq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_8:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_12
; %bb.9:
	ldp	w2, w1, [x19]
	mov	w8, #2
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_reset_w6692
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_initW6692
	mov	x0, x19
	bl	_enable_hwirq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #10
	bl	_msleep_interruptible
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldp	w2, w1, [x19]
	ldr	w3, [x19, #8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_11:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_14
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
	ldp	w2, w1, [x19]
	mov	w8, #3
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_reset_w6692
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_w6692_irq,4,2                  ; @w6692_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't get interrupt %d\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s: IRQ(%d) getting no IRQs during init %d\n"

	.no_dead_strip	_init_card
.subsections_via_symbols
