	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adapt
_adapt:                                 ## @adapt
	.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, %r8d
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_damp@GOTPCREL(%rip), %rcx
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%eax, %r8d
	jmp	LBB0_3
LBB0_2:
	shrl	%r8d
LBB0_3:
	xorl	%edi, %edi
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ecx
	movq	_base@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_t_min@GOTPCREL(%rip), %rax
	movl	%r9d, %r10d
	subl	(%rax), %r10d
	addl	%r8d, %ecx
	movq	_t_max@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r10d, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	cmpl	%esi, %ecx
	jbe	LBB0_6
## %bb.4:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r10d
	addl	%r9d, %edi
	movl	%eax, %ecx
	cmpl	%esi, %eax
	ja	LBB0_5
LBB0_6:
	incl	%r10d
	imull	%ecx, %r10d
	movq	_skew@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_damp,4,2                       ## @damp
	.comm	_base,4,2                       ## @base
	.comm	_t_min,4,2                      ## @t_min
	.comm	_t_max,4,2                      ## @t_max
	.comm	_skew,4,2                       ## @skew
	.no_dead_strip	_adapt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adapt
_adapt:                                 ; @adapt
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _damp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _damp@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	udiv	w9, w0, w8
	b	LBB0_3
LBB0_2:
	lsr	w9, w0, #1
LBB0_3:
	udiv	w11, w9, w1
Lloh3:
	adrp	x8, _base@GOTPAGE
Lloh4:
	ldr	x8, [x8, _base@GOTPAGEOFF]
Lloh5:
	adrp	x12, _t_min@GOTPAGE
Lloh6:
	ldr	x12, [x12, _t_min@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x8]
Lloh8:
	ldr	w8, [x12]
	sub	w8, w10, w8
Lloh9:
	adrp	x12, _t_max@GOTPAGE
Lloh10:
	ldr	x12, [x12, _t_max@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.ls	LBB0_6
; %bb.4:
	mov	w11, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w9, w9, w8
	add	w11, w11, w10
	cmp	w9, w12
	b.hi	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w11, #0
LBB0_7:
Lloh12:
	adrp	x10, _skew@GOTPAGE
Lloh13:
	ldr	x10, [x10, _skew@GOTPAGEOFF]
	madd	w8, w9, w8, w9
Lloh14:
	ldr	w10, [x10]
	add	w9, w10, w9
	udiv	w8, w8, w9
	add	w0, w8, w11
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_damp,4,2                       ; @damp
	.comm	_base,4,2                       ; @base
	.comm	_t_min,4,2                      ; @t_min
	.comm	_t_max,4,2                      ; @t_max
	.comm	_skew,4,2                       ; @skew
	.no_dead_strip	_adapt
.subsections_via_symbols
