	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_skip
_stream_skip:                           ## @stream_skip
	.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	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	js	LBB0_1
## %bb.4:
	movq	8(%r14), %rdi
	movl	(%rdi), %ecx
	movq	(%r14), %rax
	movl	%ecx, %edx
	subl	%eax, %edx
	movslq	%edx, %rdx
	cmpq	%rbx, %rdx
	jge	LBB0_8
## %bb.5:
	movq	%rbx, %rsi
	subq	%rdx, %rsi
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	subl	%ecx, %eax
	cltq
	movq	$-1, %r15
	cmpq	%rax, %rsi
	jg	LBB0_9
## %bb.6:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_grow_packet
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	(%r14), %rax
	jmp	LBB0_8
LBB0_1:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rcx
	negq	%rcx
	movq	%rax, %rdx
	addq	%rbx, %rdx
	cmovsq	%rcx, %rbx
LBB0_8:
	movslq	%ebx, %rcx
	addq	%rax, %rcx
	movq	%rcx, (%r14)
	movq	%rbx, %r15
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	$-1, %r15
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_stream_skip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_skip
_stream_skip:                           ; @stream_skip
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldp	x8, x0, [x20]
	ldr	w9, [x0]
	sub	w10, w9, w8
	sxtw	x10, w10
	cmp	x10, x19
	b.ge	LBB0_7
; %bb.2:
	sub	x1, x19, x10
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w9, w9, w10
	sub	w8, w8, w9
	cmp	x1, w8, sxtw
	b.gt	LBB0_8
; %bb.3:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_av_grow_packet
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x20]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.6:
	add	x9, x8, x19
	cmp	x9, #0
	csneg	x19, x19, x8, ge
LBB0_7:
	add	x8, x8, w19, sxtw
	str	x8, [x20]
	b	LBB0_9
LBB0_8:
	mov	x19, #-1
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,4,2 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.no_dead_strip	_stream_skip
.subsections_via_symbols
