	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_wow_usr
_ath6kl_wow_usr:                        ## @ath6kl_wow_usr
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WOW_PATTERN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.1:
	shll	$2, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	48(%r12), %r8
	leaq	(%r15,%r15,2), %r9
	movl	(%r8,%r9,8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r8,%r9,8), %rdx
	movq	8(%r8,%r9,8), %rsi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rax
	movslq	%ecx, %rdi
	cmpq	%rdi, %rax
	jge	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rdi
	shrq	%rdi
	andl	$2147483644, %edi               ## imm = 0x7FFFFFFC
	movl	(%rsi,%rdi), %edi
	movl	%eax, %ebx
	andb	$7, %bl
	movzbl	%bl, %ebx
	btl	%ebx, %edi
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	$255, (%r14,%rax,4)
	movl	(%rdx), %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	_WOW_LIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r8,%r9,8), %r9d
	subq	$8, %rsp
	xorl	%r8d, %r8d
	pushq	%r14
	callq	_ath6kl_wmi_add_wow_pattern_cmd
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	(%r12), %r15
	jb	LBB0_3
LBB0_9:
	cmpq	$0, 40(%r12)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	_WOW_FILTER_OPTION_NWK_DISASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
LBB0_11:
	cmpq	$0, 32(%r12)
	je	LBB0_13
## %bb.12:
	movq	_WOW_FILTER_OPTION_MAGIC_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
LBB0_13:
	cmpq	$0, 24(%r12)
	je	LBB0_15
## %bb.14:
	movq	_WOW_FILTER_OPTION_GTK_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
LBB0_15:
	cmpq	$0, 16(%r12)
	je	LBB0_17
## %bb.16:
	movq	_WOW_FILTER_OPTION_EAP_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
LBB0_17:
	xorl	%eax, %eax
	cmpq	$0, 8(%r12)
	je	LBB0_19
## %bb.18:
	movq	_WOW_FILTER_OPTION_8021X_4WAYHS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rdx)
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WOW_PATTERN_SIZE,4,2           ## @WOW_PATTERN_SIZE
	.comm	_WOW_LIST_ID,4,2                ## @WOW_LIST_ID
	.comm	_WOW_FILTER_OPTION_NWK_DISASSOC,4,2 ## @WOW_FILTER_OPTION_NWK_DISASSOC
	.comm	_WOW_FILTER_OPTION_MAGIC_PACKET,4,2 ## @WOW_FILTER_OPTION_MAGIC_PACKET
	.comm	_WOW_FILTER_OPTION_GTK_ERROR,4,2 ## @WOW_FILTER_OPTION_GTK_ERROR
	.comm	_WOW_FILTER_OPTION_EAP_REQ,4,2  ## @WOW_FILTER_OPTION_EAP_REQ
	.comm	_WOW_FILTER_OPTION_8021X_4WAYHS,4,2 ## @WOW_FILTER_OPTION_8021X_4WAYHS
	.no_dead_strip	_ath6kl_wow_usr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_wow_usr
_ath6kl_wow_usr:                        ; @ath6kl_wow_usr
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _WOW_PATTERN_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WOW_PATTERN_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x2]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x25, #0
	lsl	w24, w12, #2
	mov	w26, #24
	mov	w27, #255
Lloh8:
	adrp	x28, _WOW_LIST_ID@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WOW_LIST_ID@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x0, x23
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	x8, [x20, #48]
	madd	x9, x25, x26, x8
	ldr	w3, [x9]
	cmp	w3, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, #0
	madd	x11, x25, x26, x8
	ldr	x11, [x11, #8]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x10, x10, #1
	cmp	x10, w3, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ubfx	x12, x10, #3, #29
	ldr	w12, [x11, x12, lsl #2]
	and	w13, w10, #0x7
	lsr	w12, w12, w13
	tbz	w12, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	str	w27, [x23, x10, lsl #2]
	ldr	w3, [x9]
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	ldr	w1, [x21]
	ldr	w2, [x28]
	madd	x8, x25, x26, x8
	ldr	w5, [x8, #16]
	mov	w4, #0
	mov	x6, x23
	bl	_ath6kl_wmi_add_wow_pattern_cmd
	cbnz	w0, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldr	x8, [x20]
	cmp	x25, x8
	b.lo	LBB0_2
LBB0_9:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_11
; %bb.10:
Lloh10:
	adrp	x8, _WOW_FILTER_OPTION_NWK_DISASSOC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WOW_FILTER_OPTION_NWK_DISASSOC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _WOW_FILTER_OPTION_MAGIC_PACKET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WOW_FILTER_OPTION_MAGIC_PACKET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.14:
Lloh16:
	adrp	x8, _WOW_FILTER_OPTION_GTK_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WOW_FILTER_OPTION_GTK_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_17
; %bb.16:
Lloh19:
	adrp	x8, _WOW_FILTER_OPTION_EAP_REQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WOW_FILTER_OPTION_EAP_REQ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_17:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	w0, #0
Lloh22:
	adrp	x8, _WOW_FILTER_OPTION_8021X_4WAYHS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WOW_FILTER_OPTION_8021X_4WAYHS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_WOW_PATTERN_SIZE,4,2           ; @WOW_PATTERN_SIZE
	.comm	_WOW_LIST_ID,4,2                ; @WOW_LIST_ID
	.comm	_WOW_FILTER_OPTION_NWK_DISASSOC,4,2 ; @WOW_FILTER_OPTION_NWK_DISASSOC
	.comm	_WOW_FILTER_OPTION_MAGIC_PACKET,4,2 ; @WOW_FILTER_OPTION_MAGIC_PACKET
	.comm	_WOW_FILTER_OPTION_GTK_ERROR,4,2 ; @WOW_FILTER_OPTION_GTK_ERROR
	.comm	_WOW_FILTER_OPTION_EAP_REQ,4,2  ; @WOW_FILTER_OPTION_EAP_REQ
	.comm	_WOW_FILTER_OPTION_8021X_4WAYHS,4,2 ; @WOW_FILTER_OPTION_8021X_4WAYHS
	.no_dead_strip	_ath6kl_wow_usr
.subsections_via_symbols
