	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_notify_vif_event
_brcmf_notify_vif_event:                ## @brcmf_notify_vif_event
	.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	%rdx, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movq	(%rax), %r12
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rdx), %ecx
	movl	8(%rdx), %r8d
	movl	(%rdx), %edx
	movl	4(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
	cmpl	$128, %eax
	je	LBB0_8
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.3:
	movq	24(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%r15)
	movq	%r15, 8(%rax)
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	%rbx, (%rax)
	movq	%rax, (%rbx)
	movl	(%r12), %edi
	callq	_wiphy_dev
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SET_NETDEV_DEV
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_wake_up
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_brcmf_cfg80211_vif_event_armed
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_wake_up
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter: action %u flags %u ifidx %u bsscfgidx %u\n"

	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_brcmf_notify_vif_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_notify_vif_event
_brcmf_notify_vif_event:                ; @brcmf_notify_vif_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x21, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _TRACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRACE@GOTPAGEOFF]
	ldr	x19, [x8]
Lloh2:
	ldr	w0, [x9]
	ldp	w4, w3, [x2, #8]
	ldr	w2, [x2]
	ldr	w5, [x22, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x22]
	str	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.4:
	str	x8, [x21, #8]
	str	x21, [x8, #8]
	ldr	x21, [x21]
	cbz	x21, LBB0_6
; %bb.5:
	str	x21, [x8]
	str	x8, [x21]
	ldr	w0, [x19]
	bl	_wiphy_dev
	mov	x1, x0
	mov	x0, x21
	bl	_SET_NETDEV_DEV
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_brcmf_cfg80211_vif_event_armed
	cbz	w0, LBB0_12
LBB0_8:
	add	x0, x19, #16
	bl	_wake_up
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock
Lloh7:
	adrp	x8, _EBADF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter: action %u flags %u ifidx %u bsscfgidx %u\n"

	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_brcmf_notify_vif_event
.subsections_via_symbols
