	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_wow_create_keep_alive_pattern
_ath9k_wow_create_keep_alive_pattern:   ## @ath9k_wow_create_keep_alive_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_ath9k_hw_common
	movq	%rax, %r12
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rbx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movl	$0, -64(%rbp)
	movq	_KAL_NUM_DATA_WORDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movl	4(%r12), %esi
	movq	%r15, -144(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_memcpy
	movq	_KAL_FRAME_LEN@GOTPCREL(%rip), %rax
	movq	_MAX_RATE_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	shll	$16, %ebx
	orl	(%rax), %ebx
	movl	%ebx, -112(%rbp)
	movl	$0, -108(%rbp)
	movl	$0, -96(%rbp)
	movl	(%r14), %eax
	shll	$2, %eax
	movl	%eax, -84(%rbp)
	movl	$983040, -104(%rbp)             ## imm = 0xF0000
	movl	4(%r14), %edi
	callq	_IS_CHAN_2GHZ
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	shll	$4, %ecx
	orl	$11, %ecx
	movl	%ecx, -100(%rbp)
	movq	_KAL_NUM_DESC_WORDS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_4
## %bb.1:
	movq	_AR_WOW_KA_DESC_WORD2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	cmpl	$2, (%r12)
	jl	LBB0_4
## %bb.2:
	movl	$1, %ebx
	movl	$4, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-112(%rbp,%rbx,4), %edx
	movl	(%r13), %esi
	addl	%r15d, %esi
	movq	%r14, %rdi
	callq	_REG_WRITE
	incq	%rbx
	movslq	(%r12), %rax
	addl	$4, %r15d
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_KAL_FRAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movq	_KAL_FRAME_SUB_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$4, %ecx
	orl	%eax, %ecx
	movq	_KAL_TO_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	movq	_KAL_DURATION_ID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$16, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movl	%edx, (%r8)
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	12(%rdi), %ecx
	shll	$24, %ecx
	movl	4(%rdi), %eax
	movl	8(%rdi), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	(%rdi), %eax
	movl	%eax, 4(%r8)
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$24, %edx
	shll	$16, %ecx
	movl	20(%rdi), %esi
	shll	$8, %esi
	orl	16(%rdi), %esi
	orl	%edx, %ecx
	orl	%esi, %ecx
	movl	20(%rbx), %edx
	shll	$24, %edx
	movl	16(%rbx), %edi
	shll	$16, %edi
	orl	%edx, %edi
	movl	12(%rbx), %edx
	shll	$8, %edx
	orl	%edi, %edx
	orl	8(%rbx), %edx
	movl	%ecx, 8(%r8)
	movl	%edx, 12(%r8)
	movl	%eax, 16(%r8)
	movl	%esi, 20(%r8)
	movq	%r14, %rdi
	callq	_AR_SREV_9462_20_OR_LATER
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_AR_WOW_KA_DESC_WORD2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$48, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_REG_WRITE
	movl	$13, %edi
LBB0_8:
	movq	_KAL_NUM_DATA_WORDS@GOTPCREL(%rip), %r13
	callq	_AR_WOW_TXBUF
	cmpl	$0, (%r13)
	movq	-128(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_12
## %bb.9:
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	-116(%rbp), %edx                ## 4-byte Reload
	callq	_REG_WRITE
	cmpl	$2, (%r13)
	jl	LBB0_12
## %bb.10:
	addl	$4, %r15d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_REG_WRITE
	incq	%rbx
	movslq	(%r13), %rax
	addl	$4, %r15d
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$12, %edi
	jmp	LBB0_8
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_KAL_NUM_DATA_WORDS,4,2         ## @KAL_NUM_DATA_WORDS
	.comm	_KAL_FRAME_LEN,4,2              ## @KAL_FRAME_LEN
	.comm	_MAX_RATE_POWER,4,2             ## @MAX_RATE_POWER
	.comm	_KAL_NUM_DESC_WORDS,4,2         ## @KAL_NUM_DESC_WORDS
	.comm	_AR_WOW_KA_DESC_WORD2,4,2       ## @AR_WOW_KA_DESC_WORD2
	.comm	_KAL_FRAME_TYPE,4,2             ## @KAL_FRAME_TYPE
	.comm	_KAL_FRAME_SUB_TYPE,4,2         ## @KAL_FRAME_SUB_TYPE
	.comm	_KAL_TO_DS,4,2                  ## @KAL_TO_DS
	.comm	_KAL_DURATION_ID,4,2            ## @KAL_DURATION_ID
	.no_dead_strip	_ath9k_wow_create_keep_alive_pattern
.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 ath9k_wow_create_keep_alive_pattern
lCPI0_0:
	.long	0                               ; 0x0
	.long	983040                          ; 0xf0000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ath9k_wow_create_keep_alive_pattern:   ; @ath9k_wow_create_keep_alive_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
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_ath9k_hw_common
	mov	x22, x0
Lloh3:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x25]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	movi.2d	v0, #0000000000000000
	stur	q0, [x29, #-104]
	stur	q0, [x29, #-120]
Lloh9:
	adrp	x23, _KAL_NUM_DATA_WORDS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _KAL_NUM_DATA_WORDS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	w1, [x0, #4]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_memcpy
Lloh13:
	adrp	x8, _KAL_FRAME_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KAL_FRAME_LEN@GOTPAGEOFF]
Lloh15:
	adrp	x9, _MAX_RATE_POWER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX_RATE_POWER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	orr	w22, w8, w9, lsl #16
	stur	w22, [x29, #-140]
	ldp	w8, w0, [x19]
	lsl	w8, w8, #2
	stur	wzr, [x29, #-124]
	stur	w8, [x29, #-112]
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x29, #-136]
	bl	_IS_CHAN_2GHZ
	cmp	x0, #0
	mov	w8, #27
	mov	w9, #11
	csel	w8, w9, w8, eq
	stur	w8, [x29, #-128]
Lloh21:
	adrp	x26, _KAL_NUM_DESC_WORDS@GOTPAGE
Lloh22:
	ldr	x26, [x26, _KAL_NUM_DESC_WORDS@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh23:
	adrp	x25, _AR_WOW_KA_DESC_WORD2@GOTPAGE
Lloh24:
	ldr	x25, [x25, _AR_WOW_KA_DESC_WORD2@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WRITE
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w22, #4
	mov	w27, #1
	sub	x28, x29, #140
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28, x27, lsl #2]
	ldr	w8, [x25]
	add	w1, w22, w8
	mov	x0, x19
	bl	_REG_WRITE
	add	x27, x27, #1
	ldrsw	x8, [x26]
	add	w22, w22, #4
	cmp	x27, x8
	b.lt	LBB0_3
LBB0_4:
Lloh25:
	adrp	x8, _KAL_FRAME_TYPE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KAL_FRAME_TYPE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _KAL_FRAME_SUB_TYPE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _KAL_FRAME_SUB_TYPE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	lsl	w9, w9, #4
Lloh31:
	adrp	x10, _KAL_TO_DS@GOTPAGE
Lloh32:
	ldr	x10, [x10, _KAL_TO_DS@GOTPAGEOFF]
	orr	w8, w9, w8, lsl #2
Lloh33:
	ldr	w9, [x10]
	orr	w8, w8, w9, lsl #8
Lloh34:
	adrp	x9, _KAL_DURATION_ID@GOTPAGE
Lloh35:
	ldr	x9, [x9, _KAL_DURATION_ID@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w22, w8, w9, lsl #16
	ldp	w9, w8, [x21, #8]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w10, w9, [x21]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	stp	w22, w8, [x24]
	ldp	w10, w9, [x20]
	ldp	w12, w11, [x21, #16]
	orr	w11, w12, w11, lsl #8
	orr	w9, w11, w9, lsl #24
	orr	w9, w9, w10, lsl #16
	ldp	w12, w10, [x20, #16]
	lsl	w12, w12, #16
	orr	w10, w12, w10, lsl #24
	ldp	w13, w12, [x20, #8]
	orr	w10, w10, w12, lsl #8
	orr	w10, w10, w13
	stp	w9, w10, [x24, #8]
	stp	w8, w11, [x24, #16]
	mov	x0, x19
	bl	_AR_SREV_9462_20_OR_LATER
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbz	x0, LBB0_13
LBB0_6:
	ldr	w8, [x25]
	add	w1, w8, #48
	mov	x0, x19
	mov	w2, #0
	bl	_REG_WRITE
	mov	w0, #13
LBB0_7:
	bl	_AR_WOW_TXBUF
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_REG_WRITE
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.9:
	add	w20, w20, #4
	mov	w21, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24, x21, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_WRITE
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	w20, w20, #4
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	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_13:
	mov	w0, #12
	b	LBB0_7
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_KAL_NUM_DATA_WORDS,4,2         ; @KAL_NUM_DATA_WORDS
	.comm	_KAL_FRAME_LEN,4,2              ; @KAL_FRAME_LEN
	.comm	_MAX_RATE_POWER,4,2             ; @MAX_RATE_POWER
	.comm	_KAL_NUM_DESC_WORDS,4,2         ; @KAL_NUM_DESC_WORDS
	.comm	_AR_WOW_KA_DESC_WORD2,4,2       ; @AR_WOW_KA_DESC_WORD2
	.comm	_KAL_FRAME_TYPE,4,2             ; @KAL_FRAME_TYPE
	.comm	_KAL_FRAME_SUB_TYPE,4,2         ; @KAL_FRAME_SUB_TYPE
	.comm	_KAL_TO_DS,4,2                  ; @KAL_TO_DS
	.comm	_KAL_DURATION_ID,4,2            ; @KAL_DURATION_ID
	.no_dead_strip	_ath9k_wow_create_keep_alive_pattern
.subsections_via_symbols
