	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_instance
_setup_instance:                        ## @setup_instance
	.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, %r13
	movl	64(%rdi), %edi
	movq	_MISDN_MAX_IDLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	88(%r13), %rax
	movq	(%rax), %rcx
	movq	_inf_cnt@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	incl	%r8d
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	_card_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	movq	_Cards@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	movq	%r13, %rdi
	callq	__set_debug
	movl	64(%r13), %eax
	movl	%eax, 32(%r13)
	movl	%eax, 60(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r13)
	leaq	80(%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_init
	movq	%rbx, 24(%r13)
	movq	%rbx, 48(%r13)
	movq	_inf_ctrl@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movq	%r13, %rdi
	callq	_setup_io
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_mISDNipac_init
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rbx
	leaq	16(%r13), %r12
	movq	72(%r13), %rsi
	movl	64(%r13), %edx
	movq	%r12, %rdi
	callq	_mISDN_register_device
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	callq	_init_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_mISDN_unregister_device
LBB0_7:
	movq	%r15, %rdi
	callq	*(%r15)
	jmp	LBB0_8
LBB0_2:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r13, %rdi
	callq	_release_io
	movq	_card_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_write_lock_irqsave
	movq	%r13, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_write_unlock_irqrestore
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %esi
	incl	%esi
	movl	%esi, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_notice
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MISDN_MAX_IDLEN,8,3            ## @MISDN_MAX_IDLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%d"

	.comm	_inf_cnt,4,2                    ## @inf_cnt
	.comm	_card_lock,4,2                  ## @card_lock
	.comm	_Cards,4,2                      ## @Cards
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_inf_ctrl,4,2                   ## @inf_ctrl
L_.str.1:                               ## @.str.1
	.asciz	"Infineon %d cards installed\n"

	.no_dead_strip	_setup_instance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_instance
_setup_instance:                        ; @setup_instance
	.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	x19, x0
	ldr	w0, [x0, #64]
Lloh0:
	adrp	x8, _MISDN_MAX_IDLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MISDN_MAX_IDLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x8, #1
	ldr	x8, [x19, #88]
	ldr	x3, [x8]
Lloh3:
	adrp	x23, _inf_cnt@GOTPAGE
Lloh4:
	ldr	x23, [x23, _inf_cnt@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w4, w8, #1
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
Lloh7:
	adrp	x20, _card_lock@GOTPAGE
Lloh8:
	ldr	x20, [x20, _card_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_irqsave
Lloh9:
	adrp	x1, _Cards@GOTPAGE
Lloh10:
	ldr	x1, [x1, _Cards@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x20
	bl	_write_unlock_irqrestore
	mov	x0, x19
	bl	__set_debug
	ldr	w8, [x19, #64]
	str	w8, [x19, #32]
Lloh11:
	adrp	x9, _THIS_MODULE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _THIS_MODULE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	add	x20, x19, #80
	mov	x0, x20
	bl	_spin_lock_init
	str	x20, [x19, #24]
Lloh14:
	adrp	x8, _inf_ctrl@GOTPAGE
Lloh15:
	ldr	x8, [x8, _inf_ctrl@GOTPAGEOFF]
	stp	x8, x20, [x19, #40]
	mov	x0, x19
	bl	_setup_io
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	mov	x1, x19
	bl	_mISDNipac_init
	mov	x22, x19
	str	x0, [x22, #16]!
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x1, [x19, #72]
	ldr	w2, [x19, #64]
	mov	x0, x22
	bl	_mISDN_register_device
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_init_irq
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x22
	bl	_mISDN_unregister_device
LBB0_5:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_release_io
Lloh16:
	adrp	x21, _card_lock@GOTPAGE
Lloh17:
	ldr	x21, [x21, _card_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_write_lock_irqsave
	mov	x0, x19
	bl	_list_del
	mov	x0, x21
	bl	_write_unlock_irqrestore
LBB0_8:
	mov	x0, x20
	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
LBB0_9:
	ldr	w8, [x23]
	add	w1, w8, #1
	str	w1, [x23]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
	b	LBB0_8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MISDN_MAX_IDLEN,8,3            ; @MISDN_MAX_IDLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%d"

	.comm	_inf_cnt,4,2                    ; @inf_cnt
	.comm	_card_lock,4,2                  ; @card_lock
	.comm	_Cards,4,2                      ; @Cards
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_inf_ctrl,4,2                   ; @inf_ctrl
l_.str.1:                               ; @.str.1
	.asciz	"Infineon %d cards installed\n"

	.no_dead_strip	_setup_instance
.subsections_via_symbols
