	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CallSpawn                    ## -- Begin function G_CallSpawn
	.p2align	4, 0x90
_G_CallSpawn:                           ## @G_CallSpawn
	.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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_bg_itemlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	movl	(%r14), %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_G_SpawnItem
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_G_Printf
	jmp	LBB0_12
LBB0_6:
	movq	_spawns@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_8
LBB0_11:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_G_Printf
LBB0_12:
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	callq	*(%rbx)
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"G_CallSpawn: NULL classname\n"

	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_spawns,8,3                     ## @spawns
L_.str.1:                               ## @.str.1
	.asciz	"%s doesn't have a spawn function\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CallSpawn                    ; -- Begin function G_CallSpawn
	.p2align	2
_G_CallSpawn:                           ; @G_CallSpawn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _bg_itemlist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bg_itemlist@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]!
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x19]
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_G_SpawnItem
	b	LBB0_12
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _spawns@GOTPAGE
Lloh6:
	ldr	x8, [x8, _spawns@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x20, #24]
	add	x20, x20, #16
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	w8, [x19]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_G_Printf
Lloh10:
	adrp	x8, _qfalse@GOTPAGE
Lloh11:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	x8, [x20]
	mov	x0, x19
	blr	x8
LBB0_12:
Lloh12:
	adrp	x8, _qtrue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"G_CallSpawn: NULL classname\n"

	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_spawns,8,3                     ; @spawns
l_.str.1:                               ; @.str.1
	.asciz	"%s doesn't have a spawn function\n"

.subsections_via_symbols
