	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nj_init_card
_nj_init_card:                          ## @nj_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_nj_disable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	movl	%edi, (%rbx)
	movq	_nj_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%rbx), %ecx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	24(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	$-1, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_nj_reset
	leaq	16(%rbx), %rdi
	callq	*16(%rbx)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_inittiger
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%rbx), %rdi
	movq	_ISDN_P_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_mode_tiger
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	callq	_mode_tiger
	xorl	%r15d, %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nj_irq,4,2                     ## @nj_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	_ISDN_P_NONE,4,2                ## @ISDN_P_NONE
	.no_dead_strip	_nj_init_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nj_init_card
_nj_init_card:                          ; @nj_init_card
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_nj_disable_hwirq
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _nj_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nj_irq@GOTPAGEOFF]
	str	w0, [x20]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldr	w3, [x20, #24]
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20, #24]
	ldr	w2, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	w8, #-1
	str	w8, [x20]
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_nj_reset
	mov	x0, x20
	ldr	x8, [x0, #16]!
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_inittiger
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x20, #8]
Lloh11:
	adrp	x21, _ISDN_P_NONE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ISDN_P_NONE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_mode_tiger
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	ldr	w1, [x21]
	bl	_mode_tiger
	mov	w21, #0
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nj_irq,4,2                     ; @nj_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	_ISDN_P_NONE,4,2                ; @ISDN_P_NONE
	.no_dead_strip	_nj_init_card
.subsections_via_symbols
