	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tkip_mixing_phase1
_tkip_mixing_phase1:                    ## @tkip_mixing_phase1
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %r14
	movzwl	%cx, %eax
	movl	%eax, (%r14)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	sarl	$16, %eax
	movl	%eax, 4(%r14)
	movq	%rdx, %rdi
	callq	_get_unaligned_le16
	movl	%eax, 8(%r14)
	leaq	8(%rbx), %rdi
	callq	_get_unaligned_le16
	movl	%eax, 12(%r14)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_get_unaligned_le16
	movl	%eax, %ebx
	movl	%eax, 16(%r14)
	movq	_PHASE1_LOOP_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	32(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$48, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r13d
	andl	$2, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_get_unaligned_le16
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_tkipS
	movq	%rax, %rbx
	addl	(%r14), %ebx
	movl	%ebx, (%r14)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rdi
	callq	_get_unaligned_le16
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_tkipS
	movq	%rax, %rbx
	addl	4(%r14), %ebx
	movl	%ebx, 4(%r14)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rdi
	callq	_get_unaligned_le16
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_tkipS
	movq	%rax, %rbx
	addl	8(%r14), %ebx
	movl	%ebx, 8(%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rdi
	callq	_get_unaligned_le16
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_tkipS
	movq	%rax, %rbx
	addl	12(%r14), %ebx
	movl	%ebx, 12(%r14)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_unaligned_le16
	xorl	%eax, %ebx
	movl	%ebx, %edi
	callq	_tkipS
	movl	16(%r14), %ecx
	leal	(%r15,%rax), %ebx
	addl	%ecx, %ebx
	addl	%eax, %ecx
	addl	%r15d, %ecx
	movl	%ecx, 16(%r14)
	movq	_PHASE1_LOOP_COUNT@GOTPCREL(%rip), %rax
	incl	%r15d
	addl	$2, %r12d
	cmpl	(%rax), %r15d
	jl	LBB0_2
LBB0_3:
	movq	_TKIP_STATE_PHASE1_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rcx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHASE1_LOOP_COUNT,4,2          ## @PHASE1_LOOP_COUNT
	.comm	_TKIP_STATE_PHASE1_DONE,4,2     ## @TKIP_STATE_PHASE1_DONE
	.no_dead_strip	_tkip_mixing_phase1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tkip_mixing_phase1
_tkip_mixing_phase1:                    ; @tkip_mixing_phase1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x24, [x1]
	and	w8, w3, #0xffff
	str	w3, [sp, #20]                   ; 4-byte Folded Spill
	asr	w9, w3, #16
	stp	w8, w9, [x24]
	mov	x0, x2
	bl	_get_unaligned_le16
	str	w0, [x24, #8]
	add	x0, x22, #8
	bl	_get_unaligned_le16
	str	w0, [x24, #12]
	add	x0, x22, #16
	bl	_get_unaligned_le16
	str	w0, [x24, #16]
Lloh0:
	adrp	x21, _PHASE1_LOOP_COUNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHASE1_LOOP_COUNT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, x0
	mov	w26, #0
	mov	w27, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x28, x8, #16
	add	x19, x8, #32
	add	x20, x8, #48
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w26, #0x2
	lsl	x25, x8, #2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x22, x8, x25
	mov	x0, x22
	bl	_get_unaligned_le16
	eor	w0, w0, w23
	bl	_tkipS
	ldr	w8, [x24]
	add	w23, w8, w0
	str	w23, [x24]
	add	x0, x28, x25
	bl	_get_unaligned_le16
	eor	w0, w0, w23
	bl	_tkipS
	ldr	w8, [x24, #4]
	add	w23, w8, w0
	str	w23, [x24, #4]
	add	x0, x19, x25
	bl	_get_unaligned_le16
	eor	w0, w0, w23
	bl	_tkipS
	ldr	w8, [x24, #8]
	add	w23, w8, w0
	str	w23, [x24, #8]
	add	x0, x20, x25
	bl	_get_unaligned_le16
	eor	w0, w0, w23
	bl	_tkipS
	ldr	w8, [x24, #12]
	add	w23, w8, w0
	str	w23, [x24, #12]
	mov	x0, x22
	bl	_get_unaligned_le16
	eor	w0, w0, w23
	bl	_tkipS
	ldr	w8, [x24, #16]
	add	w9, w27, w0
	add	w23, w9, w8
	add	w8, w8, w0
	add	w8, w27, w8
	str	w8, [x24, #16]
	add	w27, w27, #1
	ldr	w8, [x21]
	add	w26, w26, #2
	cmp	w27, w8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _TKIP_STATE_PHASE1_DONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TKIP_STATE_PHASE1_DONE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	stp	w8, w10, [x9, #8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHASE1_LOOP_COUNT,4,2          ; @PHASE1_LOOP_COUNT
	.comm	_TKIP_STATE_PHASE1_DONE,4,2     ; @TKIP_STATE_PHASE1_DONE
	.no_dead_strip	_tkip_mixing_phase1
.subsections_via_symbols
