	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_quality_scaling           ## -- Begin function jpeg_quality_scaling
	.p2align	4, 0x90
_jpeg_quality_scaling:                  ## @jpeg_quality_scaling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %edi
	movl	$1, %eax
	cmovgel	%edi, %eax
	cmpl	$100, %eax
	movl	$100, %ecx
	cmovbl	%eax, %ecx
	cmpl	$49, %ecx
	ja	LBB0_2
## %bb.1:
	movw	$5000, %ax                      ## imm = 0x1388
	xorl	%edx, %edx
	divw	%cx
	movzwl	%ax, %eax
	popq	%rbp
	retq
LBB0_2:
	addl	%ecx, %ecx
	movl	$200, %eax
	subl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jpeg_quality_scaling           ; -- Begin function jpeg_quality_scaling
	.p2align	2
_jpeg_quality_scaling:                  ; @jpeg_quality_scaling
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	csinc	w8, w0, wzr, gt
	mov	w9, #100
	cmp	w8, #100
	csel	w8, w8, w9, lo
	cmp	w8, #49
	b.hi	LBB0_2
; %bb.1:
	and	w8, w8, #0xffff
	mov	w9, #5000
	udiv	w0, w9, w8
	ret
LBB0_2:
	mov	w9, #200
	sub	w0, w9, w8, lsl #1
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
