	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lib80211_tkip_get_key
_lib80211_tkip_get_key:                 ## @lib80211_tkip_get_key
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	_TKIP_KEY_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$-1, %eax
	cmpl	%esi, %edx
	jg	LBB0_6
## %bb.1:
	movq	%rcx, %rbx
	cmpl	$0, 16(%rcx)
	je	LBB0_2
## %bb.3:
	movl	12(%rbx), %esi
	callq	_memcpy
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	%eax, (%r14)
	shrq	$8, %rax
	movl	%eax, 4(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	8(%rbx), %eax
	sarl	$8, %eax
	movl	%eax, 12(%r14)
	movswl	10(%rbx), %eax
	movl	%eax, 16(%r14)
	movsbl	11(%rbx), %eax
	movl	%eax, 20(%r14)
LBB0_5:
	movl	(%r15), %eax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TKIP_KEY_LEN,4,2               ## @TKIP_KEY_LEN
	.no_dead_strip	_lib80211_tkip_get_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lib80211_tkip_get_key
_lib80211_tkip_get_key:                 ; @lib80211_tkip_get_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
Lloh0:
	adrp	x21, _TKIP_KEY_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TKIP_KEY_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	cmp	w2, w1
	b.le	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_7
LBB0_2:
	mov	x20, x3
	ldr	w8, [x3, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w1, [x20, #12]
	bl	_memcpy
	cbz	x19, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	lsr	x9, x8, #8
	stp	w8, w9, [x19]
	ldr	w8, [x20, #8]
	str	w8, [x19, #8]
	ldr	w8, [x20, #8]
	asr	w8, w8, #8
	str	w8, [x19, #12]
	ldrsh	w8, [x20, #10]
	str	w8, [x19, #16]
	ldrsb	w8, [x20, #11]
	str	w8, [x19, #20]
LBB0_5:
	ldr	w0, [x21]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TKIP_KEY_LEN,4,2               ; @TKIP_KEY_LEN
	.no_dead_strip	_lib80211_tkip_get_key
.subsections_via_symbols
