	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpeg_set_qual
_jpeg_set_qual:                         ## @jpeg_set_qual
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	cmpl	$49, %esi
	ja	LBB0_4
## %bb.3:
	movw	$5000, %ax                      ## imm = 0x1388
	xorl	%edx, %edx
	divw	%si
	movzwl	%ax, %r10d
	jmp	LBB0_5
LBB0_1:
	movl	$5000, %r10d                    ## imm = 0x1388
	jmp	LBB0_5
LBB0_4:
	addl	%esi, %esi
	movl	$200, %r10d
	subl	%esi, %r10d
LBB0_5:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_jpeg_head@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	xorl	%edx, %edx
	movq	_JPEG_QT0_OFFSET@GOTPCREL(%rip), %r8
	movq	_JPEG_QT1_OFFSET@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r8), %rsi
	addq	%rdx, %rsi
	movl	(%r11,%rsi,4), %eax
	imull	%r10d, %eax
	addl	$50, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, (%rdi,%rsi,4)
	movslq	(%r9), %rax
	addq	%rdx, %rax
	movl	(%r11,%rax,4), %ecx
	imull	%r10d, %ecx
	addl	$50, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rcx
	addl	%esi, %ecx
	movl	%ecx, (%rdi,%rax,4)
	incq	%rdx
	cmpl	$64, %edx
	jne	LBB0_6
## %bb.7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jpeg_head,8,3                  ## @jpeg_head
	.comm	_JPEG_QT0_OFFSET,4,2            ## @JPEG_QT0_OFFSET
	.comm	_JPEG_QT1_OFFSET,4,2            ## @JPEG_QT1_OFFSET
	.no_dead_strip	_jpeg_set_qual
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpeg_set_qual
_jpeg_set_qual:                         ; @jpeg_set_qual
	.cfi_startproc
; %bb.0:
	mov	w8, #5000
	cmp	w1, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w9, #200
	sub	w9, w9, w1, lsl #1
	and	w10, w1, #0xffff
	udiv	w8, w8, w10
	cmp	w1, #49
	csel	w8, w9, w8, hi
LBB0_2:
	mov	x9, #0
Lloh0:
	adrp	x10, _jpeg_head@GOTPAGE
Lloh1:
	ldr	x10, [x10, _jpeg_head@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _JPEG_QT0_OFFSET@GOTPAGE
Lloh4:
	ldr	x11, [x11, _JPEG_QT0_OFFSET@GOTPAGEOFF]
	mov	w12, #34079
	movk	w12, #20971, lsl #16
Lloh5:
	adrp	x13, _JPEG_QT1_OFFSET@GOTPAGE
Lloh6:
	ldr	x13, [x13, _JPEG_QT1_OFFSET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x14, [x11]
	add	x14, x9, x14
	lsl	x14, x14, #2
	ldr	w15, [x10, x14]
	mul	w15, w15, w8
	add	w15, w15, #50
	smull	x15, w15, w12
	lsr	x16, x15, #63
	asr	x15, x15, #37
	add	w15, w15, w16
	str	w15, [x0, x14]
	ldrsw	x14, [x13]
	add	x14, x9, x14
	lsl	x14, x14, #2
	ldr	w15, [x10, x14]
	mul	w15, w15, w8
	add	w15, w15, #50
	smull	x15, w15, w12
	lsr	x16, x15, #63
	asr	x15, x15, #37
	add	w15, w15, w16
	str	w15, [x0, x14]
	add	x9, x9, #1
	cmp	w9, #64
	b.ne	LBB0_3
; %bb.4:
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jpeg_head,8,3                  ; @jpeg_head
	.comm	_JPEG_QT0_OFFSET,4,2            ; @JPEG_QT0_OFFSET
	.comm	_JPEG_QT1_OFFSET,4,2            ; @JPEG_QT1_OFFSET
	.no_dead_strip	_jpeg_set_qual
.subsections_via_symbols
