	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_crypt
_buffer_crypt:                          ## @buffer_crypt
	.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
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
	jmp	LBB0_4
LBB0_1:
	movq	%rax, %r14
LBB0_4:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	testq	%r12, %r12
	je	LBB0_7
## %bb.5:
	movq	%r14, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$2147483632, %r12               ## imm = 0x7FFFFFF0
	movl	$2147483632, %r14d              ## imm = 0x7FFFFFF0
	cmovlq	%r12, %r14
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	*(%rdi)
	movslq	%r14d, %rax
	addq	%rax, %rbx
	addq	%rax, %r15
	subq	%rax, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_buffer_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_crypt
_buffer_crypt:                          ; @buffer_crypt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	lsr	x9, x21, #63
	eor	w9, w9, #0x1
	cmp	x8, #0
	csel	w0, wzr, w9, eq
LBB0_2:
	bl	_assert
	cbz	x21, LBB0_5
; %bb.3:
	mov	w25, #2147483632
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x21, x25
	csel	x24, x21, x25, lt
	ldr	x0, [x23]
	ldr	x8, [x0]
	mov	x1, x22
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	blr	x8
	sxtw	x8, w24
	add	x22, x22, x8
	add	x19, x8, x19
	subs	x21, x21, x8
	b.ne	LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_buffer_crypt
.subsections_via_symbols
