	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fweh_activate_events     ## -- Begin function brcmf_fweh_activate_events
	.p2align	4, 0x90
_brcmf_fweh_activate_events:            ## @brcmf_fweh_activate_events
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_BRCMF_EVENTING_MASK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	(,%rbx,4), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_BRCMF_E_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_brcmf_fweh_event_name
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_setbit
	movq	_BRCMF_E_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_E_IF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_setbit
	movq	_BRCMF_EVENTING_MASK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_brcmf_fil_iovar_data_set
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_bphy_err
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_EVENTING_MASK_LEN,4,2    ## @BRCMF_EVENTING_MASK_LEN
	.comm	_BRCMF_E_LAST,4,2               ## @BRCMF_E_LAST
	.comm	_EVENT,4,2                      ## @EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enable event %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"enable event IF\n"

	.comm	_BRCMF_E_IF,4,2                 ## @BRCMF_E_IF
L_.str.2:                               ## @.str.2
	.asciz	"event_msgs"

L_.str.3:                               ## @.str.3
	.asciz	"Set event_msgs error (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcmf_fweh_activate_events     ; -- Begin function brcmf_fweh_activate_events
	.p2align	2
_brcmf_fweh_activate_events:            ; @brcmf_fweh_activate_events
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x19, [x0]
Lloh3:
	adrp	x25, _BRCMF_EVENTING_MASK_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _BRCMF_EVENTING_MASK_LEN@GOTPAGEOFF]
	ldr	w12, [x25]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w2, w12, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x26, _BRCMF_E_LAST@GOTPAGE
Lloh8:
	ldr	x26, [x26, _BRCMF_E_LAST@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh9:
	adrp	x27, _EVENT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EVENT@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
Lloh11:
	adrp	x23, l_.str@PAGE
Lloh12:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w24, [x27]
	mov	x0, x22
	bl	_brcmf_fweh_event_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
	mov	x0, x24
	mov	x1, x23
	bl	_brcmf_dbg
	add	sp, sp, #16
	mov	x0, x21
	mov	x1, x22
	bl	_setbit
	ldr	w8, [x26]
	b	LBB0_2
LBB0_5:
	ldr	w0, [x27]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
Lloh15:
	adrp	x8, _BRCMF_E_IF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BRCMF_E_IF@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_setbit
	ldr	w3, [x25]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_fil_iovar_data_set
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_bphy_err
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_EVENTING_MASK_LEN,4,2    ; @BRCMF_EVENTING_MASK_LEN
	.comm	_BRCMF_E_LAST,4,2               ; @BRCMF_E_LAST
	.comm	_EVENT,4,2                      ; @EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enable event %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"enable event IF\n"

	.comm	_BRCMF_E_IF,4,2                 ; @BRCMF_E_IF
l_.str.2:                               ; @.str.2
	.asciz	"event_msgs"

l_.str.3:                               ; @.str.3
	.asciz	"Set event_msgs error (%d)\n"

.subsections_via_symbols
