	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_DrawHoldableItem
_CG_DrawHoldableItem:                   ## @CG_DrawHoldableItem
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_STAT_HOLDABLE_ITEM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_CG_RegisterItemVisuals
	movq	_ICON_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$640, %edi                      ## imm = 0x280
	subl	%ecx, %edi
	movq	_SCREEN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ecx, %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	_cg_items@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	%ecx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_CG_DrawPic                     ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,8,3                         ## @cg
	.comm	_STAT_HOLDABLE_ITEM,8,3         ## @STAT_HOLDABLE_ITEM
	.comm	_ICON_SIZE,4,2                  ## @ICON_SIZE
	.comm	_SCREEN_HEIGHT,4,2              ## @SCREEN_HEIGHT
	.comm	_cg_items,8,3                   ## @cg_items
	.no_dead_strip	_CG_DrawHoldableItem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DrawHoldableItem
_CG_DrawHoldableItem:                   ; @CG_DrawHoldableItem
	.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
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _STAT_HOLDABLE_ITEM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STAT_HOLDABLE_ITEM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrsw	x19, [x8, x9, lsl #2]
	cbz	w19, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_CG_RegisterItemVisuals
Lloh6:
	adrp	x8, _ICON_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICON_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w8, #640
	sub	w0, w8, w2
Lloh9:
	adrp	x8, _SCREEN_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCREEN_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, w2
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh12:
	adrp	x9, _cg_items@GOTPAGE
Lloh13:
	ldr	x9, [x9, _cg_items@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w4, [x9, x19, lsl #2]
	asr	w1, w8, #1
	mov	x3, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CG_DrawPic
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,8,3                         ; @cg
	.comm	_STAT_HOLDABLE_ITEM,8,3         ; @STAT_HOLDABLE_ITEM
	.comm	_ICON_SIZE,4,2                  ; @ICON_SIZE
	.comm	_SCREEN_HEIGHT,4,2              ; @SCREEN_HEIGHT
	.comm	_cg_items,8,3                   ; @cg_items
	.no_dead_strip	_CG_DrawHoldableItem
.subsections_via_symbols
