	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_con
_calc_con:                              ## @calc_con
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	16(%rbx), %r10
	movl	(%rbx), %r9d
	movl	$28, (%rsi)
	movl	4(%rbx), %edi
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
	cmpl	$-1, %edi
	movl	$72000, %eax                    ## imm = 0x11940
	cmovnel	%r15d, %eax
	movq	%rdx, %r8
	movl	$4, %r12d
	cmovnel	%edi, %r12d
	setne	%r14b
	movq	(%r10), %rdi
	movq	8(%rdi), %rdx
	movq	(%rdx), %rdx
	movq	_DDB_OCTOPUS_CI@GOTPCREL(%rip), %r13
	movl	$28, %r10d
	cmpq	(%r13), %rdx
	jne	LBB0_14
## %bb.1:
	cmpl	$2, 8(%rbx)
	jl	LBB0_14
## %bb.2:
	movl	$268, (%rsi)                    ## imm = 0x10C
	cmpl	$65539, (%rdi)                  ## imm = 0x10003
	jl	LBB0_13
## %bb.3:
	movb	%r14b, %r11b
	movl	%ecx, %edx
	andl	$1, %edx
	orl	%r11d, %edx
	jne	LBB0_13
## %bb.4:
	testb	$2, %cl
	jne	LBB0_10
## %bb.5:
	xorl	%r12d, %r12d
	cmpl	$72000, %r9d                    ## imm = 0x11940
	jne	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_13:
	xorl	%r10d, %r10d
	cmpl	$72001, %r9d                    ## imm = 0x11941
	movl	$96000, %ecx                    ## imm = 0x17700
	cmovgel	%ecx, %eax
	setge	%r10b
	shll	$11, %r10d
	orl	$284, %r10d                     ## imm = 0x11C
	movl	%r10d, (%rsi)
LBB0_14:
	testl	%eax, %eax
	je	LBB0_19
LBB0_15:
	cmpl	%eax, %r9d
	cmovgel	%eax, %r9d
	cmpl	$31001, %r9d                    ## imm = 0x7919
	movl	$31000, %ecx                    ## imm = 0x7918
	cmovgel	%r9d, %ecx
	subl	%ecx, %eax
	imull	$94, %eax, %eax
	cltd
	idivl	%ecx
	cmpl	$1, %eax
	jg	LBB0_17
## %bb.16:
	andl	$-17, %r10d
	movl	%r10d, (%rsi)
	jmp	LBB0_18
LBB0_17:
	addl	$-2, %eax
LBB0_18:
	cmpl	$127, %eax
	movl	$127, %r12d
	cmovll	%eax, %r12d
LBB0_19:
	orl	%r12d, %r15d
	movl	%r15d, (%r8)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$6428, (%rsi)                   ## imm = 0x191C
	movl	$6428, %r10d                    ## imm = 0x191C
	cmpl	$64001, %r9d                    ## imm = 0xFA01
	jge	LBB0_12
## %bb.11:
	movl	$64000, %eax                    ## imm = 0xFA00
	movl	$524288, %r15d                  ## imm = 0x80000
	jmp	LBB0_15
LBB0_7:
	cmpl	$96000, %r9d                    ## imm = 0x17700
	jl	LBB0_9
## %bb.8:
	movl	$2316, (%rsi)                   ## imm = 0x90C
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_12:
	xorl	%r15d, %r15d
	cmpl	$72001, %r9d                    ## imm = 0x11941
	setb	%r15b
	movl	$72000, %ecx                    ## imm = 0x11940
	movl	$96000, %eax                    ## imm = 0x17700
	cmovbl	%ecx, %eax
	shll	$17, %r15d
	orl	$327680, %r15d                  ## imm = 0x50000
	jmp	LBB0_15
LBB0_9:
	movl	$4364, (%rsi)                   ## imm = 0x110C
	shll	$13, %r9d
	addl	$71999, %r9d                    ## imm = 0x1193F
	movslq	%r9d, %rax
	imulq	$1954687339, %rax, %r15         ## imm = 0x7482296B
	movq	%r15, %rax
	shrq	$63, %rax
	shrq	$47, %r15
	addl	%eax, %r15d
	shll	$16, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_DDB_OCTOPUS_CI,8,3             ## @DDB_OCTOPUS_CI
	.no_dead_strip	_calc_con
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_con
_calc_con:                              ; @calc_con
	.cfi_startproc
