	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_symbol
_add_symbol:                            ## @add_symbol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %r9
	xorl	%ebx, %ebx
	cmpl	%r8d, %r9d
	je	LBB0_9
## %bb.1:
	movq	8(%rdi), %r10
	movq	24(%rdi), %r15
	movslq	%esi, %r8
	cmpl	%esi, %r9d
	jle	LBB0_5
## %bb.2:
	movl	%r9d, %r14d
	subl	%esi, %r14d
	movq	%r8, %r11
	notq	%r11
	movq	%r9, %rax
	testb	$1, %r14b
	je	LBB0_4
## %bb.3:
	leaq	-1(%r9), %rax
	movl	-4(%r15,%r9,4), %ebx
	movl	%ebx, (%r15,%r9,4)
	movl	-4(%r10,%r9,4), %ebx
	movl	%ebx, (%r10,%r9,4)
LBB0_4:
	addq	%r9, %r11
	je	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%r15,%rax,4), %ebx
	movl	%ebx, (%r15,%rax,4)
	movl	-4(%r10,%rax,4), %ebx
	movl	%ebx, (%r10,%rax,4)
	movl	-8(%r15,%rax,4), %ebx
	movl	%ebx, -4(%r15,%rax,4)
	movl	-8(%r10,%rax,4), %ebx
	movl	%ebx, -4(%r10,%rax,4)
	leaq	-2(%rax), %rbx
	movq	%rbx, %rax
	cmpq	%r8, %rbx
	jg	LBB0_10
LBB0_5:
	movl	%edx, (%r15,%r8,4)
	movl	$50, (%r10,%r8,4)
	incl	(%rdi)
	movl	16(%rdi), %eax
	cmpl	%esi, %eax
	jl	LBB0_7
## %bb.6:
	incl	%eax
	movl	%eax, 16(%rdi)
LBB0_7:
	movl	(%rcx), %eax
	leal	50(%rax), %edx
	movl	%edx, (%rcx)
	movl	$1, %ebx
	cmpl	$3997, %eax                     ## imm = 0xF9D
	jl	LBB0_9
## %bb.8:
	movq	%rcx, %rsi
	callq	_rescale
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_symbol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_symbol
_add_symbol:                            ; @add_symbol
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w1 killed $w1 def $x1
	ldrsw	x10, [x0]
	cmp	w10, w4
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x0, #24]
	ldr	x9, [x0, #8]
	cmp	w10, w1
	b.le	LBB0_5
; %bb.3:
	mov	x11, x1
	sxtw	x11, w11
	lsl	x12, x10, #2
	add	x15, x8, x12
	add	x14, x9, x12
	mov	x12, x15
	mov	x13, x14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x10, x10, #1
	ldr	w16, [x12, #-4]!
	str	w16, [x15]
	ldr	w15, [x13, #-4]!
	str	w15, [x14]
	mov	x14, x13
	mov	x15, x12
	cmp	x10, x11
	b.gt	LBB0_4
	b	LBB0_6
LBB0_5:
	sxtw	x11, w1
LBB0_6:
	lsl	x10, x11, #2
	str	w2, [x8, x10]
	mov	w8, #50
	str	w8, [x9, x10]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	w8, [x0, #16]
	cmp	w8, w1
	b.lt	LBB0_8
; %bb.7:
	add	w8, w8, #1
	str	w8, [x0, #16]
LBB0_8:
	ldr	w8, [x3]
	add	w9, w8, #50
	str	w9, [x3]
	cmp	w8, #3997
	b.lt	LBB0_10
; %bb.9:
	mov	x1, x3
	bl	_rescale
LBB0_10:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_symbol
.subsections_via_symbols
