	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_roq_log_add
_i2400m_roq_log_add:                    ## @i2400m_roq_log_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	24(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	___i2400m_roq_index
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rcx
	movl	(%rcx), %eax
	movl	4(%rcx), %edx
	movl	%eax, %edi
	subl	%edx, %edi
	movq	_I2400M_ROQ_LOG_LENGTH@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edi
	jne	LBB0_2
## %bb.1:
	incl	%edx
	movl	%edx, 4(%rcx)
LBB0_2:
	leal	1(%rax), %edx
	movl	%edx, (%rcx)
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	(%rsi)
	movl	%edx, %r15d
	movq	8(%rcx), %rbx
	leaq	(%r15,%r15,2), %r13
	movl	%r14d, (%rbx,%r13,8)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx,%r13,8)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx,%r13,8)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%rbx,%r13,8)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%rbx,%r13,8)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%rbx,%r13,8)
	movl	$1, %edi
	callq	_d_test
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	(%rbx,%r13,8), %rcx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2400m_roq_log_entry_print     ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2400M_ROQ_LOG_LENGTH,4,2      ## @I2400M_ROQ_LOG_LENGTH
	.no_dead_strip	_i2400m_roq_log_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_roq_log_add
_i2400m_roq_log_add:                    ; @i2400m_roq_log_add
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
	bl	___i2400m_roq_index
	mov	x20, x0
	ldr	x8, [x27]
	ldp	w9, w11, [x8]
Lloh0:
	adrp	x10, _I2400M_ROQ_LOG_LENGTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I2400M_ROQ_LOG_LENGTH@GOTPAGEOFF]
	ldr	w12, [x10]
	sub	w13, w9, w11
	cmp	w13, w12
	b.ne	LBB0_2
; %bb.1:
	add	w11, w11, #1
	str	w11, [x8, #4]
LBB0_2:
	add	w11, w9, #1
	str	w11, [x8]
	ldr	w10, [x10]
	udiv	w11, w9, w10
	msub	w27, w11, w10, w9
	ldr	x8, [x8, #8]
	mov	w9, #24
	umaddl	x28, w27, w9, x8
	stp	w26, w25, [x28]
	stp	w24, w23, [x28, #8]
	stp	w22, w21, [x28, #16]
	mov	w0, #1
	bl	_d_test
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x27
	mov	x3, x28
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_i2400m_roq_log_entry_print
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I2400M_ROQ_LOG_LENGTH,4,2      ; @I2400M_ROQ_LOG_LENGTH
	.no_dead_strip	_i2400m_roq_log_add
.subsections_via_symbols
