	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stream_seek
_stream_seek:                           ## @stream_seek
	.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	_OPJ_FALSE@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	js	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rsi), %rdi
	movq	(%rdi), %rax
	cmpq	%rbx, %rax
	jge	LBB0_4
## %bb.2:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rbx, %rcx
	jl	LBB0_5
## %bb.3:
	movslq	%ebx, %rsi
	subq	%rax, %rsi
	callq	_av_grow_packet
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movl	%ebx, (%r14)
	movq	_OPJ_TRUE@GOTPCREL(%rip), %r15
LBB0_5:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPJ_FALSE,4,2                  ## @OPJ_FALSE
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_OPJ_TRUE,4,2                   ## @OPJ_TRUE
	.no_dead_strip	_stream_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_seek
_stream_seek:                           ; @stream_seek
	.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
	tbnz	x0, #63, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
	ldr	x8, [x0]
	cmp	x8, x20
	b.ge	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	sub	x9, x9, x10
	cmp	x9, x20
	b.lt	LBB0_4
; %bb.3:
	sxtw	x9, w20
	sub	x1, x9, x8
	bl	_av_grow_packet
	cbz	x0, LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _OPJ_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPJ_FALSE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	str	w20, [x19]
Lloh8:
	adrp	x8, _OPJ_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPJ_TRUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OPJ_FALSE,4,2                  ; @OPJ_FALSE
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_OPJ_TRUE,4,2                   ; @OPJ_TRUE
	.no_dead_strip	_stream_seek
.subsections_via_symbols
