	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_stsd
_mp4_write_box_stsd:                    ## @mp4_write_box_stsd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdx
	xorl	%esi, %esi
	callq	_WRITE_U8
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_WRITE_U24
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_WRITE_U32
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MP4_BOX_TYPE_VIDE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_VC_CONTAINER_ES_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_MP4_BOX_TYPE_SOUN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mp4_write_box_extended         ## TAILCALL
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"version"

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

L_.str.2:                               ## @.str.2
	.asciz	"entry_count"

	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_MP4_BOX_TYPE_VIDE,4,2          ## @MP4_BOX_TYPE_VIDE
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ## @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_MP4_BOX_TYPE_SOUN,4,2          ## @MP4_BOX_TYPE_SOUN
	.comm	_VC_CONTAINER_ES_TYPE_SUBPICTURE,8,3 ## @VC_CONTAINER_ES_TYPE_SUBPICTURE
	.no_dead_strip	_mp4_write_box_stsd
.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_stsd
_mp4_write_box_stsd:                    ; @mp4_write_box_stsd
	.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	x19, x0
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x21, [x9, x8, lsl #3]
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_WRITE_U8
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_WRITE_U24
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_WRITE_U32
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _MP4_BOX_TYPE_VIDE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MP4_BOX_TYPE_VIDE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh14:
	adrp	x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_AUDIO@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh17:
	adrp	x8, _MP4_BOX_TYPE_SOUN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MP4_BOX_TYPE_SOUN@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w2, [x8]
	mov	x0, x19
	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	_mp4_write_box_extended
LBB0_5:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"version"

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

l_.str.2:                               ; @.str.2
	.asciz	"entry_count"

	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,8,3 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_MP4_BOX_TYPE_VIDE,4,2          ; @MP4_BOX_TYPE_VIDE
	.comm	_VC_CONTAINER_ES_TYPE_AUDIO,8,3 ; @VC_CONTAINER_ES_TYPE_AUDIO
	.comm	_MP4_BOX_TYPE_SOUN,4,2          ; @MP4_BOX_TYPE_SOUN
	.comm	_VC_CONTAINER_ES_TYPE_SUBPICTURE,8,3 ; @VC_CONTAINER_ES_TYPE_SUBPICTURE
	.no_dead_strip	_mp4_write_box_stsd
.subsections_via_symbols
