	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_iods_tag
_mov_write_iods_tag:                    ## @mov_write_iods_tag
	.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	%rsi, %r12
	movq	%rdi, %r15
	callq	_avio_tell
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%r12), %r9d
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	16(%r12), %rsi
	movq	_FF_MOV_FLAG_EMPTY_MOOV@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	shlq	$4, %r8
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi,%rcx), %rbx
	movq	(%rbx), %rbx
	xorl	%r14d, %r14d
	cmpq	%r11, %rbx
	sete	%r14b
	orl	%r14d, %eax
	xorl	%edx, %edx
	cmpq	%r13, %rbx
	sete	%dl
	orl	%edx, %edi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rcx
	cmpq	%rcx, %r8
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rcx)
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r10d, 12(%r12)
	jne	LBB0_5
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	xorl	%edi, %edi
LBB0_7:
	movl	$255, %r12d
	movl	$255, %ebx
	subl	%eax, %ebx
	testl	%r9d, %r9d
	cmovnsl	%r9d, %ebx
	subl	%edi, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ffio_wfourcc
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	movq	%r15, %rdi
	movl	$16, %esi
	movl	$7, %edx
	callq	_put_descr
	movq	%r15, %rdi
	movl	$79, %esi
	callq	_avio_wb16
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	$255, %esi
	callq	_avio_w8
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FF_MOV_FLAG_EMPTY_MOOV,4,2     ## @FF_MOV_FLAG_EMPTY_MOOV
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iods"

	.no_dead_strip	_mov_write_iods_tag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mov_write_iods_tag
_mov_write_iods_tag:                    ; @mov_write_iods_tag
	.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, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	ldp	w9, w8, [x21]
	ldr	w12, [x21, #8]
	cmp	w12, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w10, #0
	mov	w11, #0
	ldr	x16, [x21, #16]
Lloh0:
	adrp	x13, _FF_MOV_FLAG_EMPTY_MOOV@GOTPAGE
Lloh1:
	ldr	x13, [x13, _FF_MOV_FLAG_EMPTY_MOOV@GOTPAGEOFF]
Lloh2:
	adrp	x14, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x14, [x14, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
Lloh5:
	ldr	x14, [x14]
Lloh6:
	adrp	x15, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh7:
	ldr	x15, [x15, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x15, [x15]
	add	x16, x16, #8
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x16]
	ldr	x17, [x17]
	cmp	x17, x14
	cset	w0, eq
	orr	w11, w11, w0
	cmp	x17, x15
	cset	w17, eq
	orr	w10, w10, w17
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x16, x16, #16
	subs	x12, x12, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x17, [x16, #-8]
	cmp	x17, #0
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w17, [x21, #12]
	tst	w13, w17
	b.ne	LBB0_2
	b	LBB0_3
LBB0_6:
	mov	w11, #0
	mov	w10, #0
LBB0_7:
	mov	w12, #255
	sub	w11, w12, w11
	cmp	w9, #0
	csel	w21, w11, w9, lt
	sub	w9, w12, w10
	cmp	w8, #0
	csel	w22, w9, w8, lt
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
	mov	x0, x19
	mov	w1, #16
	mov	w2, #7
	bl	_put_descr
	mov	x0, x19
	mov	w1, #79
	bl	_avio_wb16
	mov	x0, x19
	mov	w1, #255
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #255
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x21
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x22
	bl	_avio_w8
	mov	x0, x19
	mov	w1, #255
	bl	_avio_w8
	mov	x0, x19
	mov	x1, x20
	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	_update_size
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FF_MOV_FLAG_EMPTY_MOOV,4,2     ; @FF_MOV_FLAG_EMPTY_MOOV
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iods"

	.no_dead_strip	_mov_write_iods_tag
.subsections_via_symbols
