	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_system_header
_put_system_header:                     ## @put_system_header
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	$128, %edx
	callq	_init_put_bits
	movq	_SYSTEM_HEADER_START_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_bits32
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	$22, %esi
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	cmpq	$0, 16(%r15)
	je	LBB0_2
## %bb.1:
	movq	_VIDEO_ID@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_3
LBB0_2:
	movl	4(%r15), %r12d
LBB0_3:
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	$6, %esi
	movl	%r12d, %edx
	callq	_put_bits
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r15)
	setne	%bl
	movl	$1, %r12d
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_put_bits
	cmpq	$0, 16(%r15)
	jne	LBB0_5
## %bb.4:
	xorl	%r12d, %r12d
	cmpq	$0, 24(%r15)
	setne	%r12b
LBB0_5:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.6:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	andl	$224, %eax
	movq	_AUDIO_ID@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	je	LBB0_8
LBB0_7:
	movl	8(%r15), %edx
LBB0_8:
	leaq	-48(%rbp), %rdi
	movl	$5, %esi
	callq	_put_bits
	cmpq	$0, 24(%r15)
	je	LBB0_10
## %bb.9:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$127, %edx
	jmp	LBB0_11
LBB0_10:
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	movl	$255, %edx
LBB0_11:
	callq	_put_bits
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpq	$0, 24(%r15)
	movl	(%r14), %eax
	je	LBB0_14
## %bb.12:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.22:
	movq	8(%r14), %rcx
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_32
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi), %ebx
	cmpl	$189, %ebx
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	4(%rsi), %esi
	cmpl	%r13d, %esi
	jle	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%esi, %r13d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%ebx, %edi
	andl	$-8, %edi
	cmpl	$192, %edi
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	4(%rsi), %esi
	cmpl	%r15d, %esi
	jle	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	%esi, %r15d
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$224, %ebx
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_23 Depth=1
	movl	4(%rsi), %esi
	cmpl	%r12d, %esi
	cmovgl	%esi, %r12d
	jmp	LBB0_31
LBB0_14:
	testl	%eax, %eax
	jle	LBB0_39
## %bb.15:
	xorl	%ebx, %ebx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_36:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	$189, %r13d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
