	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jbuffer_grow
_jbuffer_grow:                          ## @jbuffer_grow
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rbx), %rax
	movl	(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpl	%edx, %esi
	jge	LBB0_6
LBB0_3:
	leaq	8(%rbx), %r14
	addl	%esi, %esi
	movl	%edx, %edi
	callq	_FFMAX
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_J4A_DeleteGlobalRef__p
	movl	$0, (%rbx)
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_J4A_NewByteArray__asGlobalRef__catchAll
	movq	%rax, 8(%rbx)
	movq	%r12, %rdi
	callq	_J4A_ExceptionCheck__catchAll
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	movq	$0, (%r14)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movl	%r15d, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jbuffer_grow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jbuffer_grow
_jbuffer_grow:                          ; @jbuffer_grow
	.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
	ldr	x22, [x1]
	cbz	x22, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x19, x22
	ldr	x0, [x19, #8]!
	ldr	w8, [x22]
	cmp	x0, #0
	ccmp	w8, w2, #8, ne
	b.ge	LBB0_5
; %bb.2:
	lsl	w1, w8, #1
	mov	x0, x2
	bl	_FFMAX
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_J4A_DeleteGlobalRef__p
	str	wzr, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_J4A_NewByteArray__asGlobalRef__catchAll
	str	x0, [x22, #8]
	mov	x0, x20
	bl	_J4A_ExceptionCheck__catchAll
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, #0
	str	xzr, [x19]
	b	LBB0_5
LBB0_4:
	mov	x0, #0
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
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.7:
	str	w21, [x22]
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jbuffer_grow
.subsections_via_symbols
