	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_proto_detach             ## -- Begin function brcmf_proto_detach
	.p2align	4, 0x90
_brcmf_proto_detach:                    ## @brcmf_proto_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	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_BRCMF_PROTO_BCDC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_brcmf_proto_bcdc_detach
	jmp	LBB0_5
LBB0_3:
	movq	_BRCMF_PROTO_MSGBUF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_brcmf_proto_msgbuf_detach
LBB0_5:
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_PROTO_BCDC,8,3           ## @BRCMF_PROTO_BCDC
	.comm	_BRCMF_PROTO_MSGBUF,8,3         ## @BRCMF_PROTO_MSGBUF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_proto_detach             ; -- Begin function brcmf_proto_detach
	.p2align	2
_brcmf_proto_detach:                    ; @brcmf_proto_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
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _BRCMF_PROTO_BCDC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMF_PROTO_BCDC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_brcmf_proto_bcdc_detach
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x9, _BRCMF_PROTO_MSGBUF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRCMF_PROTO_MSGBUF@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_brcmf_proto_msgbuf_detach
LBB0_5:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_BRCMF_PROTO_BCDC,8,3           ; @BRCMF_PROTO_BCDC
	.comm	_BRCMF_PROTO_MSGBUF,8,3         ; @BRCMF_PROTO_MSGBUF
.subsections_via_symbols
