	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adapt_bias                     ## -- Begin function adapt_bias
	.p2align	4, 0x90
_adapt_bias:                            ## @adapt_bias
	.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
	movl	$2, %ecx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_DAMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	cltd
	idivl	%ecx
	movl	%eax, %r8d
	xorl	%edi, %edi
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ecx
	movq	_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_TMIN@GOTPCREL(%rip), %rax
	movl	%r9d, %r10d
	subl	(%rax), %r10d
	addl	%r8d, %ecx
	movq	_TMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r10d, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	cmpl	%esi, %ecx
	jle	LBB0_5
## %bb.3:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%r10d
	addl	%r9d, %edi
	movl	%eax, %ecx
	cmpl	%esi, %eax
	jg	LBB0_4
LBB0_5:
	incl	%r10d
	imull	%ecx, %r10d
	movq	_SKEW@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	movl	%r10d, %eax
	cltd
	idivl	%ecx
	addl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAMP,4,2                       ## @DAMP
	.comm	_BASE,4,2                       ## @BASE
	.comm	_TMIN,4,2                       ## @TMIN
	.comm	_TMAX,4,2                       ## @TMAX
	.comm	_SKEW,4,2                       ## @SKEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adapt_bias                     ; -- Begin function adapt_bias
	.p2align	2
_adapt_bias:                            ; @adapt_bias
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DAMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #2
	cmp	w2, #0
	csel	w8, w9, w8, eq
	sdiv	w9, w0, w8
	udiv	w11, w9, w1
Lloh3:
	adrp	x8, _BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BASE@GOTPAGEOFF]
Lloh5:
	adrp	x12, _TMIN@GOTPAGE
Lloh6:
	ldr	x12, [x12, _TMIN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
Lloh8:
	ldr	w8, [x12]
	sub	w8, w10, w8
Lloh9:
	adrp	x12, _TMAX@GOTPAGE
Lloh10:
	ldr	x12, [x12, _TMAX@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	mul	w12, w8, w12
	cmp	w12, #0
	cinc	w12, w12, lt
	asr	w12, w12, #1
	add	w9, w11, w9
	cmp	w9, w12
	b.le	LBB0_3
; %bb.1:
	mov	w11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w9, w8
	add	w11, w11, w10
	cmp	w9, w12
	b.gt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w11, #0
LBB0_4:
Lloh12:
	adrp	x10, _SKEW@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SKEW@GOTPAGEOFF]
	madd	w8, w9, w8, w9
Lloh14:
	ldr	w10, [x10]
	add	w9, w10, w9
	sdiv	w8, w8, w9
	add	w0, w8, w11
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DAMP,4,2                       ; @DAMP
	.comm	_BASE,4,2                       ; @BASE
	.comm	_TMIN,4,2                       ; @TMIN
	.comm	_TMAX,4,2                       ; @TMAX
	.comm	_SKEW,4,2                       ; @SKEW
.subsections_via_symbols