LBB0_37:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %esi
	movl	%r13d, %edx
	callq	_put_bits
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	xorl	%edx, %edx
	cmpl	$224, %r13d
	setae	%dl
	movl	$1024, %r13d                    ## imm = 0x400
	movl	$128, %eax
	cmovbl	%eax, %r13d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	4(%r12), %eax
	cltd
	idivl	%r13d
	movq	%r15, %rdi
	movl	$13, %esi
	movl	%eax, %edx
	callq	_put_bits
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_38:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_39
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %r12
	cmpq	$0, 16(%r15)
	movl	(%r12), %r13d
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	%ecx, %r13d
	jne	LBB0_38
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$191, %r13d
	jg	LBB0_37
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %eax
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, -56(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_38
LBB0_13:
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_32:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$185, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	leal	1023(%r12), %edx
	testl	%r12d, %r12d
	cmovnsl	%r12d, %edx
	sarl	$10, %edx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$184, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	testl	%r15d, %r15d
	je	LBB0_33
## %bb.34:
	leal	127(%r15), %edx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %edx
	sarl	$7, %edx
	jmp	LBB0_35
LBB0_33:
	movl	$32, %edx
LBB0_35:
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$189, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	leal	127(%r13), %edx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %edx
	sarl	$7, %edx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_put_bits
	movq	%r14, %rdi
	movl	$8, %esi
	movl	$191, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$3, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$13, %esi
	movl	$2, %edx
	callq	_put_bits
LBB0_39:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_ptr
	movl	%eax, %ebx
	subl	-48(%rbp), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rdi
	leal	-6(%rbx), %esi
	callq	_AV_WB16
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSTEM_HEADER_START_CODE,4,2   ## @SYSTEM_HEADER_START_CODE
	.comm	_VIDEO_ID,4,2                   ## @VIDEO_ID
	.comm	_AUDIO_ID,4,2                   ## @AUDIO_ID
	.no_dead_strip	_put_system_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_system_header
_put_system_header:                     ; @put_system_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
	add	x0, sp, #8
	mov	w2, #128
	bl	_init_put_bits
Lloh0:
	adrp	x8, _SYSTEM_HEADER_START_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSTEM_HEADER_START_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_put_bits32
	add	x0, sp, #8
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	w2, [x24]
	add	x0, sp, #8
	mov	w1, #22
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	mov	w2, #0
	ldr	x8, [x24, #16]
Lloh3:
	adrp	x9, _VIDEO_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEO_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, w21, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x24, #4]
LBB0_2:
	add	x0, sp, #8
	mov	w1, #6
	bl	_put_bits
	ldr	x8, [x24, #16]
	cmp	x8, #0
	cset	w23, ne
	mov	w22, #1
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x23
	bl	_put_bits
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x24, #24]
	cmp	x8, #0
	cset	w22, ne
LBB0_4:
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x22
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	x2, x22
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_7
; %bb.5:
	and	w8, w21, #0xe0
Lloh6:
	adrp	x9, _AUDIO_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AUDIO_ID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	w2, #0
	b	LBB0_8
LBB0_7:
	ldr	w2, [x24, #8]
LBB0_8:
	add	x0, sp, #8
	mov	w1, #5
	bl	_put_bits
	ldr	x8, [x24, #24]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #7
	mov	w2, #127
	b	LBB0_11
LBB0_10:
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #255
LBB0_11:
	bl	_put_bits
	ldr	x9, [x24, #24]
	ldr	w8, [x20]
	cbz	x9, LBB0_23
; %bb.12:
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.13:
	mov	w21, #0
	mov	w22, #0
	mov	w23, #0
	ldr	x9, [x20, #8]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_33
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	x10, [x10]
	ldr	w11, [x10]
	cmp	w11, #189
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w10, [x10, #4]
	cmp	w10, w21
	b.le	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, x10
	b	LBB0_14
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	and	w12, w11, #0xfffffff8
	cmp	w12, #192
	b.ne	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w10, [x10, #4]
	cmp	w10, w22
	b.le	LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x22, x10
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	w11, #224
	b.ne	LBB0_14
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w10, [x10, #4]
	cmp	w10, w23
	csel	w23, w10, w23, gt
	b	LBB0_14
LBB0_23:
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.24:
	mov	x23, #0
	mov	w25, #0
	mov	w26, #1024
	mov	w27, #128
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_28 Depth=1
	mov	w22, #189
	mov	x25, x8
LBB0_26:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x0, sp, #8
	mov	w1, #8
	mov	x2, x22
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	cmp	w22, #223
	cset	w2, hi
	cmp	w22, #224
	csel	w22, w27, w26, lo
	add	x0, sp, #8
	mov	w1, #1
	bl	_put_bits
	ldr	w8, [x28, #4]
	sdiv	w2, w8, w22
	add	x0, sp, #8
	mov	w1, #13
	bl	_put_bits
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_34
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x28, [x8]
	ldr	x8, [x24, #16]
	ldr	w22, [x28]
	cmp	x8, #0
	ccmp	w21, #0, #4, ne
	ccmp	w22, w21, #4, ne
	b.ne	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	cmp	w22, #191
	b.gt	LBB0_26
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	w8, #1
	cbz	w25, LBB0_25
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	w25, #1
	b	LBB0_27
LBB0_32:
	mov	w23, #0
	mov	w22, #0
	mov	w21, #0
LBB0_33:
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #185
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	w8, w23, #1023
	cmp	w23, #0
	csel	w8, w8, w23, lt
	asr	w2, w8, #10
	add	x0, sp, #8
	mov	w1, #13
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #184
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	add	w8, w22, #127
	cmp	w22, #0
	csel	w8, w8, w22, lt
	asr	w8, w8, #7
	mov	w9, #32
	csel	w2, w9, w8, eq
	add	x0, sp, #8
	mov	w1, #13
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #189
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	add	w8, w21, #127
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w2, w8, #7
	add	x0, sp, #8
	mov	w1, #13
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #8
	mov	w2, #191
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #2
	mov	w2, #3
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	add	x0, sp, #8
	mov	w1, #13
	mov	w2, #2
	bl	_put_bits
LBB0_34:
	add	x0, sp, #8
	bl	_flush_put_bits
	add	x0, sp, #8
	bl	_put_bits_ptr
	ldr	w8, [sp, #8]
	sub	w20, w0, w8
	add	x0, x19, #16
	sub	w1, w20, #6
	bl	_AV_WB16
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSTEM_HEADER_START_CODE,4,2   ; @SYSTEM_HEADER_START_CODE
	.comm	_VIDEO_ID,4,2                   ; @VIDEO_ID
	.comm	_AUDIO_ID,4,2                   ; @AUDIO_ID
	.no_dead_strip	_put_system_header
.subsections_via_symbols
