	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_state_data
_save_state_data:                       ## @save_state_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_MAXALIGN
	movq	%rax, %rbx
	movq	_records@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jle	LBB0_1
## %bb.2:
	movl	$4, %edi
	callq	_palloc0
	movq	16(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, 16(%r12)
	movl	$0, (%rax)
	movq	$0, 16(%rax)
	incl	24(%r12)
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_Max
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_palloc
	movq	16(%r12), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_3
LBB0_1:
	movq	16(%r12), %rcx
	movq	8(%rcx), %rax
LBB0_3:
	movslq	(%rcx), %rdi
	addq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	16(%r12), %rax
	addl	%ebx, (%rax)
	subq	%rbx, (%r12)
	addl	%ebx, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_records,32,3                   ## @records
	.no_dead_strip	_save_state_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_state_data
_save_state_data:                       ; @save_state_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_MAXALIGN
	mov	x19, x0
Lloh0:
	adrp	x22, _records@GOTPAGE
Lloh1:
	ldr	x22, [x22, _records@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	mov	w0, #4
	bl	_palloc0
	ldr	x8, [x22, #16]
	str	x0, [x8, #16]
	str	x0, [x22, #16]
	str	wzr, [x0]
	str	xzr, [x0, #16]
	ldr	w8, [x22, #24]
	add	w8, w8, #1
	str	w8, [x22, #24]
	mov	x0, x19
	mov	w1, #512
	bl	_Max
	str	x0, [x22]
	bl	_palloc
	ldr	x8, [x22, #16]
	str	x0, [x8, #8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x22, #16]
	ldr	x0, [x8, #8]
LBB0_3:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x22, #16]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	ldr	x8, [x22]
	sub	x8, x8, x19
	str	x8, [x22]
	ldr	w8, [x22, #8]
	add	w8, w8, w19
	str	w8, [x22, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_records,32,3                   ; @records
	.no_dead_strip	_save_state_data
.subsections_via_symbols
