	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_wireless_core_stop
_b43legacy_wireless_core_stop:          ## @b43legacy_wireless_core_stop
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	callq	_b43legacy_status
	movq	_B43legacy_STAT_STARTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	16(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_B43legacy_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_write32
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_b43legacy_read32
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_b43legacy_synchronize_irq
	movq	_B43legacy_STAT_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43legacy_set_status
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	8(%r14), %rdi
	callq	_cancel_delayed_work_sync
	leaq	12(%r13), %rdi
	callq	_cancel_work_sync
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_B43legacy_QOS_QUEUE_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	leaq	(,%r12,4), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_dequeue
	movl	%eax, %edi
	callq	_dev_kfree_skb
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_b43legacy_mac_suspend
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacydbg                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_STAT_STARTED,8,3     ## @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ## @B43legacy_MMIO_GEN_IRQ_MASK
	.comm	_B43legacy_STAT_INITIALIZED,4,2 ## @B43legacy_STAT_INITIALIZED
	.comm	_B43legacy_QOS_QUEUE_NUM,4,2    ## @B43legacy_QOS_QUEUE_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wireless interface stopped\n"

	.no_dead_strip	_b43legacy_wireless_core_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_wireless_core_stop
_b43legacy_wireless_core_stop:          ; @b43legacy_wireless_core_stop
	.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	x20, x0
	ldr	x19, [x0, #16]
	bl	_b43legacy_status
Lloh0:
	adrp	x8, _B43legacy_STAT_STARTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_STAT_STARTED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	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
	ret
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x22, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _B43legacy_MMIO_GEN_IRQ_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_b43legacy_write32
	ldr	w1, [x22]
	mov	x0, x20
	bl	_b43legacy_read32
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_b43legacy_synchronize_irq
Lloh5:
	adrp	x8, _B43legacy_STAT_INITIALIZED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43legacy_STAT_INITIALIZED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_b43legacy_set_status
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x20, #8
	bl	_cancel_delayed_work_sync
	add	x0, x19, #12
	bl	_cancel_work_sync
	mov	x0, x21
	bl	_mutex_lock
Lloh8:
	adrp	x21, _B43legacy_QOS_QUEUE_NUM@GOTPAGE
Lloh9:
	ldr	x21, [x21, _B43legacy_QOS_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x19]
	add	x0, x8, x22, lsl #2
	bl	_skb_queue_len
	cbz	x0, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	lsl	x23, x22, #2
	add	x0, x8, x23
	bl	_skb_dequeue
	bl	_dev_kfree_skb
	ldr	x8, [x19]
	add	x0, x8, x23
	bl	_skb_queue_len
	cbnz	x0, LBB0_6
	b	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_b43legacy_mac_suspend
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	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	_b43legacydbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_STAT_STARTED,8,3     ; @B43legacy_STAT_STARTED
	.comm	_B43legacy_MMIO_GEN_IRQ_MASK,4,2 ; @B43legacy_MMIO_GEN_IRQ_MASK
	.comm	_B43legacy_STAT_INITIALIZED,4,2 ; @B43legacy_STAT_INITIALIZED
	.comm	_B43legacy_QOS_QUEUE_NUM,4,2    ; @B43legacy_QOS_QUEUE_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wireless interface stopped\n"

	.no_dead_strip	_b43legacy_wireless_core_stop
.subsections_via_symbols
