	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chdstream_get_pregap           ## -- Begin function chdstream_get_pregap
	.p2align	4, 0x90
_chdstream_get_pregap:                  ## @chdstream_get_pregap
	.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	%rdi, %r15
	movl	8(%rdi), %edi
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	callq	_chdstream_get_meta
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	$1, %r13d
	xorl	%r14d, %r14d
	leaq	-64(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%r15)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	-56(%rbp), %rbx
	addq	-48(%rbp), %rbx
	movl	8(%r15), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_chdstream_get_meta
	incq	%r13
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	-64(%rbp), %r14
LBB0_5:
	movq	%r14, %rax
	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	_chdstream_get_pregap           ; -- Begin function chdstream_get_pregap
	.p2align	2
_chdstream_get_pregap:                  ; @chdstream_get_pregap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	w0, [x0, #8]
	add	x2, sp, #8
	mov	x1, #0
	bl	_chdstream_get_meta
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, #0
	mov	w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [sp, #16]
	add	x8, x8, x21
	add	x21, x8, x9
	ldr	w0, [x19, #8]
	add	x2, sp, #8
	mov	x1, x20
	bl	_chdstream_get_meta
	add	x20, x20, #1
	cbnz	x0, LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x0, [sp, #8]
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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
