	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_set_jcomp
_sd_set_jcomp:                          ## @sd_set_jcomp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rsi), %rcx
	movq	_QUALITY_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jl	LBB0_1
## %bb.2:
	movq	_QUALITY_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jle	LBB0_4
LBB0_1:
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%rax, %rsi
	callq	_jpeg_set_qual
	movl	(%rbx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUALITY_MIN,8,3                ## @QUALITY_MIN
	.comm	_QUALITY_MAX,8,3                ## @QUALITY_MAX
	.no_dead_strip	_sd_set_jcomp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_set_jcomp
_sd_set_jcomp:                          ; @sd_set_jcomp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _QUALITY_MIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QUALITY_MIN@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x9]
	cmp	x8, x1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _QUALITY_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QUALITY_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x9]
	cmp	x8, x1
	b.le	LBB0_5
LBB0_2:
	str	x1, [x19]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_jpeg_set_qual
	ldr	w1, [x19]
LBB0_4:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	x8, [x19]
	mov	x1, x8
	ldr	x0, [x19, #8]
	cbnz	x0, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QUALITY_MIN,8,3                ; @QUALITY_MIN
	.comm	_QUALITY_MAX,8,3                ; @QUALITY_MAX
	.no_dead_strip	_sd_set_jcomp
.subsections_via_symbols
