	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_configure_wowl
_brcmf_configure_wowl:                  ## @brcmf_configure_wowl
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	movq	_BRCMF_FEAT_WOWL_ARP_ND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcmf_feat_is_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_brcmf_configure_arp_nd_offload
LBB0_2:
	movq	_BRCMF_C_GET_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%r12), %rdx
	movq	%r15, %rdi
	callq	_brcmf_fil_cmd_int_get
	movq	_BRCMF_C_SET_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PM_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_brcmf_fil_cmd_int_set
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.4:
	movq	_BRCMF_WOWL_DIS@GOTPCREL(%rip), %rax
	movq	_BRCMF_WOWL_BCN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movq	_BRCMF_WOWL_RETR@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	24(%rbx), %rax
	movq	32(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	movq	_BRCMF_WOWL_MAGIC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
LBB0_7:
	orq	%rcx, %r13
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpq	$0, (%rbx)
	je	LBB0_12
## %bb.9:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_BRCMF_WOWL_NET@GOTPCREL(%rip), %rcx
	orq	(%rcx), %r13
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r14d
	movl	$24, %r12d
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%r12), %rdx
	movl	-8(%rax,%r12), %ecx
	movq	-16(%rax,%r12), %r8
	movl	-24(%rax,%r12), %r9d
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_brcmf_config_wowl_pattern
	cmpq	(%rbx), %r14
	jae	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%rbx), %rax
	incq	%r14
	addq	$32, %r12
	jmp	LBB0_10
LBB0_11:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_12:
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movl	24(%r12), %edi
	movl	8(%r15), %esi
	callq	_brcmf_cfg80211_sched_scan_start
	movq	_BRCMF_WOWL_PFN_FOUND@GOTPCREL(%rip), %rax
	orq	(%rax), %r13
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%r12)
	movq	16(%r12), %rdi
	movq	_BRCMF_E_PFN_NET_FOUND@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_brcmf_fweh_unregister
	movq	16(%r12), %rdi
	movl	(%r14), %esi
	movq	_brcmf_wowl_nd_results@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_brcmf_fweh_register
LBB0_14:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rbx)
	movl	$0, %eax
	je	LBB0_16
