	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ## -- Begin function crypto_cipher_init
	.p2align	4, 0x90
_crypto_cipher_init:                    ## @crypto_cipher_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_9
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	leaq	L_.str(%rip), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	%rax, %rbx
	movl	$1, (%rax)
	cmpq	$5, %r14
	jae	LBB0_8
## %bb.12:
	movq	%r14, 16(%rbx)
	movl	24(%rbx), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	callq	_find_cipher
	movl	%eax, %r13d
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %r9
	addq	$8, %r9
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_cbc_start
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_error_to_string
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_8:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aes"

L_.str.1:                               ## @.str.1
	.asciz	"3des"

L_.str.2:                               ## @.str.2
	.asciz	"des"

L_.str.3:                               ## @.str.3
	.asciz	"rc2"

	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"LibTomCrypt: Cipher start failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_init             ; -- Begin function crypto_cipher_init
	.p2align	2
_crypto_cipher_init:                    ; @crypto_cipher_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	cmp	x20, #5
	b.hs	LBB0_11
; %bb.4:
	str	x20, [x19, #16]
	ldr	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	b	LBB0_13
LBB0_5:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_find_cipher
	mov	x23, x0
	mov	w0, #32
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.9:
	add	x5, x19, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	bl	_cbc_start
Lloh10:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.10:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	bl	_error_to_string
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
LBB0_11:
	mov	x0, x19
	bl	_os_free
LBB0_12:
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aes"

l_.str.1:                               ; @.str.1
	.asciz	"3des"

l_.str.2:                               ; @.str.2
	.asciz	"des"

l_.str.3:                               ; @.str.3
	.asciz	"rc2"

	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"LibTomCrypt: Cipher start failed: %s"

.subsections_via_symbols
