	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tkip_setiv
_tkip_setiv:                            ## @tkip_setiv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_ieee80211_crypto_get_keyid
	shll	$6, %eax
	movl	(%rbx), %ecx
	incl	%ecx
	movl	%ecx, (%rbx)
	sarl	$8, %ecx
	movl	%ecx, (%r14)
	andl	$95, %ecx
	orl	$32, %ecx
	movl	%ecx, 4(%r14)
	movl	(%rbx), %ecx
	movl	%ecx, 8(%r14)
	movq	_IEEE80211_WEP_EXTIV@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 12(%r14)
	movswl	2(%rbx), %eax
	movl	%eax, 16(%r14)
	movsbl	3(%rbx), %eax
	movl	%eax, 20(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_EXTIV,4,2        ## @IEEE80211_WEP_EXTIV
	.no_dead_strip	_tkip_setiv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tkip_setiv
_tkip_setiv:                            ; @tkip_setiv
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	mov	x1, x20
	bl	_ieee80211_crypto_get_keyid
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	asr	w8, w8, #8
	and	w9, w8, #0x7f
	orr	w9, w9, #0x20
	stp	w8, w9, [x19]
Lloh0:
	adrp	x8, _IEEE80211_WEP_EXTIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_WEP_EXTIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0, lsl #6
	ldr	w9, [x20]
	stp	w9, w8, [x19, #8]
	ldrsh	w8, [x20, #2]
	str	w8, [x19, #16]
	ldrsb	w8, [x20, #3]
	str	w8, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_EXTIV,4,2        ; @IEEE80211_WEP_EXTIV
	.no_dead_strip	_tkip_setiv
.subsections_via_symbols
