	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_apply_pattern     ## -- Begin function ath9k_hw_wow_apply_pattern
	.p2align	4, 0x90
_ath9k_hw_wow_apply_pattern:            ## @ath9k_hw_wow_apply_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
                                        ## kill: def $ecx killed $ecx def $rcx
	cmpl	%ecx, (%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_MAX_NUM_PATTERN_LEGACY@GOTPCREL(%rip), %rax
	leal	-8(%rcx), %edi
	cmpl	%ecx, (%rax)
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_3
## %bb.4:
	movq	_AR_WOW_PATTERN@GOTPCREL(%rip), %rax
	movq	%rcx, %rdx
	movl	%ecx, %edi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movq	%rcx, %rdx
	movq	_AR_MAC_PCU_WOW4@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	callq	_BIT
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_REG_SET_BIT
	movq	_MAX_PATTERN_SIZE@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-68(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AR_WOW_TB_PATTERN
	leaq	(%rax,%r15), %rsi
	movl	-68(%rbp), %edx
	movq	%r13, %rdi
	callq	_REG_WRITE
	addq	$16, %r12
	addq	$4, %r15
	cmpl	%r15d, (%rbx)
	jg	LBB0_7
LBB0_8:
	movq	_MAX_PATTERN_MASK_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_AR_WOW_TB_MASK
	leaq	(%rax,%rbx), %rsi
	movl	-64(%rbp), %edx
	movq	%r13, %rdi
	callq	_REG_WRITE
	addq	$16, %r14
	addq	$4, %rbx
	cmpl	%ebx, (%r12)
	jg	LBB0_10
LBB0_11:
	movq	_AR_WOW_PAT_FOUND_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAX_NUM_PATTERN_LEGACY@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	cmpl	%r14d, (%rax)
	jle	LBB0_13
## %bb.12:
	addl	%r14d, %edi
	callq	_BIT
	leaq	8(%r13), %rcx
	jmp	LBB0_14
LBB0_13:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addl	%edi, %eax
	movl	%eax, %edi
	callq	_BIT
	leaq	4(%r13), %rcx
LBB0_14:
	orl	%eax, (%rcx)
	cmpl	$3, %r14d
	jg	LBB0_17
## %bb.15:
	movq	_AR_WOW_LENGTH_MAX@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LEN1_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LENGTH1_MASK
	movq	_AR_WOW_LENGTH1@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_17:
	cmpl	$7, %r14d
	ja	LBB0_19
## %bb.18:
	movq	_AR_WOW_LENGTH_MAX@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LEN2_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LENGTH2_MASK
	movq	_AR_WOW_LENGTH2@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_19:
	cmpl	$11, %r14d
	ja	LBB0_21
## %bb.20:
	movq	_AR_WOW_LENGTH_MAX@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LEN3_SHIFT
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%r14d, %edi
	callq	_AR_WOW_LENGTH3_MASK
	movq	_AR_WOW_LENGTH3@GOTPCREL(%rip), %rcx
LBB0_16:
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_REG_RMW
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_MAX_NUM_PATTERN@GOTPCREL(%rip), %rax
	movq	%r14, %r12
	xorl	%ebx, %ebx
	cmpl	%r12d, (%rax)
	jle	LBB0_23
## %bb.22:
	movq	_AR_WOW_LENGTH_MAX@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_AR_WOW_LEN4_SHIFT
	movl	%eax, %ecx
	shll	%cl, %r14d
	movl	%r12d, %edi
	callq	_AR_WOW_LENGTH4_MASK
	movq	_AR_WOW_LENGTH4@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_REG_RMW
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_MAX_NUM_PATTERN_LEGACY,4,2     ## @MAX_NUM_PATTERN_LEGACY
	.comm	_AR_WOW_PATTERN,4,2             ## @AR_WOW_PATTERN
	.comm	_AR_MAC_PCU_WOW4,4,2            ## @AR_MAC_PCU_WOW4
	.comm	_MAX_PATTERN_SIZE,4,2           ## @MAX_PATTERN_SIZE
	.comm	_MAX_PATTERN_MASK_SIZE,4,2      ## @MAX_PATTERN_MASK_SIZE
	.comm	_AR_WOW_PAT_FOUND_SHIFT,4,2     ## @AR_WOW_PAT_FOUND_SHIFT
	.comm	_AR_WOW_LENGTH_MAX,4,2          ## @AR_WOW_LENGTH_MAX
	.comm	_AR_WOW_LENGTH1,4,2             ## @AR_WOW_LENGTH1
	.comm	_AR_WOW_LENGTH2,4,2             ## @AR_WOW_LENGTH2
	.comm	_AR_WOW_LENGTH3,4,2             ## @AR_WOW_LENGTH3
	.comm	_MAX_NUM_PATTERN,4,2            ## @MAX_NUM_PATTERN
	.comm	_AR_WOW_LENGTH4,4,2             ## @AR_WOW_LENGTH4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_wow_apply_pattern     ; -- Begin function ath9k_hw_wow_apply_pattern
	.p2align	2
_ath9k_hw_wow_apply_pattern:            ; @ath9k_hw_wow_apply_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cmp	w8, w3
	b.le	LBB0_9
; %bb.1:
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _MAX_NUM_PATTERN_LEGACY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MAX_NUM_PATTERN_LEGACY@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x9, _AR_MAC_PCU_WOW4@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AR_MAC_PCU_WOW4@GOTPAGEOFF]
	sub	w25, w3, #8
Lloh4:
	adrp	x10, _AR_WOW_PATTERN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AR_WOW_PATTERN@GOTPAGEOFF]
	cmp	w8, w3
	csel	w0, w3, w25, gt
	csel	x8, x10, x9, gt
	ldr	w24, [x8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_REG_SET_BIT
Lloh6:
	adrp	x24, _MAX_PATTERN_SIZE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MAX_PATTERN_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x27, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_AR_WOW_TB_PATTERN
	add	x1, x0, x27
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_REG_WRITE
	add	x23, x23, #16
	add	x27, x27, #4
	ldr	w8, [x24]
	cmp	w8, w27
	b.gt	LBB0_3
LBB0_4:
Lloh8:
	adrp	x23, _MAX_PATTERN_MASK_SIZE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MAX_PATTERN_MASK_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_AR_WOW_TB_MASK
	add	x1, x0, x24
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_REG_WRITE
	add	x22, x22, #16
	add	x24, x24, #4
	ldr	w8, [x23]
	cmp	w8, w24
	b.gt	LBB0_6
LBB0_7:
	ldr	w9, [x26]
Lloh10:
	adrp	x8, _AR_WOW_PAT_FOUND_SHIFT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_WOW_PAT_FOUND_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w9, w20
	b.le	LBB0_10
; %bb.8:
	add	w0, w8, w20
	bl	_BIT
	add	x8, x19, #8
	b	LBB0_11
LBB0_9:
Lloh13:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_10:
	add	w0, w25, w8
	bl	_BIT
	add	x8, x19, #4
LBB0_11:
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	cmp	w20, #3
	b.gt	LBB0_13
; %bb.12:
Lloh16:
	adrp	x8, _AR_WOW_LENGTH_MAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_WOW_LENGTH_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w21, w8, w21
	mov	x0, x20
	bl	_AR_WOW_LEN1_SHIFT
	lsl	w21, w21, w0
	mov	x0, x20
	bl	_AR_WOW_LENGTH1_MASK
	mov	x3, x0
Lloh19:
	adrp	x8, _AR_WOW_LENGTH1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_WOW_LENGTH1@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
	cmp	w20, #7
	b.hi	LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, _AR_WOW_LENGTH_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR_WOW_LENGTH_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w21, w8, w21
	mov	x0, x20
	bl	_AR_WOW_LEN2_SHIFT
	lsl	w21, w21, w0
	mov	x0, x20
	bl	_AR_WOW_LENGTH2_MASK
	mov	x3, x0
Lloh24:
	adrp	x8, _AR_WOW_LENGTH2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR_WOW_LENGTH2@GOTPAGEOFF]
	b	LBB0_19
