	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_StartButton                  ## -- Begin function P_StartButton
	.p2align	4, 0x90
_P_StartButton:                         ## @P_StartButton
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAXBUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_10
## %bb.1:
	movq	_buttonlist@GOTPCREL(%rip), %r8
	movq	(%r8), %r10
	shlq	$5, %r9
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %rax
	cmpq	%rax, %r9
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r10,%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, 24(%r10,%rax)
	jne	LBB0_4
## %bb.8:
	popq	%rbp
	retq
LBB0_5:
	movq	(%r8), %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r10,%rax)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$32, %rax
	cmpq	%rax, %r9
	jne	LBB0_6
LBB0_10:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_I_Error                        ## TAILCALL
LBB0_7:
	movq	%rdi, 24(%r10,%rax)
	movq	(%r8), %r8
	movl	%esi, 16(%r8,%rax)
	movl	%edx, 4(%r8,%rax)
	movl	%ecx, (%r8,%rax)
	movq	(%rdi), %rcx
	movq	%rcx, 8(%r8,%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXBUTTONS,4,2                 ## @MAXBUTTONS
	.comm	_buttonlist,8,3                 ## @buttonlist
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P_StartButton: no button slots left!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_StartButton                  ; -- Begin function P_StartButton
	.p2align	2
_P_StartButton:                         ; @P_StartButton
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAXBUTTONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXBUTTONS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _buttonlist@GOTPAGE
Lloh4:
	ldr	x8, [x8, _buttonlist@GOTPAGEOFF]
	ldr	x10, [x8]
	mov	x11, x9
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #32
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10, #24]
	cmp	x12, x0
	b.ne	LBB0_2
; %bb.5:
	ret
LBB0_6:
	mov	x10, #0
	ldr	x11, [x8]
	lsl	x9, x9, #5
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11, x10]
	cbz	w12, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #32
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_9:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	_I_Error
LBB0_10:
	add	x9, x11, x10
	str	x0, [x9, #24]
	ldr	x8, [x8]
	add	x8, x8, x10
	str	w1, [x8, #16]
	stp	w3, w2, [x8]
	ldr	x9, [x0]
	str	x9, [x8, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXBUTTONS,4,2                 ; @MAXBUTTONS
	.comm	_buttonlist,8,3                 ; @buttonlist
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P_StartButton: no button slots left!"

.subsections_via_symbols