; %bb.0:
	mov	w11, #6464
	movk	w11, #1, lsl #16
	ldr	x14, [x0]
	ldr	x15, [x14, #16]
	ldr	w8, [x14]
	mov	w12, #28
	str	w12, [x1]
	ldr	w9, [x14, #4]
	cmn	w9, #1
	cset	w13, ne
	csel	w10, w11, wzr, eq
	mov	w16, #4
	csel	w9, w16, w9, eq
	ldr	x15, [x15]
	ldr	x16, [x15, #8]
	ldr	x16, [x16]
Lloh0:
	adrp	x17, _DDB_OCTOPUS_CI@GOTPAGE
Lloh1:
	ldr	x17, [x17, _DDB_OCTOPUS_CI@GOTPAGEOFF]
Lloh2:
	ldr	x17, [x17]
	cmp	x16, x17
	b.ne	LBB0_5
; %bb.1:
	ldr	w12, [x14, #8]
	cmp	w12, #2
	b.lt	LBB0_4
; %bb.2:
	mov	w12, #268
	str	w12, [x1]
	ldr	w12, [x15]
	and	w14, w3, #0x1
	orr	w13, w14, w13
	mov	w14, #3
	movk	w14, #1, lsl #16
	cmp	w12, w14
	ccmp	w13, #0, #0, ge
	b.eq	LBB0_11
; %bb.3:
	mov	w12, #284
	mov	w13, #2332
	cmp	w8, w11
	csel	w12, w13, w12, gt
	mov	w11, #30464
	movk	w11, #1, lsl #16
	csel	w10, w11, w10, gt
	str	w12, [x1]
	b	LBB0_5
LBB0_4:
	mov	w12, #28
LBB0_5:
	mov	w11, #0
	cbz	w10, LBB0_10
LBB0_6:
	cmp	w8, w10
	csel	w8, w8, w10, lt
	mov	w9, #31000
	cmp	w8, w9
	csel	w8, w8, w9, gt
	sub	w9, w10, w8
	mov	w10, #94
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.7:
	and	w9, w12, #0xffffffef
	str	w9, [x1]
	b	LBB0_9
LBB0_8:
	sub	w8, w8, #2
LBB0_9:
	mov	w9, #127
	cmp	w8, #127
	csel	w9, w8, w9, lt
LBB0_10:
	orr	w8, w9, w11
	str	w8, [x2]
	ret
LBB0_11:
	tbnz	w3, #1, LBB0_14
; %bb.12:
	cmp	w8, w11
	b.ne	LBB0_15
; %bb.13:
	mov	w11, #0
	mov	w9, #0
	b	LBB0_10
LBB0_14:
	mov	w9, #6428
	str	w9, [x1]
	mov	w10, #64000
	mov	w13, #524288
	mov	w12, #64001
	add	w14, w11, #1
	mov	w15, #30464
	movk	w15, #1, lsl #16
	cmp	w8, w14
	csel	w14, w11, w15, lo
	mov	w11, #327680
	mov	w15, #458752
	csel	w11, w15, w11, lo
	mov	w15, #6428
	cmp	w8, w12
	csel	w12, w9, w15, lt
	csel	w11, w13, w11, lt
	csel	w10, w10, w14, lt
	b	LBB0_6
LBB0_15:
	mov	w9, #30464
	movk	w9, #1, lsl #16
	sub	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_17
; %bb.16:
	mov	w11, #0
	mov	w9, #0
	mov	w8, #2316
	str	w8, [x1]
	b	LBB0_10
LBB0_17:
	mov	w9, #0
	mov	w10, #4364
	str	w10, [x1]
	add	w8, w11, w8, lsl #13
	sub	w8, w8, #1
	sdiv	w8, w8, w11
	lsl	w11, w8, #16
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DDB_OCTOPUS_CI,8,3             ; @DDB_OCTOPUS_CI
	.no_dead_strip	_calc_con
.subsections_via_symbols
