	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjbuf                         ## -- Begin function adjbuf
	.p2align	4, 0x90
_adjbuf:                                ## @adjbuf
	.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
	movl	$1, %r14d
	cmpl	%edx, (%rsi)
	jge	LBB0_13
## %bb.1:
	movq	%r8, %r12
	movl	%ecx, %ebx
	movl	%edx, %ecx
	movq	%rsi, %r13
	movq	%rdi, %r15
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	movl	%ecx, %eax
	cltd
	idivl	%ebx
	jmp	LBB0_4
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	testq	%r12, %r12
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movl	(%r12), %eax
	movq	(%r15), %rdi
	subl	%edi, %eax
	cltq
	jmp	LBB0_7
LBB0_5:
	movq	(%r15), %rdi
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	subl	%edx, %ebx
	testl	%edx, %edx
	cmovel	%edx, %ebx
	addl	%ecx, %ebx
	movl	%ebx, %esi
	callq	_realloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_dprintf
	testq	%r14, %r14
	je	LBB0_8
## %bb.10:
	movq	%r14, (%r15)
	movl	%ebx, (%r13)
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, (%r12)
LBB0_12:
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_8:
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_FATAL
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"out of memory in %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adjbuf                         ; -- Begin function adjbuf
	.p2align	2
_adjbuf:                                ; @adjbuf
	.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
	ldr	w8, [x1]
	cmp	w8, w2
	b.ge	LBB0_9
; %bb.1:
	mov	x20, x5
	mov	x19, x4
	mov	x21, x1
	mov	x22, x0
	cbz	w3, LBB0_4
; %bb.2:
	sdiv	w8, w2, w3
	msub	w8, w8, w3, w2
	cbz	x19, LBB0_5
LBB0_3:
	ldr	w9, [x19]
	ldr	x0, [x22]
	sub	w9, w9, w0
	sxtw	x25, w9
	b	LBB0_6
LBB0_4:
	mov	w8, #0
	cbnz	x19, LBB0_3
LBB0_5:
	mov	x25, #0
	ldr	x0, [x22]
LBB0_6:
	sub	w9, w3, w8
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	add	w23, w8, w2
	mov	x1, x23
	bl	_realloc
	mov	x24, x0
	bl	_dprintf
	cbz	x24, LBB0_11
; %bb.7:
	str	x24, [x22]
	str	w23, [x21]
	cbz	x19, LBB0_9
; %bb.8:
	add	x8, x24, x25
	str	x8, [x19]
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
LBB0_11:
	cbz	x20, LBB0_13
; %bb.12:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_FATAL
LBB0_13:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"out of memory in %s"

.subsections_via_symbols
