	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_major_sync
_write_major_sync:                      ## @write_major_sync
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_init_put_bits
	movq	_SYNC_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$24, %esi
	callq	_put_bits
	movq	64(%r15), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_MLP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SYNC_MLP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	(%r15), %rax
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	8(%r15), %rax
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	leaq	16(%r15), %rbx
	movl	$5, %esi
	jmp	LBB0_4
LBB0_2:
	movq	_AV_CODEC_ID_TRUEHD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_SYNC_TRUEHD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_put_bits
	movq	8(%r15), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_put_bits
	movq	%r12, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	20(%r15), %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_put_bits
	movl	24(%r15), %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_put_bits
	leaq	16(%r15), %rbx
	movl	16(%r15), %edx
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	28(%r15), %edx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_put_bits
	movl	$13, %esi
LBB0_4:
	movl	(%rbx), %edx
	leaq	-36(%rbp), %rdi
	callq	_put_bits
LBB0_5:
	movq	_MAJOR_SYNC_INFO_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	32(%r15), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	36(%r15), %edx
	movq	%rbx, %rdi
	movl	$15, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	40(%r15), %edx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_put_bits
	movl	44(%r15), %edx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	48(%r15), %edx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_put_bits
	movl	52(%r15), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$10, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$32896, %edx                    ## imm = 0x8080
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	56(%r15), %edx
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	leaq	104(%r14), %rbx
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_ff_mlp_checksum16
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_AV_WL16
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_MAJOR,4,2                 ## @SYNC_MAJOR
	.comm	_AV_CODEC_ID_MLP,8,3            ## @AV_CODEC_ID_MLP
	.comm	_SYNC_MLP,4,2                   ## @SYNC_MLP
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ## @AV_CODEC_ID_TRUEHD
	.comm	_SYNC_TRUEHD,4,2                ## @SYNC_TRUEHD
	.comm	_MAJOR_SYNC_INFO_SIGNATURE,4,2  ## @MAJOR_SYNC_INFO_SIGNATURE
	.no_dead_strip	_write_major_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_major_sync
_write_major_sync:                      ; @write_major_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	add	x0, sp, #12
	bl	_init_put_bits
Lloh0:
	adrp	x8, _SYNC_MAJOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYNC_MAJOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #24
	bl	_put_bits
	ldr	x8, [x20, #64]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AV_CODEC_ID_MLP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_MLP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SYNC_MLP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYNC_MLP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x20]
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_bits
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	add	x21, x20, #16
	mov	w1, #5
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x9, _AV_CODEC_ID_TRUEHD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AV_CODEC_ID_TRUEHD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _SYNC_TRUEHD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYNC_TRUEHD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #8
	bl	_put_bits
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #4
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x20, #20]
	add	x0, sp, #12
	mov	w1, #2
	bl	_put_bits
	ldr	w2, [x20, #24]
	add	x0, sp, #12
	mov	w1, #2
	bl	_put_bits
	mov	x21, x20
	ldr	w2, [x21, #16]!
	add	x0, sp, #12
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x21, #12]
	add	x0, sp, #12
	mov	w1, #2
	bl	_put_bits
	mov	w1, #13
LBB0_4:
	ldr	w2, [x21]
	add	x0, sp, #12
	bl	_put_bits
LBB0_5:
Lloh15:
	adrp	x8, _MAJOR_SYNC_INFO_SIGNATURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAJOR_SYNC_INFO_SIGNATURE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x0, sp, #12
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [x20, #32]
	add	x0, sp, #12
	mov	w1, #16
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x20, #36]
	add	x0, sp, #12
	mov	w1, #15
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x20, #40]
	add	x0, sp, #12
	mov	w1, #8
	bl	_put_bits
	ldr	w2, [x20, #44]
	add	x0, sp, #12
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x20, #48]
	add	x0, sp, #12
	mov	w1, #5
	bl	_put_bits
	ldr	w2, [x20, #52]
	add	x0, sp, #12
	mov	w1, #6
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #10
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #3
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #16
	mov	w2, #32896
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #7
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #12
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [x20, #56]
	add	x0, sp, #12
	mov	w1, #5
	bl	_put_bits
	add	x0, sp, #12
	bl	_flush_put_bits
	add	x20, x19, #104
	mov	x0, x19
	mov	w1, #26
	bl	_ff_mlp_checksum16
	mov	x1, x0
	mov	x0, x20
	bl	_AV_WL16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_MAJOR,4,2                 ; @SYNC_MAJOR
	.comm	_AV_CODEC_ID_MLP,8,3            ; @AV_CODEC_ID_MLP
	.comm	_SYNC_MLP,4,2                   ; @SYNC_MLP
	.comm	_AV_CODEC_ID_TRUEHD,8,3         ; @AV_CODEC_ID_TRUEHD
	.comm	_SYNC_TRUEHD,4,2                ; @SYNC_TRUEHD
	.comm	_MAJOR_SYNC_INFO_SIGNATURE,4,2  ; @MAJOR_SYNC_INFO_SIGNATURE
	.no_dead_strip	_write_major_sync
.subsections_via_symbols
