	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _fetch_buffer
__fetch_buffer:                         ## @_fetch_buffer
	.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	%rdi, %r14
	incl	8(%rdi)
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rax
	movq	%rax, (%r14)
	cmpq	%r15, (%rbx)
	jge	LBB0_5
## %bb.2:
	movq	32(%rbx), %rdi
	movq	%r15, %rsi
	callq	__ogg_realloc
	jmp	LBB0_4
LBB0_3:
	movl	$40, %edi
	callq	__ogg_malloc
	movq	%rax, %rbx
	cmpq	$17, %r15
	movl	$16, %edi
	cmovgeq	%r15, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	__ogg_malloc
LBB0_4:
	movq	%rax, 32(%rbx)
	movq	%r15, (%rbx)
LBB0_5:
	movl	$1, 8(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__fetch_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _fetch_buffer
__fetch_buffer:                         ; @_fetch_buffer
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	add	w8, w8, #1
	str	w8, [x0, #8]
	ldr	x21, [x0]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x21, #24]
	str	x8, [x19]
	ldr	x8, [x21]
	cmp	x8, x20
	b.ge	LBB0_5
; %bb.2:
	ldr	x0, [x21, #32]
	mov	x1, x20
	bl	__ogg_realloc
	b	LBB0_4
LBB0_3:
	mov	w0, #40
	bl	__ogg_malloc
	mov	x21, x0
	mov	w8, #16
	cmp	x20, #16
	csel	x0, x20, x8, gt
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	__ogg_malloc
LBB0_4:
	str	x0, [x21, #32]
	str	x20, [x21]
LBB0_5:
	mov	w8, #1
	str	w8, [x21, #8]
	str	x19, [x21, #16]
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__fetch_buffer
.subsections_via_symbols
