	.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
	leaq	64(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 56(%rbx)
	movq	%rbx, %rdi
	callq	_disable_hwirq
	movq	24(%rbx), %rdi
	movq	_ISDN_P_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$1, %esi
	callq	_mode_hfcpci
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	movl	(%r15), %edx
	movl	$2, %esi
	callq	_mode_hfcpci
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_del_timer
	movq	$0, (%r15)
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	48(%rbx), %rax
	movq	_ISDN_P_TE_S0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	12(%rbx), %edi
	movq	_CLOSE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_l1_event
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	movl	32(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_6:
	leaq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_release_io_hfcpci
	movq	%r14, %rdi
	callq	_mISDN_unregister_device
	movq	24(%rbx), %rdi
	addq	$4, %rdi
	callq	_mISDN_freebchannel
	movq	24(%rbx), %rdi
	callq	_mISDN_freebchannel
	movq	%r14, %rdi
	callq	_mISDN_freedchannel
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDN_P_NONE,4,2                ## @ISDN_P_NONE
	.comm	_ISDN_P_TE_S0,8,3               ## @ISDN_P_TE_S0
	.comm	_CLOSE_CHANNEL,4,2              ## @CLOSE_CHANNEL
	.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
	add	x20, x0, #64
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19, #56]
	mov	x0, x19
	bl	_disable_hwirq
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x21, _ISDN_P_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISDN_P_NONE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #1
	bl	_mode_hfcpci
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	ldr	w2, [x21]
	mov	w1, #2
	bl	_mode_hfcpci
	mov	x21, x19
	ldr	x8, [x21, #16]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_del_timer
	str	xzr, [x21]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #48]
Lloh2:
	adrp	x9, _ISDN_P_TE_S0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISDN_P_TE_S0@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x8, _CLOSE_CHANNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLOSE_CHANNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_l1_event
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19, #32]
	mov	x1, x19
	bl	_free_irq
LBB0_6:
	add	x20, x19, #8
	mov	x0, x19
	bl	_release_io_hfcpci
	mov	x0, x20
	bl	_mISDN_unregister_device
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	bl	_mISDN_freebchannel
	ldr	x0, [x19, #24]
	bl	_mISDN_freebchannel
	mov	x0, x20
	bl	_mISDN_freedchannel
	ldr	w0, [x19]
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_P_NONE,4,2                ; @ISDN_P_NONE
	.comm	_ISDN_P_TE_S0,8,3               ; @ISDN_P_TE_S0
	.comm	_CLOSE_CHANNEL,4,2              ; @CLOSE_CHANNEL
	.no_dead_strip	_release_card
.subsections_via_symbols
