	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ism_seek
_ism_seek:                              ## @ism_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	%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
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	cmpl	%edx, (%r13)
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 48(%rdi)
	je	LBB0_9
## %bb.4:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_ffurl_close
LBB0_6:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_ffurl_close
LBB0_8:
	movq	48(%r14), %rax
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	$0, 48(%r14)
LBB0_9:
	movq	(%r14), %rax
	cmpq	%rbx, %rax
	jle	LBB0_10
## %bb.15:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.16:
	movq	56(%r14), %rcx
	incq	%rax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	decq	%rax
	cmpq	$1, %rax
	jbe	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %edx
	movq	(%rcx,%rdx,8), %r15
	movq	(%r15), %rdx
	cmpq	%rbx, %rdx
	jg	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	addq	8(%r15), %rdx
	cmpq	%rbx, %rdx
	jle	LBB0_23
## %bb.19:
	movq	$0, -48(%rbp)
	leaq	32(%r14), %r12
	movq	32(%r14), %rax
	movq	%rax, 48(%r14)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	movl	20(%r15), %esi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r14), %rax
	leaq	8(%rax), %rcx
	movl	(%rax), %r10d
	movl	4(%rax), %r9d
	movq	%r12, %rdi
	leaq	-48(%rbp), %r8
	pushq	$0
	pushq	%r10
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_av_dict_free
	testl	%r12d, %r12d
	js	LBB0_20
## %bb.21:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set
	leaq	24(%r14), %rdi
	movl	16(%r15), %esi
	movq	_AVIO_FLAG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	40(%r14), %rax
	leaq	8(%rax), %rcx
	movl	(%rax), %r10d
	movl	4(%rax), %r9d
	movq	%r12, %r8
	pushq	$0
	pushq	%r10
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	movq	%r12, %rdi
	callq	_av_dict_free
	movq	32(%r14), %rdi
	movq	%rbx, %rsi
	subq	(%r15), %rsi
	movl	(%r13), %edx
	callq	_ffurl_seek
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.22:
	movq	%rbx, %rsi
	subq	(%r15), %rsi
	jmp	LBB0_12
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rsi
	subq	%rax, %rsi
LBB0_12:
	movl	(%r13), %edx
	callq	_ffurl_seek
LBB0_13:
	movq	%rbx, 16(%r14)
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_20:
	movq	48(%r14), %rax
	movq	%rax, 32(%r14)
	movq	$0, 48(%r14)
	movslq	%r12d, %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"truncate"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_AVIO_FLAG_WRITE,4,2            ## @AVIO_FLAG_WRITE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ism_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ism_seek
_ism_seek:                              ; @ism_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
Lloh0:
	adrp	x22, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEEK_SET@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w2
	b.ne	LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #48]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_ffurl_close
LBB0_4:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_ffurl_close
LBB0_6:
	ldr	x8, [x20, #48]
	stp	xzr, x8, [x20, #24]
	str	xzr, [x20, #48]
LBB0_7:
	ldr	x8, [x20]
	cmp	x8, x19
	b.le	LBB0_17
; %bb.8:
	ldr	w9, [x20, #8]
	cmp	w9, #1
	b.lt	LBB0_21
; %bb.9:
	ldr	x8, [x20, #56]
	add	x9, x9, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x9, x9, #1
	cmp	x9, #1
	b.ls	LBB0_21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #2
	ldr	x23, [x8, w10, uxtw #3]
	ldr	x10, [x23]
	cmp	x10, x19
	b.gt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x11, [x23, #8]
	add	x10, x11, x10
	cmp	x10, x19
	b.le	LBB0_10
; %bb.13:
	str	xzr, [sp, #8]
	mov	x21, x20
	ldr	x8, [x21, #32]!
	str	x8, [x21, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
Lloh6:
	adrp	x24, _AVIO_FLAG_WRITE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AVIO_FLAG_WRITE@GOTPAGEOFF]
	ldr	w1, [x23, #20]
	ldr	w2, [x24]
	ldr	x8, [x21, #8]
	add	x3, x8, #8
	ldp	w6, w5, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	x7, #0
	bl	_ffurl_open_whitelist
	mov	x21, x0
	add	x0, sp, #8
	bl	_av_dict_free
	tbnz	w21, #31, LBB0_23
; %bb.14:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w3, #0
	bl	_av_dict_set
	add	x0, x20, #24
	ldr	w1, [x23, #16]
	ldr	w2, [x24]
	ldr	x8, [x20, #40]
	add	x3, x8, #8
	ldp	w6, w5, [x8]
	add	x4, sp, #8
	mov	x7, #0
	bl	_ffurl_open_whitelist
	add	x0, sp, #8
	bl	_av_dict_free
	ldr	x0, [x20, #32]
	ldr	x8, [x23]
	sub	x1, x19, x8
	ldr	w2, [x22]
	bl	_ffurl_seek
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_19
; %bb.15:
	ldr	x8, [x23]
	b	LBB0_18
LBB0_16:
Lloh12:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_22
LBB0_17:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_19
LBB0_18:
	sub	x1, x19, x8
	ldr	w2, [x22]
	bl	_ffurl_seek
LBB0_19:
	str	x19, [x20, #16]
LBB0_20:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_21:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_23:
	ldr	x8, [x20, #48]
	str	x8, [x20, #32]
	str	xzr, [x20, #48]
	sxtw	x19, w21
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"truncate"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_AVIO_FLAG_WRITE,4,2            ; @AVIO_FLAG_WRITE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ism_seek
.subsections_via_symbols
