	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wep_setiv
_wep_setiv:                             ## @wep_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, %rbx
	movq	%rdi, %rsi
	movq	(%rdi), %r14
	movq	8(%r14), %rdi
	callq	_ieee80211_crypto_get_keyid
	movl	(%r14), %ecx
	movl	%ecx, %edx
	notl	%edx
	testl	$65280, %edx                    ## imm = 0xFF00
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	addl	$-3, %edx
	leal	256(%rcx), %esi
	cmpl	$13, %edx
	cmovael	%ecx, %esi
	movl	%esi, %ecx
LBB0_2:
	shll	$6, %eax
	leal	1(%rcx), %edx
	movl	%edx, (%r14)
	movl	%ecx, (%rbx)
	movl	%ecx, %edx
	sarl	$8, %edx
	movl	%edx, 4(%rbx)
	sarl	$16, %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 12(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wep_setiv
.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 wep_setiv
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wep_setiv:                             ; @wep_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	x1, x0
	ldr	x20, [x0]
	ldr	x0, [x20, #8]
	bl	_ieee80211_crypto_get_keyid
	ldr	w8, [x20]
	mvn	w9, w8
	ubfx	w10, w8, #16, #8
	sub	w10, w10, #3
	add	w11, w8, #256
	cmp	w10, #13
	csel	w10, w11, w8, lo
	tst	w9, #0xff00
	csel	w8, w8, w10, ne
	lsl	w9, w0, #6
	add	w10, w8, #1
	str	w10, [x20]
	dup.2s	v0, w8
	str	w8, [x19]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	sshl.2s	v0, v0, v1
	stur	d0, [x19, #4]
	str	w9, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wep_setiv
.subsections_via_symbols
