	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Model_Paint               ## -- Begin function Item_Model_Paint
	.p2align	4, 0x90
_Item_Model_Paint:                      ## @Item_Model_Paint
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	cmpq	$0, 40(%rdi)
	jne	LBB0_1
## %bb.2:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_RDF_NOWORLDMODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	-32(%rbp), %edi
	callq	_AxisClear
	movl	24(%rbx), %eax
	incl	%eax
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -24(%rbp)
	movl	28(%rbx), %eax
	incl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -20(%rbp)
	movl	32(%rbx), %eax
	addl	$-2, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -16(%rbp)
	movl	36(%rbx), %eax
	addl	$-2, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -12(%rbp)
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_AdjustFrom640
	movss	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -104(%rbp)
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -100(%rbp)
	movss	-16(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -96(%rbp)
	movss	-12(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -92(%rbp)
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rbx), %edi
	callq	*32(%rax)
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_RDF_NOWORLDMODEL,4,2           ## @RDF_NOWORLDMODEL
	.comm	_DC,8,3                         ## @DC
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_RF_LIGHTING_ORIGIN,4,2         ## @RF_LIGHTING_ORIGIN
	.comm	_RF_NOSHADOW,4,2                ## @RF_NOSHADOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Item_Model_Paint               ; -- Begin function Item_Model_Paint
	.p2align	2
_Item_Model_Paint:                      ; @Item_Model_Paint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #40]
	cbnz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh0:
	adrp	x8, _RDF_NOWORLDMODEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDF_NOWORLDMODEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #76]
	ldr	w0, [sp, #72]
	bl	_AxisClear
	ldp	w8, w9, [x19, #24]
	add	w8, w8, #1
	scvtf	s0, w8
	add	w8, w9, #1
	scvtf	s1, w8
	stp	s1, s0, [x29, #-24]
	ldp	w8, w9, [x19, #32]
	sub	w8, w8, #2
	scvtf	s2, w8
	sub	w8, w9, #2
	scvtf	s0, w8
	stp	s0, s2, [x29, #-32]
	sub	x0, x29, #20
	sub	x1, x29, #24
	sub	x2, x29, #28
	sub	x3, x29, #32
	bl	_AdjustFrom640
	ldp	s1, s0, [x29, #-24]
	stp	s0, s1, [sp]
	ldp	s1, s0, [x29, #-32]
	stp	s0, s1, [sp, #8]
Lloh3:
	adrp	x8, _DC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, #32]
	ldr	w0, [x19, #8]
	blr	x8
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDF_NOWORLDMODEL,4,2           ; @RDF_NOWORLDMODEL
	.comm	_DC,8,3                         ; @DC
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_RF_LIGHTING_ORIGIN,4,2         ; @RF_LIGHTING_ORIGIN
	.comm	_RF_NOSHADOW,4,2                ; @RF_NOSHADOW
.subsections_via_symbols
