	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stop_airo_card                 ## -- Begin function stop_airo_card
	.p2align	4, 0x90
_stop_airo_card:                        ## @stop_airo_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_FLAG_RADIO_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r13), %r15
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_disable_MAC
	movq	%r13, %rdi
	callq	_disable_interrupts
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_takedown_proc_entry
	movq	_FLAG_REGISTERED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	64(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_unregister_netdev
	movq	64(%r13), %rdi
	callq	_free_netdev
	movq	$0, 64(%r13)
LBB0_3:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_4:
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	56(%r13), %rbx
	movq	%rbx, %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rdi
	callq	_dev_kfree_skb
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	jne	LBB0_6
LBB0_8:
	movq	%r13, %rdi
	callq	_airo_networks_free
	movl	52(%r13), %edi
	callq	_kfree
	movl	48(%r13), %edi
	callq	_kfree
	movl	44(%r13), %edi
	callq	_kfree
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.9:
	movl	(%r14), %edi
	movl	$64, %esi
	callq	_release_region
	movq	_FLAG_MPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_mpi_unmap_card
LBB0_12:
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_iounmap
LBB0_14:
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_iounmap
LBB0_16:
	movq	16(%r13), %rdi
	movq	_PCI_SHARED_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %ecx
	movl	8(%r13), %edx
	callq	_pci_free_consistent
LBB0_17:
	movl	(%r13), %edi
	callq	_crypto_free_sync_skcipher
	movq	%r13, %rdi
	callq	_del_airo_dev
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_RADIO_DOWN,4,2            ## @FLAG_RADIO_DOWN
	.comm	_FLAG_REGISTERED,4,2            ## @FLAG_REGISTERED
	.comm	_FLAG_MPI,4,2                   ## @FLAG_MPI
	.comm	_PCI_SHARED_LEN,4,2             ## @PCI_SHARED_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stop_airo_card                 ; -- Begin function stop_airo_card
	.p2align	2
_stop_airo_card:                        ; @stop_airo_card
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _FLAG_RADIO_DOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_RADIO_DOWN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #40
	mov	x1, x21
	bl	_set_bit
	mov	x0, x20
	mov	w1, #1
	bl	_disable_MAC
	mov	x0, x20
	bl	_disable_interrupts
	mov	x0, x19
	mov	x1, x20
	bl	_takedown_proc_entry
Lloh3:
	adrp	x23, _FLAG_REGISTERED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FLAG_REGISTERED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_unregister_netdev
	ldr	x0, [x20, #64]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_unregister_netdev
	ldr	x0, [x20, #64]
	bl	_free_netdev
	str	xzr, [x20, #64]
LBB0_3:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
LBB0_4:
Lloh5:
	adrp	x24, _FLAG_MPI@GOTPAGE
Lloh6:
	ldr	x24, [x24, _FLAG_MPI@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.5:
	add	x23, x20, #56
	mov	x0, x23
	bl	_skb_queue_empty
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_dev_kfree_skb
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_skb_dequeue
	cbnz	x0, LBB0_6
LBB0_8:
	mov	x0, x20
	bl	_airo_networks_free
	ldr	w0, [x20, #52]
	bl	_kfree
	ldr	w0, [x20, #48]
	bl	_kfree
	ldr	w0, [x20, #44]
	bl	_kfree
	cbz	w22, LBB0_17
; %bb.9:
	ldr	w0, [x19]
	mov	w1, #64
	bl	_release_region
	ldr	w0, [x24]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_17
; %bb.10:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_mpi_unmap_card
LBB0_12:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_iounmap
LBB0_14:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_iounmap
LBB0_16:
	ldr	x0, [x20, #16]
Lloh7:
	adrp	x8, _PCI_SHARED_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCI_SHARED_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldp	w3, w2, [x20, #4]
	bl	_pci_free_consistent
LBB0_17:
	ldr	w0, [x20]
	bl	_crypto_free_sync_skcipher
	mov	x0, x20
	bl	_del_airo_dev
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free_netdev
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_RADIO_DOWN,4,2            ; @FLAG_RADIO_DOWN
	.comm	_FLAG_REGISTERED,4,2            ; @FLAG_REGISTERED
	.comm	_FLAG_MPI,4,2                   ; @FLAG_MPI
	.comm	_PCI_SHARED_LEN,4,2             ; @PCI_SHARED_LEN
.subsections_via_symbols
