	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_free
_brcms_free:                            ## @brcms_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 56(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	48(%r14), %rdi
	callq	_brcms_ucode_data_free
LBB0_2:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	callq	_free_irq
LBB0_4:
	leaq	32(%r14), %rdi
	callq	_tasklet_kill
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_brcms_debugfs_detach
	movq	16(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_brcms_c_module_unregister
LBB0_6:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	leaq	16(%r14), %rbx
	callq	_brcms_c_detach
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_8:
	leaq	8(%r14), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	jmp	LBB0_10
LBB0_11:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rbx
	callq	_kfree
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"linux"

	.no_dead_strip	_brcms_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_free
_brcms_free:                            ; @brcms_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #48
	bl	_brcms_ucode_data_free
LBB0_2:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	add	x0, x19, #32
	bl	_tasklet_kill
	mov	x20, x19
	ldr	x0, [x20, #16]!
	cbz	x0, LBB0_6
; %bb.5:
	bl	_brcms_debugfs_detach
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_brcms_c_module_unregister
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_brcms_c_detach
	stp	xzr, xzr, [x20]
LBB0_8:
	add	x20, x19, #8
	mov	x0, x20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_schedule
	mov	x0, x20
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_9
LBB0_10:
	ldr	x0, [x19]
	cbz	x0, LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x0, #8]
	bl	_kfree
	mov	x0, x19
	cbnz	x19, LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"linux"

	.no_dead_strip	_brcms_free
.subsections_via_symbols
