	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_hdlr
_mp4_write_box_hdlr:                    ## @mp4_write_box_hdlr
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	$118, %edi
	movl	$105, %esi
	movl	$100, %edx
	movl	$101, %ecx
	callq	_VC_FOURCC
	movl	%eax, %r14d
	movq	(%r13), %rax
	movq	(%rax), %rax
LBB0_2:
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$115, %edi
	movl	$111, %esi
	movl	$117, %edx
	movl	$110, %ecx
	callq	_VC_FOURCC
	movl	%eax, %r14d
	movq	(%r13), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	_VC_CONTAINER_ES_TYPE_SUBPICTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	$116, %edi
	movl	$101, %esi
	movl	$120, %edx
	movl	$116, %ecx
	callq	_VC_FOURCC
	movl	%eax, %r14d
LBB0_6:
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	movq	8(%r12), %rax
	movq	_MP4_BRAND_QT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	$109, %edi
	movl	$104, %esi
	movl	$108, %edx
	movl	$114, %ecx
	callq	_VC_FOURCC
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_WRITE_FOURCC
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U32
LBB0_9:
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_WRITE_FOURCC
	leaq	L_.str.5(%rip), %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_WRITE_U32
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_WRITE_U32
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	$20, %ebx
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %r14
	jmp	LBB0_14
LBB0_11:
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.7(%rip), %r14
	jmp	LBB0_14
LBB0_13:
	movq	_VC_CONTAINER_ES_TYPE_SUBPICTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$19, %eax
	movl	$1, %ebx
	cmovel	%eax, %ebx
	leaq	L_.str.8(%rip), %rax
	leaq	L_.str.9(%rip), %r14
	cmoveq	%rax, %r14
LBB0_14:
	movq	8(%r12), %rax
	movq	_MP4_BRAND_QT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	decl	%ebx
	leaq	L_.str.10(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WRITE_U8
LBB0_16:
	leaq	L_.str.11(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_WRITE_STRING
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_VC_CONTAINER_ES_TYPE_SUBPICTURE,8,3 ## @VC_CONTAINER_ES_TYPE_SUBPICTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

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

	.comm	_MP4_BRAND_QT,8,3               ## @MP4_BRAND_QT
L_.str.2:                               ## @.str.2
	.asciz	"component_type"

L_.str.3:                               ## @.str.3
	.asciz	"pre-defined"

L_.str.4:                               ## @.str.4
	.asciz	"handler_type"

L_.str.5:                               ## @.str.5
	.asciz	"reserved"

L_.str.6:                               ## @.str.6
	.asciz	"Video Media Handler"

L_.str.7:                               ## @.str.7
	.asciz	"Audio Media Handler"

L_.str.8:                               ## @.str.8
	.asciz	"Text Media Handler"

L_.str.9:                               ## @.str.9
	.space	1

L_.str.10:                              ## @.str.10
	.asciz	"string_size"

L_.str.11:                              ## @.str.11
	.asciz	"name"

	.no_dead_strip	_mp4_write_box_hdlr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_write_box_hdlr
_mp4_write_box_hdlr:                    ; @mp4_write_box_hdlr
	.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	x19, x0
	ldp	x9, x8, [x0]
	ldr	x22, [x8]
	ldr	x8, [x22]
	ldr	x21, [x9, x8, lsl #3]
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x23, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #118
	mov	w1, #105
	mov	w2, #100
	mov	w3, #101
	bl	_VC_FOURCC
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh2:
	adrp	x24, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #115
	mov	w1, #111
	mov	w2, #117
	mov	w3, #110
	bl	_VC_FOURCC
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
LBB0_5:
Lloh4:
	adrp	x25, _VC_CONTAINER_ES_TYPE_SUBPICTURE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _VC_CONTAINER_ES_TYPE_SUBPICTURE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #116
	mov	w1, #101
	mov	w2, #120
	mov	w3, #116
	bl	_VC_FOURCC
	mov	x20, x0
LBB0_7:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U8
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U24
	ldr	x8, [x22, #8]
Lloh10:
	adrp	x26, _MP4_BRAND_QT@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MP4_BRAND_QT@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #109
	mov	w1, #104
	mov	w2, #108
	mov	w3, #114
	bl	_VC_FOURCC
	mov	x1, x0
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U32
LBB0_10:
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_WRITE_FOURCC
Lloh18:
	adrp	x20, l_.str.5@PAGE
Lloh19:
	add	x20, x20, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_WRITE_U32
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh20:
	adrp	x20, l_.str.6@PAGE
Lloh21:
	add	x20, x20, l_.str.6@PAGEOFF
	mov	w21, #20
	b	LBB0_15
LBB0_12:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh22:
	adrp	x20, l_.str.7@PAGE
Lloh23:
	add	x20, x20, l_.str.7@PAGEOFF
	mov	w21, #20
	b	LBB0_15
LBB0_14:
	ldr	x9, [x25]
Lloh24:
	adrp	x10, l_.str.9@PAGE
Lloh25:
	add	x10, x10, l_.str.9@PAGEOFF
	mov	w11, #19
Lloh26:
	adrp	x12, l_.str.8@PAGE
Lloh27:
	add	x12, x12, l_.str.8@PAGEOFF
	cmp	x8, x9
	csel	x20, x12, x10, eq
	csinc	w21, w11, wzr, eq
LBB0_15:
	ldr	x8, [x22, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	sub	w21, w21, #1
Lloh28:
	adrp	x2, l_.str.10@PAGE
Lloh29:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_WRITE_U8
LBB0_17:
Lloh30:
	adrp	x3, l_.str.11@PAGE
Lloh31:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_WRITE_STRING
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_STREAM_STATUS
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_VC_CONTAINER_ES_TYPE_SUBPICTURE,8,3 ; @VC_CONTAINER_ES_TYPE_SUBPICTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

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

	.comm	_MP4_BRAND_QT,8,3               ; @MP4_BRAND_QT
l_.str.2:                               ; @.str.2
	.asciz	"component_type"

l_.str.3:                               ; @.str.3
	.asciz	"pre-defined"

l_.str.4:                               ; @.str.4
	.asciz	"handler_type"

l_.str.5:                               ; @.str.5
	.asciz	"reserved"

l_.str.6:                               ; @.str.6
	.asciz	"Video Media Handler"

l_.str.7:                               ; @.str.7
	.asciz	"Audio Media Handler"

l_.str.8:                               ; @.str.8
	.asciz	"Text Media Handler"

l_.str.9:                               ; @.str.9
	.space	1

l_.str.10:                              ; @.str.10
	.asciz	"string_size"

l_.str.11:                              ; @.str.11
	.asciz	"name"

	.no_dead_strip	_mp4_write_box_hdlr
.subsections_via_symbols
