	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_advance_skip_read_ptr          ## -- Begin function advance_skip_read_ptr
	.p2align	4, 0x90
_advance_skip_read_ptr:                 ## @advance_skip_read_ptr
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rdi, %r14
	cmpq	8(%rdi), %rax
	jne	LBB0_2
## %bb.1:
	movq	48(%r15), %r14
LBB0_2:
	xorl	%eax, %eax
	testl	%r12d, %r12d
	jle	LBB0_14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	16(%r14), %r8
	testq	%r8, %r8
	setne	%bl
	cmpq	%rcx, %r8
	setl	%r13b
	andb	%bl, %r13b
	movl	%ecx, %esi
	cmovnel	%r8d, %esi
	subl	%edx, %esi
	cmpl	%esi, %r12d
	cmovll	%r12d, %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%esi, %eax
	movl	%esi, %edi
	addq	%rdi, %rdx
	movq	%rdx, 8(%r14)
	subl	%esi, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rcx, %rdx
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r14
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r14), %rbx
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	setg	%dil
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_assert
	movq	%r15, 56(%rbx)
	movq	%rbx, 48(%r15)
	movq	%r14, %rdi
	callq	_free_buffer
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	decq	32(%r15)
	movq	%rbx, %r14
	cmpq	%r15, %r14
	jne	LBB0_12
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r15), %rcx
	movq	%rcx, (%r14)
	movq	%rcx, 8(%r14)
	testq	%r8, %r8
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, 16(%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r15), %r14
	cmpq	%r15, %r14
	je	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, %r12d
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	xorb	$1, %r13b
	jne	LBB0_3
LBB0_14:
	subl	%eax, 40(%r15)
	addq	$8, %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	_advance_skip_read_ptr          ; -- Begin function advance_skip_read_ptr
	.p2align	2
_advance_skip_read_ptr:                 ; @advance_skip_read_ptr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x8, x9, [x0]
	mov	x22, x0
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x22, [x19, #48]
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_14
; %bb.3:
	mov	w21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x22]
	ldr	x8, [x22, #16]
	cmp	x8, #0
	cset	w11, ne
	cmp	x8, x9
	cset	w12, lt
	ands	w23, w11, w12
	csel	w11, w8, w9, ne
	sub	w11, w11, w10
	cmp	w20, w11
	csel	w11, w20, w11, lt
	cmp	w11, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w11, w21
	add	x10, x10, w11, uxtw
	str	x10, [x22, #8]
	sub	w20, w20, w11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x10, x9
	b.ne	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x22, x19
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x22, #48]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	str	x19, [x24, #56]
	str	x24, [x19, #48]
	mov	x0, x22
	bl	_free_buffer
	ldr	x8, [x19, #32]
	sub	x8, x8, #1
	str	x8, [x19, #32]
	mov	x22, x24
	cmp	x22, x19
	b.ne	LBB0_12
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #24]
	stp	x9, x9, [x22]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x9, [x22, #16]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x19, #48]
	cmp	x22, x19
	b.eq	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	eor	w8, w23, #0x1
	tbnz	w8, #0, LBB0_4
	b	LBB0_15
LBB0_14:
	mov	w21, #0
LBB0_15:
	ldr	w8, [x19, #40]
	sub	w8, w8, w21
	str	w8, [x19, #40]
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
