	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_write_box_ftyp
_mp4_write_box_ftyp:                    ## @mp4_write_box_ftyp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_WRITE_FOURCC
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_WRITE_U32
	movq	(%r14), %rsi
	movq	_MP4_BRAND_QT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_4
## %bb.1:
	movq	_MP4_BRAND_SKM2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_FOURCC
LBB0_3:
	movq	_MP4_BRAND_ISOM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_WRITE_FOURCC
	movq	_MP4_BRAND_MP42@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_WRITE_FOURCC
	movq	_MP4_BRAND_3GP4@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_WRITE_FOURCC
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_STREAM_STATUS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"major_brand"

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

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

	.comm	_MP4_BRAND_SKM2,8,3             ## @MP4_BRAND_SKM2
	.comm	_MP4_BRAND_ISOM,8,3             ## @MP4_BRAND_ISOM
	.comm	_MP4_BRAND_MP42,8,3             ## @MP4_BRAND_MP42
	.comm	_MP4_BRAND_3GP4,8,3             ## @MP4_BRAND_3GP4
	.no_dead_strip	_mp4_write_box_ftyp
.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_ftyp
_mp4_write_box_ftyp:                    ; @mp4_write_box_ftyp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x1, [x20]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_WRITE_FOURCC
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #512
	bl	_WRITE_U32
	ldr	x1, [x20]
Lloh4:
	adrp	x8, _MP4_BRAND_QT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MP4_BRAND_QT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.1:
Lloh7:
	adrp	x8, _MP4_BRAND_SKM2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MP4_BRAND_SKM2@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_3
; %bb.2:
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
LBB0_3:
Lloh12:
	adrp	x8, _MP4_BRAND_ISOM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MP4_BRAND_ISOM@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
Lloh15:
	adrp	x20, l_.str.2@PAGE
Lloh16:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE_FOURCC
Lloh17:
	adrp	x8, _MP4_BRAND_MP42@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MP4_BRAND_MP42@GOTPAGEOFF]
Lloh19:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE_FOURCC
Lloh20:
	adrp	x8, _MP4_BRAND_3GP4@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MP4_BRAND_3GP4@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
LBB0_4:
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_WRITE_FOURCC
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_STREAM_STATUS
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"major_brand"

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

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

	.comm	_MP4_BRAND_SKM2,8,3             ; @MP4_BRAND_SKM2
	.comm	_MP4_BRAND_ISOM,8,3             ; @MP4_BRAND_ISOM
	.comm	_MP4_BRAND_MP42,8,3             ; @MP4_BRAND_MP42
	.comm	_MP4_BRAND_3GP4,8,3             ; @MP4_BRAND_3GP4
	.no_dead_strip	_mp4_write_box_ftyp
.subsections_via_symbols
