	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_del_iface
_brcmf_cfg80211_del_iface:              ## @brcmf_cfg80211_del_iface
	.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, %r15
	movq	%rdi, %r14
	callq	_wiphy_to_cfg
	movq	%rax, %r12
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_cfg_to_ndev
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_brcmf_cfg80211_vif_event_armed
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_BRCMF_SCAN_STATUS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$8, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%r12), %r13
	movq	%rbx, %rdi
	callq	_netdev_priv
	cmpq	%rax, %r13
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_brcmf_notify_escan_complete
LBB0_9:
	movq	%rbx, %rdi
	callq	_netdev_priv
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_brcmf_fil_iovar_int_set
	jmp	LBB0_10
LBB0_3:
	movq	%r12, %rdi
	callq	_brcmf_cfg80211_vif_event_armed
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_10:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_16
## %bb.11:
	movl	$1477, %ecx                     ## imm = 0x5C5
	btl	%eax, %ecx
	jae	LBB0_12
## %bb.18:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$56, %ecx
	btl	%eax, %ecx
	jae	LBB0_13
## %bb.15:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_p2p_del_vif              ## TAILCALL
LBB0_13:
	cmpl	$9, %eax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_cfg80211_del_ap_iface    ## TAILCALL
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ## @BRCMF_SCAN_STATUS_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mpc"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_brcmf_cfg80211_del_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_del_iface
_brcmf_cfg80211_del_iface:              ; @brcmf_cfg80211_del_iface
	.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
	bl	_wiphy_to_cfg
	mov	x22, x0
	ldr	x21, [x19, #8]
	cbz	x21, LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_cfg_to_ndev
	cmp	x21, x0
	b.eq	LBB0_12
; %bb.2:
	mov	x0, x22
	bl	_brcmf_cfg80211_vif_event_armed
	cbnz	x0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _BRCMF_SCAN_STATUS_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMF_SCAN_STATUS_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x23, [x22]
	mov	x0, x21
	bl	_netdev_priv
	cmp	x23, x0
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_netdev_priv
	mov	x1, x0
	mov	x0, x22
	mov	w2, #1
	mov	w3, #1
	bl	_brcmf_notify_escan_complete
LBB0_6:
	mov	x0, x21
	bl	_netdev_priv
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_brcmf_fil_iovar_int_set
	b	LBB0_9
LBB0_7:
	mov	x0, x22
	bl	_brcmf_cfg80211_vif_event_armed
	cbz	x0, LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_18
; %bb.10:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #1477
	tst	w9, w10
	b.eq	LBB0_14
; %bb.11:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_14:
	tst	w9, #0x38
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, 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	_brcmf_p2p_del_vif
LBB0_16:
	cmp	w8, #9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, 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	_brcmf_cfg80211_del_ap_iface
LBB0_18:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BRCMF_SCAN_STATUS_BUSY,4,2     ; @BRCMF_SCAN_STATUS_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mpc"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_brcmf_cfg80211_del_iface
.subsections_via_symbols
