	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_configure_wowlan
_wl1271_configure_wowlan:               ## @wl1271_configure_wowlan
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	cmpq	$0, 16(%rsi)
	je	LBB0_2
LBB0_3:
	movq	_FILTER_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wl1271_acx_default_rx_filter_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.4:
	movq	%r14, %rdi
	callq	_wl1271_rx_filter_clear_all
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_21
LBB0_20:
	movl	%r13d, %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_WL1271_MAX_RX_FILTERS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_6:
	cmpl	$0, (%r15)
	jle	LBB0_11
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%r13, %rdi
	callq	_wl1271_validate_wowlan_pattern
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %r13
	cmpq	%rax, %r12
	jl	LBB0_8
LBB0_11:
	movq	_FILTER_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wl1271_acx_default_rx_filter_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:
	movq	%r14, %rdi
	callq	_wl1271_rx_filter_clear_all
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.14:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_wl1271_convert_wowlan_pattern_to_rx_filter
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_wl1271_rx_filter_enable
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_wl1271_rx_filter_free
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_15
LBB0_19:
	movq	_FILTER_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wl1271_acx_default_rx_filter_enable
	movl	%eax, %r13d
	jmp	LBB0_20
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_wl1271_warning
	jmp	LBB0_21
LBB0_16:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_wl1271_warning
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_SIGNAL,4,2              ## @FILTER_SIGNAL
	.comm	_WL1271_MAX_RX_FILTERS,4,2      ## @WL1271_MAX_RX_FILTERS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad wowlan pattern %d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to create an RX filter from wowlan pattern %d"

	.comm	_FILTER_DROP,4,2                ## @FILTER_DROP
	.no_dead_strip	_wl1271_configure_wowlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_configure_wowlan
_wl1271_configure_wowlan:               ; @wl1271_configure_wowlan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _FILTER_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILTER_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_wl1271_acx_default_rx_filter_enable
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.3:
	mov	x0, x19
	bl	_wl1271_rx_filter_clear_all
LBB0_4:
	mov	x21, x0
	b	LBB0_22
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.6:
Lloh3:
	adrp	x9, _WL1271_MAX_RX_FILTERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL1271_MAX_RX_FILTERS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	bl	_WARN_ON
	cbz	x0, LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_8:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x23, #0
	mov	x22, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	bl	_wl1271_validate_wowlan_pattern
	cbnz	w0, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_12:
Lloh9:
	adrp	x8, _FILTER_SIGNAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILTER_SIGNAL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_wl1271_acx_default_rx_filter_enable
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.13:
	mov	x0, x19
	bl	_wl1271_rx_filter_clear_all
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.14:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x23, #0
	mov	x22, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #8]
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	add	x1, sp, #8
	bl	_wl1271_convert_wowlan_pattern_to_rx_filter
	cbnz	w0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_wl1271_rx_filter_enable
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_wl1271_rx_filter_free
	cbnz	w21, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_16
LBB0_19:
Lloh12:
	adrp	x8, _FILTER_DROP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FILTER_DROP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_wl1271_acx_default_rx_filter_enable
	b	LBB0_4
LBB0_20:
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_21:
	mov	x1, x22
	bl	_wl1271_warning
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	mov	x21, x0
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_SIGNAL,4,2              ; @FILTER_SIGNAL
	.comm	_WL1271_MAX_RX_FILTERS,4,2      ; @WL1271_MAX_RX_FILTERS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad wowlan pattern %d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to create an RX filter from wowlan pattern %d"

	.comm	_FILTER_DROP,4,2                ; @FILTER_DROP
	.no_dead_strip	_wl1271_configure_wowlan
.subsections_via_symbols
