	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_encrypt          ## -- Begin function crypto_cipher_encrypt
	.p2align	4, 0x90
_crypto_cipher_encrypt:                 ## @crypto_cipher_encrypt
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_4
## %bb.1:
	cmpq	%r15, %rsi
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_os_memcpy
LBB0_3:
	movl	20(%rbx), %edi
	movl	16(%rbx), %esi
	movq	8(%rbx), %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_rc4_skip
	addq	%r14, 8(%rbx)
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_4:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_cbc_encrypt
	movq	_CRYPT_OK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_6
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_error_to_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movl	$-1, %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LibTomCrypt: CBC encryption failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_cipher_encrypt          ; -- Begin function crypto_cipher_encrypt
	.p2align	2
_crypto_cipher_encrypt:                 ; @crypto_cipher_encrypt
	.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, x3
	mov	x21, x2
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	x1, x21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x2, x19
	bl	_os_memcpy
LBB0_3:
	ldp	w1, w0, [x20, #16]
	ldr	x2, [x20, #8]
	mov	x3, x21
	mov	x4, x19
	bl	_rc4_skip
	mov	w0, #0
	ldr	x8, [x20, #8]
	add	x8, x8, x19
	str	x8, [x20, #8]
	b	LBB0_7
LBB0_4:
	mov	x0, x1
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_cbc_encrypt
Lloh0:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_error_to_string
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	w0, #-1
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LibTomCrypt: CBC encryption failed: %s"

.subsections_via_symbols
