	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bh1770_psraw_to_adjusted
_bh1770_psraw_to_adjusted:              ## @bh1770_psraw_to_adjusted
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	addl	(%rdi), %eax
	imull	8(%rdi), %eax
	movq	_BH1770_COEF_SCALER@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	cltq
	movq	_BH1770_PROX_RANGE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BH1770_COEF_SCALER,4,2         ## @BH1770_COEF_SCALER
	.comm	_BH1770_PROX_RANGE,8,3          ## @BH1770_PROX_RANGE
	.no_dead_strip	_bh1770_psraw_to_adjusted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bh1770_psraw_to_adjusted
_bh1770_psraw_to_adjusted:              ; @bh1770_psraw_to_adjusted
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w8, w8, w1
	ldr	w9, [x0, #8]
	mul	w8, w9, w8
Lloh0:
	adrp	x9, _BH1770_COEF_SCALER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BH1770_COEF_SCALER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	sxtw	x8, w8
Lloh3:
	adrp	x9, _BH1770_PROX_RANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BH1770_PROX_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	csel	x0, x9, x8, lt
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BH1770_COEF_SCALER,4,2         ; @BH1770_COEF_SCALER
	.comm	_BH1770_PROX_RANGE,8,3          ; @BH1770_PROX_RANGE
	.no_dead_strip	_bh1770_psraw_to_adjusted
.subsections_via_symbols
