	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotPushGoal                    ## -- Begin function BotPushGoal
	.p2align	4, 0x90
_BotPushGoal:                           ## @BotPushGoal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_BotGoalStateFromHandle
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movslq	(%rax), %rcx
	movq	_MAX_GOALSTACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	decl	%edx
	cmpl	%edx, %ecx
	jge	LBB0_4
## %bb.2:
	leaq	1(%rcx), %rdx
	movl	%edx, (%rax)
	leaq	4(,%rcx,4), %rdi
	addq	8(%rax), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Com_Memcpy                     ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	callq	*(%rax)
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_BotDumpGoalStack               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GOALSTACK,4,2              ## @MAX_GOALSTACK
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"goal heap overflow\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotPushGoal                    ; -- Begin function BotPushGoal
	.p2align	2
_BotPushGoal:                           ; @BotPushGoal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_BotGoalStateFromHandle
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAX_GOALSTACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_GOALSTACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	add	w8, w8, #1
	str	w8, [x0]
	ldr	x9, [x0, #8]
	add	x0, x9, w8, sxtw #2
	mov	x1, x20
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Com_Memcpy
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh3:
	adrp	x8, _botimport@GOTPAGE
Lloh4:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	blr	x8
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BotDumpGoalStack
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GOALSTACK,4,2              ; @MAX_GOALSTACK
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"goal heap overflow\n"

.subsections_via_symbols
