	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_next_payload
_asf_read_next_payload:                 ## @asf_read_next_payload
	.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	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	%rax, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rbx
	cmpq	%rax, %rbx
	cmovgeq	%rax, %rbx
LBB0_2:
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	subq	%rbx, 8(%r12)
	jne	LBB0_5
## %bb.4:
	incl	24(%r12)
LBB0_5:
	addl	%ebx, 20(%r12)
	subq	%rbx, %rax
	movq	%rax, (%r12)
	movq	%r14, %rdi
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_READ_BYTES
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rsi
	callq	_SKIP_BYTES
LBB0_8:
	movq	%rax, (%r15)
	addl	%ebx, 16(%r12)
	cmpq	%rbx, %rax
	jne	LBB0_10
LBB0_9:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_asf_read_next_payload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_next_payload
_asf_read_next_payload:                 ; @asf_read_next_payload
	.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	x21, x3
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
	mov	x22, x8
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x9, [x21]
	cmp	x9, x8
	csel	x22, x9, x8, lt
LBB0_2:
	cbz	x8, LBB0_9
; %bb.3:
	ldr	x9, [x20, #8]
	subs	x9, x9, x22
	str	x9, [x20, #8]
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x20, #24]
	add	w9, w9, #1
	str	w9, [x20, #24]
LBB0_5:
	sub	x8, x8, x22
	str	x8, [x20]
	ldr	w8, [x20, #20]
	add	w8, w8, w22
	str	w8, [x20, #20]
	mov	x0, x19
	cbz	x2, LBB0_7
; %bb.6:
	mov	x1, x2
	mov	x2, x22
	bl	_READ_BYTES
	b	LBB0_8
LBB0_7:
	mov	x1, x22
	bl	_SKIP_BYTES
LBB0_8:
	str	x0, [x21]
	ldr	w8, [x20, #16]
	add	w8, w8, w22
	str	w8, [x20, #16]
	cmp	x0, x22
	b.ne	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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_10:
	mov	x0, x19
	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
	b	_STREAM_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_asf_read_next_payload
.subsections_via_symbols
