	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_net_detach
_brcmf_net_detach:                      ## @brcmf_net_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_NETREG_REGISTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	addq	$8, %rsp
	testl	%esi, %esi
	je	LBB0_2
## %bb.4:
	popq	%rbx
	popq	%rbp
	jmp	_unregister_netdevice           ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_brcmf_cfg80211_free_netdev
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%rbp
	jmp	_unregister_netdev              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETREG_REGISTERED,8,3          ## @NETREG_REGISTERED
	.no_dead_strip	_brcmf_net_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_net_detach
_brcmf_net_detach:                      ; @brcmf_net_detach
	.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]
Lloh0:
	adrp	x9, _NETREG_REGISTERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETREG_REGISTERED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	cbz	w1, LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_unregister_netdevice
LBB0_3:
	mov	x0, x19
	bl	_brcmf_cfg80211_free_netdev
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_netdev
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_unregister_netdev
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETREG_REGISTERED,8,3          ; @NETREG_REGISTERED
	.no_dead_strip	_brcmf_net_detach
.subsections_via_symbols
