	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_card
_release_card:                          ## @release_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	52(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_disable_hwirq
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	*40(%rbx)
	movl	48(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	callq	_mISDN_unregister_device
	movq	%rbx, %rdi
	callq	_release_io
	movq	_card_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_10
## %bb.1:
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_release_card
	movq	8(%rbx), %rax
LBB0_4:
	movq	$0, (%rax)
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_release_card
	movq	8(%rbx), %rax
LBB0_6:
	movq	$0, 8(%rax)
	movq	8(%rbx), %rax
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_release_card
	movq	8(%rbx), %rax
LBB0_8:
	movq	$0, 16(%rax)
LBB0_9:
	movl	(%rbx), %edi
	callq	_pci_disable_device
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_inf_cnt@GOTPCREL(%rip), %rax
	decl	(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_card_lock,4,2                  ## @card_lock
	.comm	_inf_cnt,4,2                    ## @inf_cnt
	.no_dead_strip	_release_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_card
_release_card:                          ; @release_card
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x0, #52
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_disable_hwirq
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x20, x19, #32
	ldr	x8, [x19, #40]
	mov	x0, x20
	blr	x8
	ldr	w0, [x19, #48]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x20
	bl	_mISDN_unregister_device
	mov	x0, x19
	bl	_release_io
Lloh0:
	adrp	x20, _card_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _card_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_irqsave
	add	x0, x19, #24
	bl	_list_del
	mov	x0, x20
	bl	_write_unlock_irqrestore
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	sub	w9, w8, #128
	cmp	w9, #3
	b.lo	LBB0_10
; %bb.1:
	cmp	w8, #131
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_release_card
	ldr	x8, [x19, #8]
LBB0_4:
	str	xzr, [x8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_release_card
	ldr	x8, [x19, #8]
LBB0_6:
	str	xzr, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_release_card
	ldr	x8, [x19, #8]
LBB0_8:
	str	xzr, [x8, #16]
LBB0_9:
	ldr	w0, [x19]
	bl	_pci_disable_device
	ldr	w0, [x19]
	mov	x1, #0
	bl	_pci_set_drvdata
LBB0_10:
	mov	x0, x19
	bl	_kfree
Lloh2:
	adrp	x8, _inf_cnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _inf_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_card_lock,4,2                  ; @card_lock
	.comm	_inf_cnt,4,2                    ; @inf_cnt
	.no_dead_strip	_release_card
.subsections_via_symbols
