	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_wireless_core_stop
_b43_wireless_core_stop:                ## @b43_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	leaq	24(%r12), %rbx
	leaq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_B43_STAT_STARTED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_b43_status
	cmpq	(%r15), %rax
	jl	LBB0_25
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	8(%r14), %rdi
	callq	_cancel_delayed_work_sync
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_cancel_work_sync
	movq	%r14, %rdi
	callq	_b43_leds_stop
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	16(%r12), %r13
	testq	%r13, %r13
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_b43_status
	cmpq	(%r15), %rax
	jl	LBB0_24
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r14
	movq	_B43_STAT_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_set_status
	movq	(%r13), %rdi
	callq	_b43_bus_host_is_sdio
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_B43_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_b43_write32
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_b43_read32
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_B43_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_b43_write32
	movq	_B43_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_read32
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	(%r13), %rdi
	callq	_b43_bus_host_is_sdio
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_b43_sdio_free_irq
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	16(%r12), %r14
	testq	%r14, %r14
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %r14
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_b43_status
	cmpq	(%r15), %rax
	jge	LBB0_2
	jmp	LBB0_25
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_25
LBB0_17:
	movq	_B43_MMIO_GEN_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_b43_read32
	decl	%eax
	xorl	%edi, %edi
	cmpl	$-2, %eax
	setb	%dil
	callq	_B43_WARN_ON
	movq	_B43_QOS_QUEUE_NUM@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_23
## %bb.18:
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_23
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	leaq	(,%r15,4), %rbx
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_len
	testq	%rax, %rax
	je	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=2
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	callq	_skb_dequeue
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_ieee80211_free_txskb
	jmp	LBB0_21
LBB0_23:
	movq	%r13, %rdi
	callq	_b43_mac_suspend
	movq	%r13, %rdi
	callq	_b43_leds_exit
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_b43dbg
LBB0_24:
	movq	%r13, %r14
LBB0_25:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_STAT_STARTED,8,3           ## @B43_STAT_STARTED
	.comm	_B43_STAT_INITIALIZED,4,2       ## @B43_STAT_INITIALIZED
	.comm	_B43_MMIO_GEN_IRQ_MASK,4,2      ## @B43_MMIO_GEN_IRQ_MASK
	.comm	_B43_QOS_QUEUE_NUM,4,2          ## @B43_QOS_QUEUE_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wireless interface stopped\n"

	.no_dead_strip	_b43_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 b43_wireless_core_stop
_b43_wireless_core_stop:                ; @b43_wireless_core_stop
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x0
	cbz	x0, LBB0_22
; %bb.1:
	ldr	x19, [x24, #16]
	add	x21, x19, #24
	add	x22, x19, #32
	add	x23, x19, #28
Lloh0:
	adrp	x25, _B43_STAT_STARTED@GOTPAGE
Lloh1:
	ldr	x25, [x25, _B43_STAT_STARTED@GOTPAGEOFF]
Lloh2:
	adrp	x27, _B43_STAT_INITIALIZED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _B43_STAT_INITIALIZED@GOTPAGEOFF]
Lloh4:
	adrp	x26, _B43_MMIO_GEN_IRQ_MASK@GOTPAGE
Lloh5:
	ldr	x26, [x26, _B43_MMIO_GEN_IRQ_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_b43_status
	ldr	x8, [x25]
	cmp	x0, x8
	b.lt	LBB0_22
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mutex_unlock
	add	x0, x24, #8
	bl	_cancel_delayed_work_sync
	mov	x0, x22
	bl	_cancel_work_sync
	mov	x0, x24
	bl	_b43_leds_stop
	mov	x0, x21
	bl	_mutex_lock
	ldr	x20, [x19, #16]
	cbz	x20, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_b43_status
	ldr	x8, [x25]
	cmp	x0, x8
	b.lt	LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_b43_set_status
	ldr	x0, [x20]
	bl	_b43_bus_host_is_sdio
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_b43_write32
	ldr	w1, [x26]
	mov	x0, x20
	bl	_b43_read32
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_spin_lock_irq
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_b43_write32
	ldr	w1, [x26]
	mov	x0, x20
	bl	_b43_read32
	mov	x0, x23
	bl	_spin_unlock_irq
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x0, [x20]
	bl	_b43_bus_host_is_sdio
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_b43_sdio_free_irq
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mutex_lock
	ldr	x24, [x19, #16]
	cbz	x24, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	x24, x20
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	bl	_b43_status
	ldr	x8, [x25]
	cmp	x0, x8
	b.ge	LBB0_2
	b	LBB0_22
LBB0_14:
	mov	x24, #0
	b	LBB0_22
LBB0_15:
	ldr	w1, [x26]
	mov	x0, x20
	bl	_b43_read32
	sub	w8, w0, #1
	cmn	w8, #2
	cset	w0, lo
	bl	_B43_WARN_ON
Lloh6:
	adrp	x21, _B43_QOS_QUEUE_NUM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _B43_QOS_QUEUE_NUM@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
	mov	x22, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.ge	LBB0_20
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x19, #8]
	add	x0, x8, x22, lsl #2
	bl	_skb_queue_len
	cbz	x0, LBB0_17
LBB0_19:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	lsl	x23, x22, #2
	add	x0, x8, x23
	bl	_skb_dequeue
	mov	x1, x0
	ldr	w0, [x19]
	bl	_ieee80211_free_txskb
	ldr	x8, [x19, #8]
	add	x0, x8, x23
	bl	_skb_queue_len
	cbnz	x0, LBB0_19
	b	LBB0_17
LBB0_20:
	mov	x0, x20
	bl	_b43_mac_suspend
	mov	x0, x20
	bl	_b43_leds_exit
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_b43dbg
LBB0_21:
	mov	x24, x20
LBB0_22:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_STAT_STARTED,8,3           ; @B43_STAT_STARTED
	.comm	_B43_STAT_INITIALIZED,4,2       ; @B43_STAT_INITIALIZED
	.comm	_B43_MMIO_GEN_IRQ_MASK,4,2      ; @B43_MMIO_GEN_IRQ_MASK
	.comm	_B43_QOS_QUEUE_NUM,4,2          ; @B43_QOS_QUEUE_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wireless interface stopped\n"

	.no_dead_strip	_b43_wireless_core_stop
.subsections_via_symbols
