	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_disable_hwirq
	leaq	44(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	32(%rbx), %rdi
	movq	_ISDN_P_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_modehdlc
	movq	32(%rbx), %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	callq	_modehdlc
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	*24(%rbx)
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	32(%rbx), %rdi
	addq	$4, %rdi
	callq	_mISDN_freebchannel
	movq	32(%rbx), %rdi
	callq	_mISDN_freebchannel
	movq	%r14, %rdi
	callq	_mISDN_unregister_device
	movl	8(%rbx), %edi
	movl	$32, %esi
	callq	_release_region
	movl	4(%rbx), %edi
	callq	_pci_disable_device
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	_card_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_write_lock_irqsave
	movq	%rbx, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_write_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_kfree
	movq	_AVM_cnt@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_P_NONE,4,2                ## @ISDN_P_NONE
	.comm	_card_lock,4,2                  ## @card_lock
	.comm	_AVM_cnt,4,2                    ## @AVM_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	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	x19, x0
	bl	_disable_hwirq
	add	x20, x19, #44
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x21, _ISDN_P_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISDN_P_NONE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_modehdlc
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	ldr	w1, [x21]
	bl	_modehdlc
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x20, x19, #16
	ldr	x8, [x19, #24]
	mov	x0, x20
	blr	x8
	ldr	w0, [x19, #40]
	mov	x1, x19
	bl	_free_irq
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_mISDN_freebchannel
	ldr	x0, [x19, #32]
	bl	_mISDN_freebchannel
	mov	x0, x20
	bl	_mISDN_unregister_device
	ldr	w0, [x19, #8]
	mov	w1, #32
	bl	_release_region
	ldr	w0, [x19, #4]
	bl	_pci_disable_device
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_pci_set_drvdata
Lloh2:
	adrp	x20, _card_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _card_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_write_lock_irqsave
	mov	x0, x19
	bl	_list_del
	mov	x0, x20
	bl	_write_unlock_irqrestore
	mov	x0, x19
	bl	_kfree
Lloh4:
	adrp	x8, _AVM_cnt@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVM_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_P_NONE,4,2                ; @ISDN_P_NONE
	.comm	_card_lock,4,2                  ; @card_lock
	.comm	_AVM_cnt,4,2                    ; @AVM_cnt
	.no_dead_strip	_release_card
.subsections_via_symbols
