	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpeg_table_header
_jpeg_table_header:                     ## @jpeg_table_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
	movq	%r9, %r15
	movq	%rcx, %r14
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	_AV_CODEC_ID_LJPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r15
	movq	%r14, %rdi
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memcmp
	cmpl	$1, %eax
	movl	$2, %eax
	movl	$2, %ebx
	sbbl	$0, %ebx
	movq	%r15, %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 16(%rcx)
	cmovel	%ebx, %eax
	movl	%eax, %ebx
LBB0_4:
	movq	_DQT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_marker
	movl	%ebx, %eax
	shll	$6, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rax), %edx
	addl	$2, %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movslq	(%rax,%r15,4), %rax
	movl	(%r14,%rax,4), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%r15
	cmpq	$64, %r15
	jne	LBB0_5
## %bb.6:
	cmpl	$2, -72(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jb	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%r13, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movslq	(%rax,%rbx,4), %rax
	movl	(%r14,%rax,4), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_8
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	movq	_FF_THREAD_SLICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_12
## %bb.11:
	movq	_DRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdi, %rbx
	movq	%r13, %rdi
	callq	_put_marker
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$4, %edx
	callq	_put_bits
	movl	12(%rbx), %eax
	decl	%eax
	movl	(%r15), %ecx
	shll	$3, %ecx
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_put_bits
LBB0_12:
	movq	_DHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_put_marker
	movq	%r13, %rdi
	callq	_flush_put_bits
	movq	%r13, %rdi
	callq	_put_bits_ptr
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HUFFMAN_TABLE_OPTIMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movl	24(%rax), %r8d
	movl	28(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_put_huffman_table
	movq	%rax, %r15
	movq	8(%r12), %rax
	movl	16(%rax), %r8d
	movl	20(%rax), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_put_huffman_table
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movq	8(%r12), %rax
	movl	8(%rax), %r8d
	movl	12(%rax), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_huffman_table
	addl	%eax, %ebx
	addl	$2, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_huffman_table
	movslq	%ebx, %rsi
	addq	%rax, %rsi
	jmp	LBB0_16
LBB0_15:
	movq	_avpriv_mjpeg_bits_dc_luminance@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_avpriv_mjpeg_val_dc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_put_huffman_table
	movq	%rax, %r15
	movq	_avpriv_mjpeg_bits_dc_chrominance@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_put_huffman_table
	movq	%rax, %r12
	addq	%r15, %r12
	movq	_avpriv_mjpeg_bits_ac_luminance@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_avpriv_mjpeg_val_ac_luminance@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_huffman_table
	movq	%rax, %rbx
	addq	%r12, %rbx
	movq	_avpriv_mjpeg_bits_ac_chrominance@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_avpriv_mjpeg_val_ac_chrominance@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_huffman_table
	leaq	(%rax,%rbx), %rsi
	addq	$2, %rsi
LBB0_16:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AV_WB16                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_LJPEG,8,3          ## @AV_CODEC_ID_LJPEG
	.comm	_DQT,4,2                        ## @DQT
	.comm	_FF_THREAD_SLICE,4,2            ## @FF_THREAD_SLICE
	.comm	_DRI,4,2                        ## @DRI
	.comm	_DHT,4,2                        ## @DHT
	.comm	_HUFFMAN_TABLE_OPTIMAL,8,3      ## @HUFFMAN_TABLE_OPTIMAL
	.comm	_avpriv_mjpeg_bits_dc_luminance,4,2 ## @avpriv_mjpeg_bits_dc_luminance
	.comm	_avpriv_mjpeg_val_dc,4,2        ## @avpriv_mjpeg_val_dc
	.comm	_avpriv_mjpeg_bits_dc_chrominance,4,2 ## @avpriv_mjpeg_bits_dc_chrominance
	.comm	_avpriv_mjpeg_bits_ac_luminance,4,2 ## @avpriv_mjpeg_bits_ac_luminance
	.comm	_avpriv_mjpeg_val_ac_luminance,4,2 ## @avpriv_mjpeg_val_ac_luminance
	.comm	_avpriv_mjpeg_bits_ac_chrominance,4,2 ## @avpriv_mjpeg_bits_ac_chrominance
	.comm	_avpriv_mjpeg_val_ac_chrominance,4,2 ## @avpriv_mjpeg_val_ac_chrominance
	.no_dead_strip	_jpeg_table_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpeg_table_header
_jpeg_table_header:                     ; @jpeg_table_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x5
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_CODEC_ID_LJPEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_LJPEG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x25, #0
	b	LBB0_9
LBB0_2:
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	ldr	x25, [x21, #16]
	mov	x0, x3
	mov	x1, x4
	mov	w2, #256
	bl	_memcmp
	cmp	w0, #0
	mov	w8, #1
	cinc	w26, w8, ne
	cbz	x25, LBB0_4
; %bb.3:
	ldr	x8, [x25, #16]
	cmp	x8, #0
	mov	w8, #2
	csel	w26, w26, w8, eq
LBB0_4:
Lloh3:
	adrp	x8, _DQT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DQT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	add	w8, w26, w26, lsl #6
	add	w2, w8, #2
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x27, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldrsw	x8, [x8, x27]
	ldr	w2, [x24, x8, lsl #2]
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	add	x27, x27, #4
	cmp	x27, #256
	b.ne	LBB0_5
; %bb.6:
	cmp	w26, #2
	b.lo	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	bl	_put_bits
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldrsw	x8, [x8, x24]
	ldr	w2, [x22, x8, lsl #2]
	mov	x0, x19
	mov	w1, #8
	bl	_put_bits
	add	x24, x24, #4
	cmp	x24, #256
	b.ne	LBB0_8
LBB0_9:
	ldr	w8, [x21, #8]
Lloh6:
	adrp	x9, _FF_THREAD_SLICE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FF_THREAD_SLICE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh9:
	adrp	x8, _DRI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	mov	x0, x19
	mov	w1, #16
	mov	w2, #4
	bl	_put_bits
	ldr	w8, [x21, #12]
	sub	w8, w8, #1
	ldr	w9, [x20]
	lsl	w9, w9, #3
	sdiv	w8, w8, w9
	add	w2, w8, #1
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
LBB0_11:
Lloh12:
	adrp	x8, _DHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DHT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	mov	x0, x19
	bl	_flush_put_bits
	mov	x0, x19
	bl	_put_bits_ptr
	mov	x20, x0
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
	cbz	x25, LBB0_14
; %bb.12:
	ldr	x8, [x25]
Lloh15:
	adrp	x9, _HUFFMAN_TABLE_OPTIMAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HUFFMAN_TABLE_OPTIMAL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x25, #8]
	ldp	w4, w3, [x8, #24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_put_huffman_table
	mov	x21, x0
	ldr	x8, [x25, #8]
	ldp	w4, w3, [x8, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_put_huffman_table
	add	w21, w21, w0
	ldr	x8, [x25, #8]
	ldp	w4, w3, [x8, #8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_huffman_table
	add	w8, w21, w0
	add	w21, w8, #2
	ldr	x8, [x25, #8]
	ldp	w4, w3, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_huffman_table
	add	x1, x0, w21, sxtw
	b	LBB0_15
LBB0_14:
Lloh18:
	adrp	x8, _avpriv_mjpeg_bits_dc_luminance@GOTPAGE
Lloh19:
	ldr	x8, [x8, _avpriv_mjpeg_bits_dc_luminance@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x22, _avpriv_mjpeg_val_dc@GOTPAGE
Lloh22:
	ldr	x22, [x22, _avpriv_mjpeg_val_dc@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_put_huffman_table
	mov	x21, x0
Lloh23:
	adrp	x8, _avpriv_mjpeg_bits_dc_chrominance@GOTPAGE
Lloh24:
	ldr	x8, [x8, _avpriv_mjpeg_bits_dc_chrominance@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_put_huffman_table
	add	x21, x21, x0
Lloh26:
	adrp	x8, _avpriv_mjpeg_bits_ac_luminance@GOTPAGE
Lloh27:
	ldr	x8, [x8, _avpriv_mjpeg_bits_ac_luminance@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _avpriv_mjpeg_val_ac_luminance@GOTPAGE
Lloh30:
	ldr	x8, [x8, _avpriv_mjpeg_val_ac_luminance@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_huffman_table
	add	x21, x21, x0
Lloh32:
	adrp	x8, _avpriv_mjpeg_bits_ac_chrominance@GOTPAGE
Lloh33:
	ldr	x8, [x8, _avpriv_mjpeg_bits_ac_chrominance@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
Lloh35:
	adrp	x8, _avpriv_mjpeg_val_ac_chrominance@GOTPAGE
Lloh36:
	ldr	x8, [x8, _avpriv_mjpeg_val_ac_chrominance@GOTPAGEOFF]
Lloh37:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_huffman_table
	add	x8, x21, x0
	add	x1, x8, #2
LBB0_15:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AV_WB16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_LJPEG,8,3          ; @AV_CODEC_ID_LJPEG
	.comm	_DQT,4,2                        ; @DQT
	.comm	_FF_THREAD_SLICE,4,2            ; @FF_THREAD_SLICE
	.comm	_DRI,4,2                        ; @DRI
	.comm	_DHT,4,2                        ; @DHT
	.comm	_HUFFMAN_TABLE_OPTIMAL,8,3      ; @HUFFMAN_TABLE_OPTIMAL
	.comm	_avpriv_mjpeg_bits_dc_luminance,4,2 ; @avpriv_mjpeg_bits_dc_luminance
	.comm	_avpriv_mjpeg_val_dc,4,2        ; @avpriv_mjpeg_val_dc
	.comm	_avpriv_mjpeg_bits_dc_chrominance,4,2 ; @avpriv_mjpeg_bits_dc_chrominance
	.comm	_avpriv_mjpeg_bits_ac_luminance,4,2 ; @avpriv_mjpeg_bits_ac_luminance
	.comm	_avpriv_mjpeg_val_ac_luminance,4,2 ; @avpriv_mjpeg_val_ac_luminance
	.comm	_avpriv_mjpeg_bits_ac_chrominance,4,2 ; @avpriv_mjpeg_bits_ac_chrominance
	.comm	_avpriv_mjpeg_val_ac_chrominance,4,2 ; @avpriv_mjpeg_val_ac_chrominance
	.no_dead_strip	_jpeg_table_header
.subsections_via_symbols
