	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mov_write_traf_tag
_mov_write_traf_tag:                    ## @mov_write_traf_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_avio_tell
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_wb32
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_ffio_wfourcc
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_mov_write_tfhd_tag
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	_MODE_ISM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mov_write_tfdt_tag
LBB0_2:
	movl	(%r12), %r9d
	cmpl	$2, %r9d
	jl	LBB0_7
## %bb.3:
	xorl	%r14d, %r14d
	movl	$1, %r13d
	movl	$16, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%r9d, %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	-8(%rax,%rbx), %rcx
	addq	-16(%rax,%rbx), %rcx
	cmpq	%rcx, (%rax,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_mov_write_trun_tag
	movl	(%r12), %r9d
	movl	%r13d, %r14d
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_mov_write_trun_tag
	movq	(%rbx), %rax
	movq	_MODE_ISM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mov_write_tfxd_tag
	movl	8(%rbx), %r14d
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.9:
	movl	%r14d, %ebx
	shll	$4, %ebx
	movl	4(%r12), %r13d
	testl	%r13d, %r13d
	jle	LBB0_12
## %bb.10:
	movq	8(%r12), %r12
	decl	%r13d
	cmpq	$0, (%r12,%r13,8)
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_avio_tell
	movq	%rax, (%r12,%r13,8)
LBB0_12:
	leal	29(%rbx), %esi
	movq	%r15, %rdi
	callq	_avio_wb32
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_ffio_wfourcc
	cmpl	$-1, %r14d
	jl	LBB0_15
## %bb.13:
	addl	$20, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmovlel	%eax, %ebx
	orl	$1, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_avio_w8
	decl	%ebx
	jne	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_size                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"traf"

	.comm	_MODE_ISM,8,3                   ## @MODE_ISM
L_.str.1:                               ## @.str.1
	.asciz	"free"

	.no_dead_strip	_mov_write_traf_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_traf_tag
_mov_write_traf_tag:                    ; @mov_write_traf_tag
	.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
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_avio_tell
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_avio_wb32
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x24
	bl	_mov_write_tfhd_tag
	ldr	x8, [x22]
Lloh2:
	adrp	x25, _MODE_ISM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MODE_ISM@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_tfdt_tag
LBB0_2:
	ldr	w5, [x21]
	cmp	w5, #2
	b.lt	LBB0_7
; %bb.3:
	mov	x26, #0
	mov	w4, #0
	mov	w24, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x26, x26, #16
	cmp	x24, w5, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x8, x8, x26
	ldr	x10, [x8]
	ldp	x8, x9, [x8, #8]
	add	x8, x8, x10
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	mov	x5, x24
	bl	_mov_write_trun_tag
	ldr	w5, [x21]
	mov	x4, x24
	b	LBB0_4
LBB0_7:
	mov	w4, #0
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_mov_write_trun_tag
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_mov_write_tfxd_tag
	ldr	w22, [x22, #8]
	cbz	w22, LBB0_16
; %bb.10:
	lsl	w23, w22, #4
	ldr	w8, [x21, #4]
	subs	w24, w8, #1
	b.lt	LBB0_13
; %bb.11:
	ldr	x21, [x21, #8]
	ldr	x8, [x21, w24, uxtw #3]
	cbnz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_avio_tell
	str	x0, [x21, x24, lsl #3]
LBB0_13:
	add	w1, w23, #29
	mov	x0, x19
	bl	_avio_wb32
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ffio_wfourcc
	cmn	w22, #1
	b.lt	LBB0_16
; %bb.14:
	add	w8, w23, #20
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	orr	w21, w8, #0x1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_avio_w8
	subs	w21, w21, #1
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	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	_update_size
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"traf"

	.comm	_MODE_ISM,8,3                   ; @MODE_ISM
l_.str.1:                               ; @.str.1
	.asciz	"free"

	.no_dead_strip	_mov_write_traf_tag
.subsections_via_symbols