LBB0_15:
	cmp	w20, #11
	b.hi	LBB0_17
; %bb.16:
Lloh26:
	adrp	x8, _AR_WOW_LENGTH_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AR_WOW_LENGTH_MAX@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w21, w8, w21
	mov	x0, x20
	bl	_AR_WOW_LEN3_SHIFT
	lsl	w21, w21, w0
	mov	x0, x20
	bl	_AR_WOW_LENGTH3_MASK
	mov	x3, x0
Lloh29:
	adrp	x8, _AR_WOW_LENGTH3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR_WOW_LENGTH3@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
Lloh31:
	adrp	x8, _MAX_NUM_PATTERN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAX_NUM_PATTERN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_20
; %bb.18:
Lloh34:
	adrp	x8, _AR_WOW_LENGTH_MAX@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR_WOW_LENGTH_MAX@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	and	w21, w8, w21
	mov	x0, x20
	bl	_AR_WOW_LEN4_SHIFT
	lsl	w21, w21, w0
	mov	x0, x20
	bl	_AR_WOW_LENGTH4_MASK
	mov	x3, x0
Lloh37:
	adrp	x8, _AR_WOW_LENGTH4@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AR_WOW_LENGTH4@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_RMW
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_MAX_NUM_PATTERN_LEGACY,4,2     ; @MAX_NUM_PATTERN_LEGACY
	.comm	_AR_WOW_PATTERN,4,2             ; @AR_WOW_PATTERN
	.comm	_AR_MAC_PCU_WOW4,4,2            ; @AR_MAC_PCU_WOW4
	.comm	_MAX_PATTERN_SIZE,4,2           ; @MAX_PATTERN_SIZE
	.comm	_MAX_PATTERN_MASK_SIZE,4,2      ; @MAX_PATTERN_MASK_SIZE
	.comm	_AR_WOW_PAT_FOUND_SHIFT,4,2     ; @AR_WOW_PAT_FOUND_SHIFT
	.comm	_AR_WOW_LENGTH_MAX,4,2          ; @AR_WOW_LENGTH_MAX
	.comm	_AR_WOW_LENGTH1,4,2             ; @AR_WOW_LENGTH1
	.comm	_AR_WOW_LENGTH2,4,2             ; @AR_WOW_LENGTH2
	.comm	_AR_WOW_LENGTH3,4,2             ; @AR_WOW_LENGTH3
	.comm	_MAX_NUM_PATTERN,4,2            ; @MAX_NUM_PATTERN
	.comm	_AR_WOW_LENGTH4,4,2             ; @AR_WOW_LENGTH4
.subsections_via_symbols
