	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_del_ap_iface
_brcmf_cfg80211_del_ap_iface:           ## @brcmf_cfg80211_del_ap_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_wiphy_to_cfg
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r15), %r14
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_brcmf_cfg80211_arm_vif_event
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_brcmf_fil_bsscfg_data_set
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_5
LBB0_2:
	movq	_BRCMF_E_IF_DEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BRCMF_VIF_EVENT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_brcmf_cfg80211_wait_vif_event
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_brcmf_remove_interface
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_bphy_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_brcmf_cfg80211_arm_vif_event
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interface_remove"

L_.str.1:                               ## @.str.1
	.asciz	"interface_remove failed %d\n"

	.comm	_BRCMF_E_IF_DEL,4,2             ## @BRCMF_E_IF_DEL
	.comm	_BRCMF_VIF_EVENT_TIMEOUT,4,2    ## @BRCMF_VIF_EVENT_TIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"timeout occurred\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_brcmf_cfg80211_del_ap_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_ap_iface
_brcmf_cfg80211_del_ap_iface:           ; @brcmf_cfg80211_del_ap_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_wiphy_to_cfg
	mov	x19, x0
	ldr	x0, [x20]
	bl	_netdev_priv
	mov	x21, x0
	ldr	x20, [x19]
	ldr	x1, [x0]
	mov	x0, x19
	bl	_brcmf_cfg80211_arm_vif_event
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_brcmf_fil_bsscfg_data_set
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	str	x22, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
	b	LBB0_5
LBB0_2:
Lloh4:
	adrp	x8, _BRCMF_E_IF_DEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMF_E_IF_DEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _BRCMF_VIF_EVENT_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BRCMF_VIF_EVENT_TIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_brcmf_cfg80211_wait_vif_event
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #1
	bl	_brcmf_remove_interface
	mov	w22, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_bphy_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	bl	_brcmf_cfg80211_arm_vif_event
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interface_remove"

l_.str.1:                               ; @.str.1
	.asciz	"interface_remove failed %d\n"

	.comm	_BRCMF_E_IF_DEL,4,2             ; @BRCMF_E_IF_DEL
	.comm	_BRCMF_VIF_EVENT_TIMEOUT,4,2    ; @BRCMF_VIF_EVENT_TIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"timeout occurred\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_brcmf_cfg80211_del_ap_iface
.subsections_via_symbols
