	.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, %r15
	leaq	56(%rdi), %r14
	movq	%r14, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_del_timer
LBB0_2:
	leaq	52(%r15), %r14
	movq	%r14, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_del_timer
LBB0_4:
	leaq	48(%r15), %rdi
	callq	_cancel_work_sync
	cmpq	$0, 40(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_l1oip_socket_close
LBB0_6:
	cmpq	$0, 32(%r15)
	je	LBB0_9
## %bb.7:
	movq	(%r15), %rax
	movq	16(%r15), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	16(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	addq	$24, %rdi
	callq	_mISDN_unregister_device
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$24, %rbx
	cmpq	$3072, %rbx                     ## imm = 0xC00
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	16(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_mISDN_freedchannel
	movq	16(%r15), %rax
	movq	16(%rax,%rbx), %rdi
	callq	_kfree
	movq	16(%r15), %rax
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rax,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_mISDN_freebchannel
	movq	16(%r15), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_15:
	movq	_l1oip_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	8(%r15), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_l1oip_lock,4,2                 ## @l1oip_lock
	.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, #56
	mov	x0, x20
	bl	_timer_pending
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_del_timer
LBB0_2:
	add	x20, x19, #52
	mov	x0, x20
	bl	_timer_pending
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_del_timer
LBB0_4:
	add	x0, x19, #48
	bl	_cancel_work_sync
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_l1oip_socket_close
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x8, #24
	bl	_mISDN_unregister_device
LBB0_9:
	mov	x20, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #24
	cmp	x20, #3072
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x9, x8, x20
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_mISDN_freedchannel
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x8, [x19, #16]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x8, x20
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_mISDN_freebchannel
	ldr	x8, [x19, #16]
	add	x8, x8, x20
	ldr	x0, [x8, #8]
	bl	_kfree
	b	LBB0_10
LBB0_15:
Lloh0:
	adrp	x20, _l1oip_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _l1oip_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #8
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_l1oip_lock,4,2                 ; @l1oip_lock
	.no_dead_strip	_release_card
.subsections_via_symbols
