	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_seek_internal
_http_seek_internal:                    ## @http_seek_internal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	$0, -80(%rbp)
	movq	_AVSEEK_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	8(%r12), %r13
	jmp	LBB0_2
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_5:
	movq	8(%r12), %rax
	movq	_UINT64_MAX@GOTPCREL(%rip), %rcx
	movq	_SEEK_END@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.6:
	cmpl	%ebx, %edx
	jne	LBB0_11
LBB0_7:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_8:
	testq	%r13, %r13
	jne	LBB0_13
## %bb.9:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_10
LBB0_13:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.14:
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_10:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.3:
	movq	%r13, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rsi
	cmpl	%ebx, (%rsi)
	jne	LBB0_16
## %bb.12:
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	jmp	LBB0_19
LBB0_16:
	cmpl	%ebx, %edx
	jne	LBB0_18
## %bb.17:
	addq	%rax, %r13
	jmp	LBB0_19
LBB0_18:
	movq	_SEEK_SET@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_27
LBB0_19:
	testq	%r13, %r13
	js	LBB0_27
## %bb.20:
	movq	%r13, (%r12)
	je	LBB0_22
## %bb.21:
	cmpq	$0, (%r15)
	jne	LBB0_7
LBB0_22:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	jne	LBB0_24
## %bb.23:
	movq	%rax, %rdx
	cmpq	(%rcx), %rax
	je	LBB0_25
LBB0_24:
	cmpq	%rdx, %r13
	jge	LBB0_2
LBB0_25:
	movq	40(%r12), %rbx
	movq	48(%r12), %rsi
	subq	%rsi, %rbx
	shrq	$2, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	callq	_memcpy
	movq	$0, 24(%r12)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rsi, %r15
	callq	_http_open_cnx
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_av_dict_free
	testl	%r14d, %r14d
	js	LBB0_30
## %bb.26:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ffurl_close
	jmp	LBB0_2
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_30:
	movq	32(%r12), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	32(%r12), %rax
	movq	%rax, 48(%r12)
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 40(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movslq	%r14d, %r13
	jmp	LBB0_2
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_SIZE,4,2                ## @BUFFER_SIZE
	.comm	_AVSEEK_SIZE,4,2                ## @AVSEEK_SIZE
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_UINT64_MAX,8,3                 ## @UINT64_MAX
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_http_seek_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_seek_internal
_http_seek_internal:                    ; @http_seek_internal
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x24, [x0, #8]
	ldr	x20, [x24, #24]
	ldr	x25, [x24]
Lloh3:
	adrp	x8, _BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stur	xzr, [x29, #-80]
Lloh8:
	adrp	x8, _AVSEEK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVSEEK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	ldr	x19, [x24, #8]
	b	LBB0_10
LBB0_2:
	cbz	w3, LBB0_6
LBB0_3:
	ldr	x8, [x24, #8]
Lloh11:
	adrp	x9, _UINT64_MAX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UINT64_MAX@GOTPAGEOFF]
	ldr	x11, [x9]
Lloh13:
	adrp	x10, _SEEK_END@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SEEK_END@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	x8, x11
	ccmp	w10, w2, #0, eq
	b.eq	LBB0_18
; %bb.4:
Lloh16:
	adrp	x11, _SEEK_CUR@GOTPAGE
Lloh17:
	ldr	x11, [x11, _SEEK_CUR@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	cmp	w11, w2
	b.ne	LBB0_12
; %bb.5:
	add	x19, x25, x19
	b	LBB0_15
LBB0_6:
	cbnz	x19, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w2
	ccmp	x25, x19, #0, eq
	b.ne	LBB0_3
LBB0_9:
	mov	x19, x25
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	w10, w2
	b.ne	LBB0_14
; %bb.13:
	add	x19, x8, x19
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x10, _SEEK_SET@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SEEK_SET@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w10, w2
	b.ne	LBB0_19
LBB0_15:
	tbnz	x19, #63, LBB0_19
; %bb.16:
	str	x19, [x24]
	cbz	x19, LBB0_22
; %bb.17:
	ldr	x10, [x21]
	cbz	x10, LBB0_22
LBB0_18:
Lloh31:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.21:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_22:
	ldr	x10, [x24, #16]
	cbnz	x10, LBB0_24
; %bb.23:
	ldr	x9, [x9]
	mov	x10, x8
	cmp	x8, x9
	b.eq	LBB0_25
LBB0_24:
	cmp	x19, x10
	b.ge	LBB0_10
LBB0_25:
	ldp	x8, x1, [x24, #40]
	sub	x8, x8, x1
	lsr	x23, x8, #2
	mov	x0, x22
	mov	x2, x23
	bl	_memcpy
	str	xzr, [x24, #24]
	sub	x1, x29, #80
	mov	x0, x21
	bl	_http_open_cnx
	mov	x21, x0
	sub	x0, x29, #80
	bl	_av_dict_free
	tbnz	w21, #31, LBB0_27
; %bb.26:
	mov	x0, x20
	bl	_ffurl_close
	b	LBB0_10
LBB0_27:
	ldr	x0, [x24, #32]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x24, #32]
	add	x9, x8, w23, sxtw #2
	stp	x9, x8, [x24, #40]
	str	x20, [x24, #24]
	str	x25, [x24]
	sxtw	x19, w21
	b	LBB0_10
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_SIZE,4,2                ; @BUFFER_SIZE
	.comm	_AVSEEK_SIZE,4,2                ; @AVSEEK_SIZE
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_UINT64_MAX,8,3                 ; @UINT64_MAX
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_http_seek_internal
.subsections_via_symbols
