	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_config_wowl_pattern
_brcmf_config_wowl_pattern:             ## @brcmf_config_wowl_pattern
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	leal	7(%r13), %eax
	leal	14(%r13), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$3, %r14d
	leal	(%r14,%r13), %edi
	addl	$48, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leal	40(%r14), %r15d
	movq	40(%rax), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	_BRCMF_WOWL_PATTERN_TYPE_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	leal	-1(%r13), %eax
	cmpl	$-16, %eax
	ja	LBB0_6
## %bb.5:
	leaq	192(%rbx), %rdi
	movl	%r14d, %edx
	callq	_memcpy
LBB0_6:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:
	movslq	%r14d, %rax
	leaq	(%rbx,%rax,4), %rdi
	addq	$192, %rdi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_brcmf_fil_iovar_data_set
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BRCMF_WOWL_PATTERN_TYPE_BITMAP,4,2 ## @BRCMF_WOWL_PATTERN_TYPE_BITMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wowl_pattern"

	.no_dead_strip	_brcmf_config_wowl_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_config_wowl_pattern
_brcmf_config_wowl_pattern:             ; @brcmf_config_wowl_pattern
	.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
	mov	x26, x5
	mov	x24, x4
	mov	x20, x3
	mov	x22, x2
	mov	x27, x1
	mov	x19, x0
	add	w8, w3, #7
	add	w9, w3, #14
	cmp	w8, #0
	csel	w25, w9, w8, lt
	asr	w8, w25, #3
	add	w8, w3, w8
	add	w21, w8, #48
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x0
	sbfx	x25, x25, #3, #29
	add	w28, w25, #40
	ldr	x0, [x0, #40]
	mov	x1, x27
	mov	w2, #4
	bl	_memcpy
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x23, #32]
	mov	x0, x26
	bl	_cpu_to_le32
	str	x0, [x23, #24]
	mov	x0, x28
	bl	_cpu_to_le32
	str	x0, [x23, #16]
	mov	x0, x20
	bl	_cpu_to_le32
	str	x0, [x23, #8]
Lloh3:
	adrp	x8, _BRCMF_WOWL_PATTERN_TYPE_BITMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BRCMF_WOWL_PATTERN_TYPE_BITMAP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x23]
	cbz	x24, LBB0_4
; %bb.2:
	sub	w8, w20, #1
	cmn	w8, #16
	b.hi	LBB0_4
; %bb.3:
	add	x0, x23, #192
	mov	x1, x24
	mov	x2, x25
	bl	_memcpy
LBB0_4:
	cbz	x22, LBB0_7
; %bb.5:
	cbz	w20, LBB0_7
; %bb.6:
	add	x8, x23, x25, lsl #2
	add	x0, x8, #192
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x21
	bl	_brcmf_fil_iovar_data_set
	mov	x19, x0
	mov	x0, x23
	bl	_kfree
	mov	x0, x19
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BRCMF_WOWL_PATTERN_TYPE_BITMAP,4,2 ; @BRCMF_WOWL_PATTERN_TYPE_BITMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wowl_pattern"

	.no_dead_strip	_brcmf_config_wowl_pattern
.subsections_via_symbols
