	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_state
_save_state:                            ## @save_state
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_g_state@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -96(%rbp)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -92(%rbp)
	movq	(%r12), %rax
	movl	8(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -88(%rbp)
	movq	(%r12), %rax
	movl	72(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -84(%rbp)
	movq	(%r12), %rax
	movl	68(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -80(%rbp)
	movq	(%r12), %rax
	movl	64(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -76(%rbp)
	movq	(%r12), %rax
	movl	60(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -72(%rbp)
	movq	(%r12), %rax
	movl	56(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -68(%rbp)
	movq	(%r12), %rax
	movl	52(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -64(%rbp)
	movq	(%r12), %rax
	movl	48(%rax), %edi
	callq	_swap_if_little32
	movl	%eax, -60(%rbp)
	movq	(%r12), %rax
	movl	12(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movl	16(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-96(%rbp), %rsi
	movl	$4, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_memcpy
	leaq	4(%rbx), %rdi
	leaq	-92(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	8(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	12(%rbx), %rdi
	leaq	-84(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	16(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	20(%rbx), %rdi
	leaq	-76(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	24(%rbx), %rdi
	leaq	-72(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	28(%rbx), %rdi
	leaq	-68(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	32(%rbx), %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	36(%rbx), %rdi
	leaq	-60(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	40(%rbx), %rdi
	leaq	-56(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	leaq	44(%rbx), %rdi
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_memcpy
	movq	_MAX_PLAYERS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.1:
	addq	$48, %rbx
	leaq	-44(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	40(%rax), %rax
	movl	(%rax,%r15,4), %edi
	callq	_swap_if_little16
	movl	%eax, -44(%rbp)
	movl	$4, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	addq	$4, %rbx
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:
	movq	_B_COUNT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	movq	_g_state@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	movq	32(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%r13,8), %edi
	callq	_swap_if_little32
	movl	%eax, -44(%rbp)
	movq	(%r14), %rax
	movq	32(%rax), %rax
	movq	(%rax,%r12,8), %rax
	movl	4(%rax,%r13,8), %eax
	movl	%eax, -48(%rbp)
	movl	$4, %edx
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	xorl	%eax, %eax
	callq	_memcpy
	leaq	4(%rbx), %rdi
	movl	$4, %edx
	leaq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	_memcpy
	addq	$8, %rbx
	incq	%r13
	movslq	(%r15), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAX_PLAYERS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	movq	_g_state@GOTPCREL(%rip), %r12
	jle	LBB0_13
## %bb.11:
	leaq	-44(%rbp), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movl	(%rax,%r15,4), %edi
	callq	_swap_if_little32
	movl	%eax, -44(%rbp)
	movl	$4, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_memcpy
	addq	$4, %rbx
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_12
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_state,8,3                    ## @g_state
	.comm	_MAX_PLAYERS,4,2                ## @MAX_PLAYERS
	.comm	_B_COUNT,4,2                    ## @B_COUNT
	.no_dead_strip	_save_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_state
_save_state:                            ; @save_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, x0
Lloh0:
	adrp	x21, _g_state@GOTPAGE
Lloh1:
	ldr	x21, [x21, _g_state@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_swap_if_little32
	str	w0, [sp, #76]
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_swap_if_little32
	str	w0, [sp, #72]
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_swap_if_little32
	str	w0, [sp, #68]
	ldr	x8, [x21]
	ldr	w0, [x8, #72]
	bl	_swap_if_little32
	str	w0, [sp, #64]
	ldr	x8, [x21]
	ldr	w0, [x8, #68]
	bl	_swap_if_little32
	str	w0, [sp, #60]
	ldr	x8, [x21]
	ldr	w0, [x8, #64]
	bl	_swap_if_little32
	str	w0, [sp, #56]
	ldr	x8, [x21]
	ldr	w0, [x8, #60]
	bl	_swap_if_little32
	str	w0, [sp, #52]
	ldr	x8, [x21]
	ldr	w0, [x8, #56]
	bl	_swap_if_little32
	str	w0, [sp, #48]
	ldr	x8, [x21]
	ldr	w0, [x8, #52]
	bl	_swap_if_little32
	str	w0, [sp, #44]
	ldr	x8, [x21]
	ldr	w0, [x8, #48]
	bl	_swap_if_little32
	ldr	x8, [x21]
	ldp	w9, w8, [x8, #12]
	stp	w9, w0, [sp, #36]
	str	w8, [sp, #32]
	mov	w20, #4
	add	x8, sp, #76
	stp	x8, x20, [sp]
	mov	x0, x19
	bl	_memcpy
	add	x0, x19, #4
	add	x8, sp, #72
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #8
	add	x8, sp, #68
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #12
	add	x8, sp, #64
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #16
	add	x8, sp, #60
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #20
	add	x8, sp, #56
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #24
	add	x8, sp, #52
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #28
	add	x8, sp, #48
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #32
	add	x8, sp, #44
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #36
	add	x8, sp, #40
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #40
	add	x8, sp, #36
	stp	x8, x20, [sp]
	bl	_memcpy
	add	x0, x19, #44
	add	x8, sp, #32
	stp	x8, x20, [sp]
	bl	_memcpy
Lloh2:
	adrp	x24, _MAX_PLAYERS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MAX_PLAYERS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, #0
	add	x19, x19, #48
	mov	w22, #4
	add	x23, sp, #28
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #40]
	ldr	w0, [x8, x20, lsl #2]
	bl	_swap_if_little16
	str	w0, [sp, #28]
	stp	x23, x22, [sp]
	mov	x0, x19
	bl	_memcpy
	add	x19, x19, #4
	add	x20, x20, #1
	ldrsw	x8, [x24]
	cmp	x20, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.4:
	mov	x23, #0
Lloh4:
	adrp	x26, _B_COUNT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _B_COUNT@GOTPAGEOFF]
	ldr	w9, [x26]
	mov	w25, #4
	add	x27, sp, #24
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	mov	x22, #0
Lloh6:
	adrp	x24, _g_state@GOTPAGE
Lloh7:
	ldr	x24, [x24, _g_state@GOTPAGEOFF]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x20, x19, x28
	ldr	x8, [x24]
	ldr	x8, [x8, #32]
	lsl	x21, x23, #3
	ldr	x8, [x8, x21]
	ldr	w0, [x8, x28]
	bl	_swap_if_little32
	str	w0, [sp, #28]
	ldr	x8, [x24]
	ldr	x8, [x8, #32]
	ldr	x8, [x8, x21]
	add	x9, sp, #28
	add	x8, x8, x28
	ldr	w8, [x8, #4]
	str	w8, [sp, #24]
	stp	x9, x25, [sp]
	mov	x0, x20
	bl	_memcpy
	add	x0, x20, #4
	stp	x27, x25, [sp]
	bl	_memcpy
	add	x22, x22, #1
	ldrsw	x9, [x26]
	add	x28, x28, #8
	cmp	x22, x9
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x24, _MAX_PLAYERS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MAX_PLAYERS@GOTPAGEOFF]
	ldr	w8, [x24]
	add	x19, x19, x28
	b	LBB0_5
LBB0_10:
	cmp	w8, #1
Lloh10:
	adrp	x21, _g_state@GOTPAGE
Lloh11:
	ldr	x21, [x21, _g_state@GOTPAGEOFF]
	b.lt	LBB0_13
; %bb.11:
	mov	x20, #0
	mov	w22, #4
	add	x23, sp, #28
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #24]
	ldr	w0, [x8, x20, lsl #2]
	bl	_swap_if_little32
	str	w0, [sp, #28]
	stp	x23, x22, [sp]
	mov	x0, x19
	bl	_memcpy
	add	x19, x19, #4
	add	x20, x20, #1
	ldrsw	x8, [x24]
	cmp	x20, x8
	b.lt	LBB0_12
LBB0_13:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_state,8,3                    ; @g_state
	.comm	_MAX_PLAYERS,4,2                ; @MAX_PLAYERS
	.comm	_B_COUNT,4,2                    ; @B_COUNT
	.no_dead_strip	_save_state
.subsections_via_symbols
