	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpeg_put_comments
_jpeg_put_comments:                     ## @jpeg_put_comments
	.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, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rdx
	testq	%rdx, %rdx
	jle	LBB0_7
## %bb.1:
	movq	32(%r14), %rcx
	testq	%rcx, %rcx
	jle	LBB0_7
## %bb.2:
	leaq	24(%r14), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	cmpq	$65535, -48(%rbp)               ## imm = 0xFFFF
	jg	LBB0_4
## %bb.3:
	cmpq	$65536, -40(%rbp)               ## imm = 0x10000
	jl	LBB0_6
LBB0_4:
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	callq	_av_reduce
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %ecx
	movl	32(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_6:
	movq	_APP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_put_marker
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$16, %edx
	callq	_put_bits
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_avpriv_put_string
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$258, %edx                      ## imm = 0x102
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_put_bits
	movl	-40(%rbp), %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	%rbx, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_put_bits
LBB0_7:
	movq	_AV_CODEC_FLAG_BITEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_9
## %bb.8:
	movq	_COM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_put_marker
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_ptr
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movq	_LIBAVCODEC_IDENT@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_avpriv_put_string
	movq	(%r12), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %esi
	movq	%r15, %rdi
	callq	_AV_WB16
LBB0_9:
	movq	_AV_PIX_FMT_YUV420P@GOTPCREL(%rip), %rax
	movq	8(%r14), %rcx
	cmpq	(%rax), %rcx
	sete	%al
	movq	_AV_PIX_FMT_YUV422P@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	orb	%al, %dl
	movq	_AV_PIX_FMT_YUV444P@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movq	16(%r14), %rax
	sete	%cl
	orb	%dl, %cl
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_11
## %bb.10:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	movq	_COM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_put_marker
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_ptr
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	callq	_put_bits
	leaq	L_.str.2(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_avpriv_put_string
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %esi
	movq	%r14, %rdi
	callq	_AV_WB16
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot store exact aspect ratio %d:%d\n"

	.comm	_APP0,4,2                       ## @APP0
L_.str.1:                               ## @.str.1
	.asciz	"JFIF"

	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ## @AV_CODEC_FLAG_BITEXACT
	.comm	_COM,4,2                        ## @COM
	.comm	_LIBAVCODEC_IDENT,8,3           ## @LIBAVCODEC_IDENT
	.comm	_AV_PIX_FMT_YUV420P,8,3         ## @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV422P,8,3         ## @AV_PIX_FMT_YUV422P
	.comm	_AV_PIX_FMT_YUV444P,8,3         ## @AV_PIX_FMT_YUV444P
	.comm	_AVCOL_RANGE_JPEG,8,3           ## @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,8,3           ## @AVCOL_RANGE_MPEG
L_.str.2:                               ## @.str.2
	.asciz	"CS=ITU601"

	.no_dead_strip	_jpeg_put_comments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpeg_put_comments
_jpeg_put_comments:                     ; @jpeg_put_comments
	.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
	mov	x8, x0
	ldr	x2, [x8, #24]!
	cmp	x2, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x3, [x20, #32]
	cmp	x3, #1
	b.lt	LBB0_7
; %bb.2:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [sp]
	cmp	x8, #16, lsl #12                ; =65536
	b.ge	LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	cmp	x8, #16, lsl #12                ; =65536
	b.lt	LBB0_6
LBB0_4:
	mov	x8, sp
	orr	x1, x8, #0x8
	mov	x0, sp
                                        ; kill: def $w2 killed $w2 killed $x2
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #65535
	bl	_av_reduce
	cbnz	w0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x20, #24]
	ldr	w4, [x20, #32]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_6:
Lloh5:
	adrp	x8, _APP0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APP0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	mov	x0, x19
	mov	w1, #16
	mov	w2, #16
	bl	_put_bits
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_avpriv_put_string
	mov	x0, x19
	mov	w1, #16
	mov	w2, #258
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	ldr	w2, [sp]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #16
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
	mov	x0, x19
	mov	w1, #8
	mov	w2, #0
	bl	_put_bits
LBB0_7:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_CODEC_FLAG_BITEXACT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _COM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_put_marker
	mov	x0, x19
	bl	_flush_put_bits
	mov	x0, x19
	bl	_put_bits_ptr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #16
	mov	w2, #0
	bl	_put_bits
Lloh16:
	adrp	x22, _LIBAVCODEC_IDENT@GOTPAGE
Lloh17:
	ldr	x22, [x22, _LIBAVCODEC_IDENT@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_avpriv_put_string
	ldr	x0, [x22]
	bl	_strlen
	add	w1, w0, #3
	mov	x0, x21
	bl	_AV_WB16
LBB0_9:
Lloh18:
	adrp	x8, _AV_PIX_FMT_YUV420P@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_PIX_FMT_YUV420P@GOTPAGEOFF]
Lloh20:
	adrp	x9, _AV_PIX_FMT_YUV422P@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _AV_PIX_FMT_YUV444P@GOTPAGE
Lloh25:
	ldr	x10, [x10, _AV_PIX_FMT_YUV444P@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	ldp	x11, x12, [x20, #8]
	cmp	x11, x10
	ccmp	x11, x9, #4, ne
	ccmp	x11, x8, #4, ne
Lloh27:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ccmp	x12, x8, #4, eq
Lloh30:
	adrp	x8, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ccmp	x12, x8, #4, eq
	b.ne	LBB0_11
; %bb.10:
Lloh33:
	adrp	x8, _COM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _COM@GOTPAGEOFF]
Lloh35:
	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
Lloh36:
	adrp	x21, l_.str.2@PAGE
Lloh37:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_avpriv_put_string
	mov	x0, x21
	bl	_strlen
	add	w1, w0, #3
	mov	x0, x20
	bl	_AV_WB16
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot store exact aspect ratio %d:%d\n"

	.comm	_APP0,4,2                       ; @APP0
l_.str.1:                               ; @.str.1
	.asciz	"JFIF"

	.comm	_AV_CODEC_FLAG_BITEXACT,4,2     ; @AV_CODEC_FLAG_BITEXACT
	.comm	_COM,4,2                        ; @COM
	.comm	_LIBAVCODEC_IDENT,8,3           ; @LIBAVCODEC_IDENT
	.comm	_AV_PIX_FMT_YUV420P,8,3         ; @AV_PIX_FMT_YUV420P
	.comm	_AV_PIX_FMT_YUV422P,8,3         ; @AV_PIX_FMT_YUV422P
	.comm	_AV_PIX_FMT_YUV444P,8,3         ; @AV_PIX_FMT_YUV444P
	.comm	_AVCOL_RANGE_JPEG,8,3           ; @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,8,3           ; @AVCOL_RANGE_MPEG
l_.str.2:                               ; @.str.2
	.asciz	"CS=ITU601"

	.no_dead_strip	_jpeg_put_comments
.subsections_via_symbols
