	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Pickup_f                   ## -- Begin function Cmd_Pickup_f
	.p2align	4, 0x90
_Cmd_Pickup_f:                          ## @Cmd_Pickup_f
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_TOKEN_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_g_cheats@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_trap_Argc
	cmpl	$3, %eax
	jne	LBB0_7
## %bb.5:
	movl	$2, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_trap_Argv
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ecx, %edx
	callq	_ClientNumberFromString
	movq	_g_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.10:
	cltq
	leaq	(%rcx,%rax,4), %r12
	jmp	LBB0_11
LBB0_1:
	movq	_g_entities@GOTPCREL(%rip), %rax
	subq	(%rax), %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.2:
	shrq	$2, %r12
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	callq	_trap_Argc
	cmpl	$2, %eax
	jne	LBB0_8
LBB0_11:
	movl	$1, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_trap_Argv
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, %r15d
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.12:
	xorl	%ebx, %ebx
	movq	_g_entities@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	(%rdi,%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	%ecx, %r15d
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_Touch_Item
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_8:
	movq	_g_entities@GOTPCREL(%rip), %rax
	subq	(%rax), %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.9:
	shrq	$2, %r12
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	%r12d, %edi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_SendServerCommand         ## TAILCALL
LBB0_6:
	subq	%rcx, %r12
	shrq	$2, %r12
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	callq	_trap_SendServerCommand
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOKEN_CHARS,4,2            ## @MAX_TOKEN_CHARS
	.comm	_g_cheats,4,2                   ## @g_cheats
	.comm	_g_entities,8,3                 ## @g_entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"print \"Cheats are not enabled on this server.\n\""

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"print \"Invalid player name\n\""

L_.str.2:                               ## @.str.2
	.asciz	"print \"usage: pickup id <optional player name>\n\""

	.comm	_level,4,2                      ## @level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Pickup_f                   ; -- Begin function Cmd_Pickup_f
	.p2align	2
_Cmd_Pickup_f:                          ; @Cmd_Pickup_f
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_TOKEN_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TOKEN_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _g_cheats@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_cheats@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	bl	_trap_Argc
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.2:
	mov	w0, #2
	mov	x1, x21
	mov	x2, x20
	bl	_trap_Argv
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x2
	bl	_ClientNumberFromString
Lloh14:
	adrp	x8, _g_entities@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.3:
	add	x19, x8, w0, sxtw #2
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _g_entities@GOTPAGE
Lloh18:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldur	x9, [x29, #-56]
Lloh20:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_18
; %bb.5:
	sub	x8, x19, x8
	lsr	x0, x8, #2
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_6:
	bl	_trap_Argc
	cmp	w0, #2
	b.ne	LBB0_12
LBB0_7:
	mov	w0, #1
	mov	x1, x21
	mov	x2, x20
	bl	_trap_Argv
	mov	x0, x21
	bl	_atoi
Lloh25:
	adrp	x21, _level@GOTPAGE
Lloh26:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.8:
	mov	x20, x0
	mov	x22, #0
	mov	x23, #0
Lloh27:
	adrp	x24, _g_entities@GOTPAGE
Lloh28:
	ldr	x24, [x24, _g_entities@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	add	x22, x22, #4
	cmp	x23, w8, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x0, x9, x22
	ldr	w9, [x0]
	cmp	w9, #0
	ccmp	w20, w9, #0, ne
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x19
	mov	x2, #0
	bl	_Touch_Item
	ldr	w8, [x21]
	b	LBB0_9
LBB0_12:
Lloh29:
	adrp	x8, _g_entities@GOTPAGE
Lloh30:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldur	x9, [x29, #-56]
Lloh32:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_18
; %bb.13:
	sub	x8, x19, x8
	lsr	x0, x8, #2
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_trap_SendServerCommand
LBB0_15:
	sub	x8, x19, x8
	lsr	x0, x8, #2
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_trap_SendServerCommand
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOKEN_CHARS,4,2            ; @MAX_TOKEN_CHARS
	.comm	_g_cheats,4,2                   ; @g_cheats
	.comm	_g_entities,8,3                 ; @g_entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"print \"Cheats are not enabled on this server.\n\""

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"print \"Invalid player name\n\""

l_.str.2:                               ; @.str.2
	.asciz	"print \"usage: pickup id <optional player name>\n\""

	.comm	_level,4,2                      ; @level
.subsections_via_symbols
