	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_detach
_brcms_b_detach:                        ## @brcms_b_detach
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_brcms_b_detach_dmapio
	cmpq	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	leaq	32(%r15), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r15), %r12
	movq	%r14, %rdi
	callq	_OTHERBANDUNIT
	leaq	(%r12,%rax,8), %rax
	incq	%rbx
	cmpq	(%r15), %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_wlc_phy_detach
	movq	$0, (%r12)
	jmp	LBB0_4
LBB0_5:
	movl	20(%r15), %edi
	callq	_kfree
	movl	16(%r15), %edi
	callq	_wlc_phy_shim_detach
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_ai_detach
	movq	$0, 8(%r15)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_brcms_b_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_detach
_brcms_b_detach:                        ; @brcms_b_detach
	.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	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_brcms_b_detach_dmapio
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	add	x8, x19, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x19, #24]
	mov	x0, x20
	bl	_OTHERBANDUNIT
	add	x8, x22, x0, lsl #3
	add	x21, x21, #1
	ldr	x9, [x19]
	cmp	x21, x9
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x8]
	ldr	x0, [x22]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_wlc_phy_detach
	str	xzr, [x22]
	b	LBB0_2
LBB0_5:
	ldr	w0, [x19, #20]
	bl	_kfree
	ldr	w0, [x19, #16]
	bl	_wlc_phy_shim_detach
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_ai_detach
	str	xzr, [x19, #8]
LBB0_7:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_brcms_b_detach
.subsections_via_symbols