## %bb.15:
	movq	_BRCMF_WOWL_GTK_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	orl	%eax, %r13d
	movq	_BRCMF_VIF_STATUS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_BRCMF_WOWL_UNASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_18:
	orl	%r14d, %r13d
	leaq	L_.str.2(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	_memcpy
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_brcmf_fil_iovar_data_set
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_brcmf_fil_iovar_int_set
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_brcmf_fil_iovar_int_set
	movq	16(%r12), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_brcmf_bus_wowl_config
	movl	$1, 8(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"Suspend, wowl config.\n"

	.comm	_BRCMF_FEAT_WOWL_ARP_ND,4,2     ## @BRCMF_FEAT_WOWL_ARP_ND
	.comm	_BRCMF_C_GET_PM,4,2             ## @BRCMF_C_GET_PM
	.comm	_BRCMF_C_SET_PM,4,2             ## @BRCMF_C_SET_PM
	.comm	_PM_MAX,4,2                     ## @PM_MAX
	.comm	_BRCMF_WOWL_DIS,8,3             ## @BRCMF_WOWL_DIS
	.comm	_BRCMF_WOWL_BCN,8,3             ## @BRCMF_WOWL_BCN
	.comm	_BRCMF_WOWL_RETR,8,3            ## @BRCMF_WOWL_RETR
	.comm	_BRCMF_WOWL_MAGIC,8,3           ## @BRCMF_WOWL_MAGIC
	.comm	_BRCMF_WOWL_NET,8,3             ## @BRCMF_WOWL_NET
L_.str.1:                               ## @.str.1
	.asciz	"add"

	.comm	_BRCMF_WOWL_PFN_FOUND,8,3       ## @BRCMF_WOWL_PFN_FOUND
	.comm	_BRCMF_E_PFN_NET_FOUND,4,2      ## @BRCMF_E_PFN_NET_FOUND
	.comm	_brcmf_wowl_nd_results,4,2      ## @brcmf_wowl_nd_results
	.comm	_BRCMF_WOWL_GTK_FAILURE,8,3     ## @BRCMF_WOWL_GTK_FAILURE
	.comm	_BRCMF_VIF_STATUS_CONNECTED,4,2 ## @BRCMF_VIF_STATUS_CONNECTED
	.comm	_BRCMF_WOWL_UNASSOC,8,3         ## @BRCMF_WOWL_UNASSOC
L_.str.2:                               ## @.str.2
	.asciz	"clear"

L_.str.3:                               ## @.str.3
	.asciz	"wowl_wakeind"

L_.str.4:                               ## @.str.4
	.asciz	"wowl"

L_.str.5:                               ## @.str.5
	.asciz	"wowl_activate"

	.no_dead_strip	_brcmf_configure_wowl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function brcmf_configure_wowl
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_brcmf_configure_wowl:                  ; @brcmf_configure_wowl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
Lloh5:
	adrp	x8, _BRCMF_FEAT_WOWL_ARP_ND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_FEAT_WOWL_ARP_ND@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_brcmf_feat_is_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_brcmf_configure_arp_nd_offload
LBB0_2:
Lloh8:
	adrp	x8, _BRCMF_C_GET_PM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMF_C_GET_PM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, x19, #12
	mov	x0, x20
	bl	_brcmf_fil_cmd_int_get
Lloh11:
	adrp	x8, _BRCMF_C_SET_PM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMF_C_SET_PM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _PM_MAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PM_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_brcmf_fil_cmd_int_set
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _BRCMF_WOWL_DIS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BRCMF_WOWL_DIS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _BRCMF_WOWL_BCN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BRCMF_WOWL_BCN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh23:
	adrp	x9, _BRCMF_WOWL_RETR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BRCMF_WOWL_RETR@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	orr	x9, x8, x9
	b	LBB0_5
LBB0_4:
	mov	x9, #0
LBB0_5:
Lloh26:
	adrp	x8, _BRCMF_WOWL_MAGIC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BRCMF_WOWL_MAGIC@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x8]
	ldp	x8, x11, [x21, #24]
	cmp	x11, #0
	csel	x10, xzr, x10, eq
	orr	x23, x10, x9
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x9, [x21]
	cbz	x9, LBB0_10
; %bb.7:
	mov	x24, #0
Lloh29:
	adrp	x9, _BRCMF_WOWL_NET@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BRCMF_WOWL_NET@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	orr	x23, x9, x23
	mov	w25, #1
Lloh32:
	adrp	x22, l_.str.1@PAGE
Lloh33:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x24
	ldr	x2, [x8, #24]
	ldr	w3, [x8, #16]
	ldr	x4, [x8, #8]
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_brcmf_config_wowl_pattern
	ldr	x8, [x21]
	cmp	x25, x8
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #24]
	add	x25, x25, #1
	add	x24, x24, #32
	b	LBB0_8
LBB0_10:
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_12
; %bb.11:
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #8]
	bl	_brcmf_cfg80211_sched_scan_start
Lloh34:
	adrp	x8, _BRCMF_WOWL_PFN_FOUND@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BRCMF_WOWL_PFN_FOUND@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	orr	x23, x8, x23
Lloh37:
	adrp	x8, lCPI0_0@PAGE
Lloh38:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	x0, [x19, #16]
Lloh39:
	adrp	x22, _BRCMF_E_PFN_NET_FOUND@GOTPAGE
Lloh40:
	ldr	x22, [x22, _BRCMF_E_PFN_NET_FOUND@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_brcmf_fweh_unregister
	ldr	x0, [x19, #16]
	ldr	w1, [x22]
Lloh41:
	adrp	x8, _brcmf_wowl_nd_results@GOTPAGE
Lloh42:
	ldr	x8, [x8, _brcmf_wowl_nd_results@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_brcmf_fweh_register
LBB0_12:
	ldr	x8, [x21, #8]
Lloh44:
	adrp	x9, _BRCMF_WOWL_GTK_FAILURE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BRCMF_WOWL_GTK_FAILURE@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w21, w8, w23
Lloh47:
	adrp	x8, _BRCMF_VIF_STATUS_CONNECTED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BRCMF_VIF_STATUS_CONNECTED@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_test_bit
Lloh50:
	adrp	x8, _BRCMF_WOWL_UNASSOC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BRCMF_WOWL_UNASSOC@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w21, w21, w8
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	mov	w2, #6
	bl	_memcpy
Lloh55:
	adrp	x1, l_.str.3@PAGE
Lloh56:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_brcmf_fil_iovar_data_set
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_fil_iovar_int_set
Lloh59:
	adrp	x1, l_.str.5@PAGE
Lloh60:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w21, #1
	mov	x0, x20
	mov	w2, #1
	bl	_brcmf_fil_iovar_int_set
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_brcmf_bus_wowl_config
	str	w21, [x19, #8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdr	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Suspend, wowl config.\n"

	.comm	_BRCMF_FEAT_WOWL_ARP_ND,4,2     ; @BRCMF_FEAT_WOWL_ARP_ND
	.comm	_BRCMF_C_GET_PM,4,2             ; @BRCMF_C_GET_PM
	.comm	_BRCMF_C_SET_PM,4,2             ; @BRCMF_C_SET_PM
	.comm	_PM_MAX,4,2                     ; @PM_MAX
	.comm	_BRCMF_WOWL_DIS,8,3             ; @BRCMF_WOWL_DIS
	.comm	_BRCMF_WOWL_BCN,8,3             ; @BRCMF_WOWL_BCN
	.comm	_BRCMF_WOWL_RETR,8,3            ; @BRCMF_WOWL_RETR
	.comm	_BRCMF_WOWL_MAGIC,8,3           ; @BRCMF_WOWL_MAGIC
	.comm	_BRCMF_WOWL_NET,8,3             ; @BRCMF_WOWL_NET
l_.str.1:                               ; @.str.1
	.asciz	"add"

	.comm	_BRCMF_WOWL_PFN_FOUND,8,3       ; @BRCMF_WOWL_PFN_FOUND
	.comm	_BRCMF_E_PFN_NET_FOUND,4,2      ; @BRCMF_E_PFN_NET_FOUND
	.comm	_brcmf_wowl_nd_results,4,2      ; @brcmf_wowl_nd_results
	.comm	_BRCMF_WOWL_GTK_FAILURE,8,3     ; @BRCMF_WOWL_GTK_FAILURE
	.comm	_BRCMF_VIF_STATUS_CONNECTED,4,2 ; @BRCMF_VIF_STATUS_CONNECTED
	.comm	_BRCMF_WOWL_UNASSOC,8,3         ; @BRCMF_WOWL_UNASSOC
l_.str.2:                               ; @.str.2
	.asciz	"clear"

l_.str.3:                               ; @.str.3
	.asciz	"wowl_wakeind"

l_.str.4:                               ; @.str.4
	.asciz	"wowl"

l_.str.5:                               ; @.str.5
	.asciz	"wowl_activate"

	.no_dead_strip	_brcmf_configure_wowl
.subsections_via_symbols
