	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_buf                    ## -- Begin function encrypt_buf
	.p2align	4, 0x90
_encrypt_buf:                           ## @encrypt_buf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	48(%rdi), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	1(%rax), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movb	(%r12), %al
	leaq	(%r14,%rbx), %r13
	addq	$2, %r13
	movb	%al, 1(%r14,%rbx)
	movq	40(%r12), %rdi
	callq	_strlen
	movq	%rax, %r15
	incq	%r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_put_be32
	leaq	(%r14,%rbx), %r13
	addq	$10, %r13
	movq	40(%r12), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movzbl	(%r12), %edi
	movl	24(%r12), %r9d
	movl	28(%r12), %esi
	movq	%r13, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	_bcrypt_buf
	movl	$-1, %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movzbl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r13), %rbx
	movq	32(%r12), %rdi
	callq	_strlen
	movq	%rax, %r14
	incq	%r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_put_be32
	leaq	(%r15,%r13), %rbx
	addq	$8, %rbx
	movq	32(%r12), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_memcpy
	movl	24(%r12), %r9d
	movl	28(%r12), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_bcrypt_buf
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	$-1, %ecx
	jmp	LBB0_5
LBB0_3:
	movzbl	(%rbx), %r15d
	addq	%rbx, %r14
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_put_be32
	movl	28(%r12), %esi
	movq	8(%r12), %r8
	movl	24(%r12), %r9d
	movl	%r15d, %edi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rbx, %rcx
	callq	_bcrypt_buf
	testl	%eax, %eax
	movl	$-1, %ecx
	jne	LBB0_5
## %bb.4:
	addq	8(%r12), %rbx
	movq	16(%r12), %rsi
	movq	%rbx, %rdi
	callq	_put_be32
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_buf                    ; -- Begin function encrypt_buf
	.p2align	2
_encrypt_buf:                           ; @encrypt_buf
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #48]
	mov	x0, x22
	bl	_strlen
	add	x23, x0, #1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	add	x21, x21, x23
	ldrb	w8, [x20]
	add	x23, x21, #1
	strb	w8, [x21], #9
	ldr	x0, [x20, #40]
	bl	_strlen
	add	x22, x0, #1
	mov	x0, x23
	mov	x1, x22
	bl	_put_be32
	ldr	x1, [x20, #40]
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldrb	w0, [x20]
	ldp	w5, w1, [x20, #24]
	mov	x2, x21
	mov	x3, x21
	mov	x4, x22
	bl	_bcrypt_buf
	cbnz	w0, LBB0_3
; %bb.1:
	ldrb	w23, [x21]
	add	x22, x21, x22
	ldr	x0, [x20, #32]
	bl	_strlen
	add	x21, x0, #1
	mov	x0, x22
	mov	x1, x21
	bl	_put_be32
	add	x22, x22, #8
	ldr	x1, [x20, #32]
	mov	x0, x22
	mov	x2, x21
	bl	_memcpy
	ldp	w5, w1, [x20, #24]
	mov	x0, x23
	mov	x2, x22
	mov	x3, x22
	mov	x4, x21
	bl	_bcrypt_buf
	cbnz	w0, LBB0_3
; %bb.2:
	ldrb	w23, [x22]
	add	x0, x22, x21
	ldr	x1, [x20, #8]
	bl	_put_be32
	ldr	x4, [x20, #8]
	ldp	w5, w1, [x20, #24]
	mov	x0, x23
	mov	x2, x19
	mov	x3, x19
	bl	_bcrypt_buf
	cbz	w0, LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
LBB0_5:
	ldp	x8, x1, [x20, #8]
	add	x0, x19, x8
	bl	_put_be32
	mov	w0, #0
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
