	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ess_calc_div
_ess_calc_div:                          ## @ess_calc_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %r8
	movl	%edi, %r9d
	movl	(%rdx), %r10d
	movl	%r10d, %eax
	shrl	$31, %eax
	addl	%r10d, %eax
	sarl	%eax
	addl	%edi, %eax
	cltd
	idivl	%r10d
	movl	%eax, %edx
	negl	%edx
	testl	%eax, %eax
	movl	$1, %r11d
	cmovgl	%eax, %r11d
	movl	$-1, %edi
	cmovgl	%edx, %edi
	addl	%esi, %edi
	movl	%r9d, %eax
	cltd
	idivl	%r11d
	movl	%eax, (%r8)
	subl	%eax, %r10d
	movl	%r10d, %eax
	negl	%eax
	cmovsl	%r10d, %eax
	movl	%eax, (%rcx)
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ess_calc_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ess_calc_div
_ess_calc_div:                          ; @ess_calc_div
	.cfi_startproc
; %bb.0:
	ldr	w9, [x2]
	cmp	w9, #0
	cinc	w8, w9, lt
	add	w8, w0, w8, asr #1
	sdiv	w8, w8, w9
	cmp	w8, #0
	csinc	w10, w8, wzr, gt
	mov	w11, #-1
	csneg	w8, w11, w8, le
	add	w8, w8, w1
	sdiv	w10, w0, w10
	str	w10, [x2]
	subs	w9, w9, w10
	cneg	w9, w9, mi
	str	w9, [x3]
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ess_calc_div
.subsections_via_symbols
