	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_par_scale                  ## -- Begin function ghb_par_scale
	.p2align	4, 0x90
_ghb_par_scale:                         ## @ghb_par_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_ghb_screen_par
	movl	-40(%rbp), %ecx
	testl	%ecx, %ecx
	setle	%sil
	movl	-36(%rbp), %edx
	testl	%edx, %edx
	setle	%al
	orb	%sil, %al
	movl	$1, %eax
	cmovnel	%eax, %ecx
	cmovnel	%eax, %edx
	imull	%r12d, %edx
	imull	%r15d, %ecx
	cmpl	%r15d, %r12d
	cmovleq	%r14, %rbx
	movl	%ecx, %eax
	cmovgl	%edx, %eax
	cmovlel	%edx, %ecx
	imull	(%rbx), %eax
	cltd
	idivl	%ecx
	movl	%eax, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	_ghb_par_scale                  ; -- Begin function ghb_par_scale
	.p2align	2
_ghb_par_scale:                         ; @ghb_par_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_ghb_screen_par
	ldp	w9, w8, [sp, #8]
	cmp	w8, #1
	ccmp	w9, #1, #8, ge
	cset	w10, lt
	cmp	w10, #0
	csinc	w8, w8, wzr, eq
	csinc	w9, w9, wzr, eq
	mul	w9, w9, w20
	mul	w8, w8, w19
	cmp	w20, w19
	csel	w10, w9, w8, gt
	csel	x11, x22, x21, gt
	csel	w8, w8, w9, gt
	ldr	w9, [x11]
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	str	w8, [x11]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
