	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_del_if
_brcmf_del_if:                          ## @brcmf_del_if
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movl	%edx, %r15d
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_brcmf_dbg
	movslq	(%rbx), %r13
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.2:
	testq	%r12, %r12
	je	LBB0_3
## %bb.5:
	callq	_netif_stop_queue
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bphy_err                       ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_brcmf_p2p_ifp_removed
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_3:
	movq	(%rdi), %rax
	cmpq	_brcmf_netdev_ops_pri@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	8(%rbx), %rdi
	callq	_brcmf_netdev_stop
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_6:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	cmpq	_brcmf_netdev_ops_pri@GOTPCREL(%rip), %rax
	jne	LBB0_8
## %bb.7:
	leaq	20(%rbx), %rdi
	callq	_cancel_work_sync
	leaq	16(%rbx), %rdi
	callq	_cancel_work_sync
	movq	8(%rbx), %rdi
LBB0_8:
	movl	%r15d, %esi
	callq	_brcmf_net_detach
LBB0_10:
	movq	8(%r14), %rax
	movq	$0, (%rax,%r12,8)
	movq	(%r14), %rax
	cmpq	%r12, (%rax,%r13,8)
	jne	LBB0_12
## %bb.11:
	movq	_BRCMF_BSSIDX_INVALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r13,8)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Null interface, bsscfgidx=%d\n"

	.comm	_TRACE,4,2                      ## @TRACE
L_.str.1:                               ## @.str.1
	.asciz	"Enter, bsscfgidx=%d, ifidx=%d\n"

	.comm	_brcmf_netdev_ops_pri,4,2       ## @brcmf_netdev_ops_pri
	.comm	_BRCMF_BSSIDX_INVALID,8,3       ## @BRCMF_BSSIDX_INVALID
	.no_dead_strip	_brcmf_del_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_del_if
_brcmf_del_if:                          ; @brcmf_del_if
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8, x1, lsl #3]
	cbz	x22, LBB0_4
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x22]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	ldrsw	x23, [x22]
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x24, _brcmf_netdev_ops_pri@GOTPAGE
Lloh6:
	ldr	x24, [x24, _brcmf_netdev_ops_pri@GOTPAGEOFF]
	cbz	x19, LBB0_6
; %bb.3:
	bl	_netif_stop_queue
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bphy_err
LBB0_5:
	mov	x0, x22
	mov	x1, x21
	bl	_brcmf_p2p_ifp_removed
	mov	x0, x22
	bl	_kfree
	b	LBB0_11
LBB0_6:
	ldr	x8, [x0]
	cmp	x8, x24
	b.ne	LBB0_8
; %bb.7:
	bl	_rtnl_lock
	ldr	x0, [x22, #8]
	bl	_brcmf_netdev_stop
	bl	_rtnl_unlock
LBB0_8:
	ldr	x0, [x22, #8]
	ldr	x8, [x0]
	cmp	x8, x24
	b.ne	LBB0_10
; %bb.9:
	add	x0, x22, #20
	bl	_cancel_work_sync
	add	x0, x22, #16
	bl	_cancel_work_sync
	ldr	x0, [x22, #8]
LBB0_10:
	mov	x1, x21
	bl	_brcmf_net_detach
LBB0_11:
	ldr	x8, [x20, #8]
	str	xzr, [x8, x19, lsl #3]
	ldr	x8, [x20]
	ldr	x9, [x8, x23, lsl #3]
	cmp	x9, x19
	b.ne	LBB0_13
; %bb.12:
Lloh9:
	adrp	x9, _BRCMF_BSSIDX_INVALID@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BRCMF_BSSIDX_INVALID@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	x9, [x8, x23, lsl #3]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Null interface, bsscfgidx=%d\n"

	.comm	_TRACE,4,2                      ; @TRACE
l_.str.1:                               ; @.str.1
	.asciz	"Enter, bsscfgidx=%d, ifidx=%d\n"

	.comm	_brcmf_netdev_ops_pri,4,2       ; @brcmf_netdev_ops_pri
	.comm	_BRCMF_BSSIDX_INVALID,8,3       ; @BRCMF_BSSIDX_INVALID
	.no_dead_strip	_brcmf_del_if
.subsections_via_symbols
