	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setcamquality
_setcamquality:                         ## @setcamquality
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movaps	L___const.setcamquality.quality_commands(%rip), %xmm0
	movq	_QUALITY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	subl	%esi, %eax
	movq	_CAMQUALITY_MAX@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	movaps	%xmm0, -32(%rbp)
	movq	_QUALITY_MIN@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	cltd
	idivl	%ecx
	addl	$30, %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_jlj_write2
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_jlj_write2
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.setcamquality.quality_commands
L___const.setcamquality.quality_commands:
	.long	113                             ## 0x71
	.long	30                              ## 0x1e
	.long	112                             ## 0x70
	.long	6                               ## 0x6

	.comm	_QUALITY_MAX,4,2                ## @QUALITY_MAX
	.comm	_CAMQUALITY_MAX,4,2             ## @CAMQUALITY_MAX
	.comm	_QUALITY_MIN,4,2                ## @QUALITY_MIN
	.no_dead_strip	_setcamquality
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setcamquality
_setcamquality:                         ; @setcamquality
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	adrp	x9, l___const.setcamquality.quality_commands@PAGE
	add	x9, x9, l___const.setcamquality.quality_commands@PAGEOFF
	str	x8, [sp, #24]
	ldr	q0, [x9]
Lloh3:
	adrp	x8, _QUALITY_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUALITY_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w8, w1
Lloh6:
	adrp	x10, _CAMQUALITY_MAX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CAMQUALITY_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mul	w9, w9, w10
Lloh9:
	adrp	x10, _QUALITY_MIN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QUALITY_MIN@GOTPAGEOFF]
	str	q0, [sp]
Lloh11:
	ldr	w10, [x10]
	sub	w8, w8, w10
	sdiv	w8, w9, w8
	add	w8, w8, #30
	str	w8, [sp, #4]
	mov	x20, sp
	mov	x1, sp
	bl	_jlj_write2
	orr	x1, x20, #0x8
	mov	x0, x19
	bl	_jlj_write2
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.setcamquality.quality_commands
l___const.setcamquality.quality_commands:
	.long	113                             ; 0x71
	.long	30                              ; 0x1e
	.long	112                             ; 0x70
	.long	6                               ; 0x6

	.comm	_QUALITY_MAX,4,2                ; @QUALITY_MAX
	.comm	_CAMQUALITY_MAX,4,2             ; @CAMQUALITY_MAX
	.comm	_QUALITY_MIN,4,2                ; @QUALITY_MIN
	.no_dead_strip	_setcamquality
.subsections_via_symbols
