	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_wep_init             ## -- Begin function ieee80211_wep_init
	.p2align	4, 0x90
_ieee80211_wep_init:                    ## @ieee80211_wep_init
	.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	%rdi, %r15
	addq	$16, %rdi
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_random_bytes
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_crypto_alloc_cipher
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	8(%r15), %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, (%r15)
	jmp	LBB0_4
LBB0_2:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_crypto_alloc_cipher
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%r15), %rdi
	callq	_crypto_free_cipher
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, 8(%r15)
	movq	%r15, %r14
LBB0_4:
	movq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WEP_IV_LEN,4,2                 ## @WEP_IV_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arc4"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ## @CRYPTO_ALG_ASYNC
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_wep_init             ; -- Begin function ieee80211_wep_init
	.p2align	2
_ieee80211_wep_init:                    ; @ieee80211_wep_init
	.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, x0
	add	x0, x0, #16
Lloh0:
	adrp	x8, _WEP_IV_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WEP_IV_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_random_bytes
Lloh3:
	adrp	x21, _CRYPTO_ALG_ASYNC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CRYPTO_ALG_ASYNC@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_crypto_alloc_cipher
	mov	x20, x19
	str	x0, [x20, #8]!
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x19]
	b	LBB0_4
LBB0_2:
	ldr	w2, [x21]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_crypto_alloc_cipher
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_crypto_free_cipher
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x19, #8]
	mov	x20, x19
LBB0_4:
	ldr	x0, [x20]
	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
	b	_PTR_ERR
LBB0_5:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WEP_IV_LEN,4,2                 ; @WEP_IV_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arc4"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ; @CRYPTO_ALG_ASYNC
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
