	.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	56(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_disable_hwirq
	movq	40(%rbx), %rdi
	movq	_ISDN_P_NONE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_w6692_mode
	movq	40(%rbx), %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	callq	_w6692_mode
	movq	_led@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_W6692_USR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	16(%rbx), %edx
	orl	$4, %edx
	movl	%edx, 16(%rbx)
	movq	_W_XDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WriteW6692
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	52(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	28(%rbx), %r14
	movl	32(%rbx), %edi
	movq	_CLOSE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_l1_event
	movq	%r14, %rdi
	callq	_mISDN_unregister_device
	movl	48(%rbx), %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_release_region
	movq	40(%rbx), %rdi
	addq	$4, %rdi
	callq	_mISDN_freebchannel
	movq	40(%rbx), %rdi
	callq	_mISDN_freebchannel
	movq	%r14, %rdi
	callq	_mISDN_freedchannel
	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
	movl	20(%rbx), %edi
	callq	_pci_disable_device
	movl	20(%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	_led,4,2                        ## @led
	.comm	_W6692_USR,8,3                  ## @W6692_USR
	.comm	_W_XDATA,4,2                    ## @W_XDATA
	.comm	_CLOSE_CHANNEL,4,2              ## @CLOSE_CHANNEL
	.comm	_card_lock,4,2                  ## @card_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	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, #56
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_disable_hwirq
	ldr	x0, [x19, #40]
Lloh0:
	adrp	x21, _ISDN_P_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISDN_P_NONE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_w6692_mode
	ldr	x8, [x19, #40]
	add	x0, x8, #4
	ldr	w1, [x21]
	bl	_w6692_mode
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _led@GOTPAGE
Lloh3:
	ldr	x9, [x9, _led@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _W6692_USR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _W6692_USR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	w8, [x19, #16]
	orr	w2, w8, #0x4
	str	w2, [x19, #16]
Lloh8:
	adrp	x8, _W_XDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _W_XDATA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WriteW6692
LBB0_3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #52]
	mov	x1, x19
	bl	_free_irq
	add	x20, x19, #28
	ldr	w0, [x19, #32]
Lloh11:
	adrp	x8, _CLOSE_CHANNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLOSE_CHANNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_l1_event
	mov	x0, x20
	bl	_mISDN_unregister_device
	ldr	w0, [x19, #48]
	mov	w1, #256
	bl	_release_region
	ldr	x8, [x19, #40]
	add	x0, x8, #4
	bl	_mISDN_freebchannel
	ldr	x0, [x19, #40]
	bl	_mISDN_freebchannel
	mov	x0, x20
	bl	_mISDN_freedchannel
Lloh14:
	adrp	x20, _card_lock@GOTPAGE
Lloh15:
	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	w0, [x19, #20]
	bl	_pci_disable_device
	ldr	w0, [x19, #20]
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDN_P_NONE,4,2                ; @ISDN_P_NONE
	.comm	_led,4,2                        ; @led
	.comm	_W6692_USR,8,3                  ; @W6692_USR
	.comm	_W_XDATA,4,2                    ; @W_XDATA
	.comm	_CLOSE_CHANNEL,4,2              ; @CLOSE_CHANNEL
	.comm	_card_lock,4,2                  ; @card_lock
	.no_dead_strip	_release_card
.subsections_via_symbols
