	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function panel_fitter_scaling
_panel_fitter_scaling:                  ## @panel_fitter_scaling
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	shll	$12, %eax
	cltd
	idivl	%esi
                                        ## kill: def $eax killed $eax def $rax
	shll	$12, %eax
	leal	2048(%rax), %ecx
	addl	$6143, %eax                     ## imm = 0x17FF
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$12, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FACTOR,4,2                     ## @FACTOR
	.no_dead_strip	_panel_fitter_scaling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function panel_fitter_scaling
_panel_fitter_scaling:                  ; @panel_fitter_scaling
	.cfi_startproc
; %bb.0:
	lsl	w8, w0, #12
	sdiv	w8, w8, w1
	mov	w9, #2048
	bfi	w9, w8, #12, #20
	mov	w10, #6143
	add	w8, w10, w8, lsl #12
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w0, w8, #12
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_FACTOR,4,2                     ; @FACTOR
	.no_dead_strip	_panel_fitter_scaling
.subsections_via_symbols
