	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function UI_DrawPlayer
LCPI0_0:
	.long	0x44200000                      ## float 640
LCPI0_1:
	.long	0x42b40000                      ## float 90
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_UI_DrawPlayer
	.p2align	4, 0x90
_UI_DrawPlayer:                         ## @UI_DrawPlayer
	.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
	subq	$480, %rsp                      ## imm = 0x1E0
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm0, -32(%rbp)
	movss	%xmm1, -20(%rbp)
	movss	%xmm2, -28(%rbp)
	movss	%xmm3, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -400(%rbp)
	movaps	%xmm0, -416(%rbp)
	movaps	%xmm0, -432(%rbp)
	movaps	%xmm0, -448(%rbp)
	movaps	%xmm0, -464(%rbp)
	movaps	%xmm0, -480(%rbp)
	movaps	%xmm0, -496(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	movaps	%xmm0, -320(%rbp)
	movaps	%xmm0, -336(%rbp)
	movaps	%xmm0, -352(%rbp)
	movaps	%xmm0, -368(%rbp)
	movaps	%xmm0, -384(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	cmpq	$0, 128(%rdi)
	je	LBB0_9
## %bb.1:
	cmpq	$0, 104(%rdi)
	je	LBB0_9
## %bb.2:
	cmpq	$0, 120(%rdi)
	je	LBB0_9
## %bb.3:
	movq	144(%rdi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_9:
	addq	$480, %rsp                      ## imm = 0x1E0
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_dp_realtime@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	(%rdi), %rax
	movq	_WP_NUM_WEAPONS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.5:
	cmpl	%esi, 8(%rdi)
	jge	LBB0_8
## %bb.6:
	movq	%rax, 16(%rdi)
	movq	%rax, 24(%rdi)
	movq	%rcx, (%rdi)
	movl	$0, 8(%rdi)
	cmpq	%rax, 32(%rdi)
	je	LBB0_8
## %bb.7:
	movq	_weaponChangeSound@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CHAN_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_trap_S_StartLocalSound
LBB0_8:
	leaq	-32(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	_UI_AdjustFrom640
	movq	_jumpHeight@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssq	(%rax), %xmm0
	movss	-20(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movss	%xmm1, -20(%rbp)
	leaq	-152(%rbp), %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	leaq	-496(%rbp), %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	leaq	-384(%rbp), %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	leaq	-272(%rbp), %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movq	_RDF_NOWORLDMODEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %edi
	callq	_AxisClear
	movss	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -152(%rbp)
	movss	-20(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -148(%rbp)
	movss	-28(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -144(%rbp)
	movss	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	_uis@GOTPCREL(%rip), %r14
	divss	(%r14), %xmm1
	movss	%xmm1, -36(%rbp)                ## 4-byte Spill
	divss	LCPI0_0(%rip), %xmm1
	mulss	LCPI0_1(%rip), %xmm1
	movss	%xmm0, -140(%rbp)
	cvttss2si	%xmm1, %eax
	movl	%eax, -136(%rbp)
	cltq
	imulq	$-1240768329, %rax, %rcx        ## imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$8, %eax
	addl	%ecx, %eax
	movq	_M_PI@GOTPCREL(%rip), %rbx
	imull	(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	callq	_tan
	movss	-36(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r14), %xmm0
	movss	-140(%rbp), %xmm1               ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %edi
	movaps	%xmm2, %xmm0
	callq	_atan2
	movl	%eax, %ecx
	movl	$360, %eax                      ## imm = 0x168
	xorl	%edx, %edx
	idivl	(%rbx)
	imull	%ecx, %eax
	movl	%eax, -132(%rbp)
	movl	-136(%rbp), %edi
	callq	_DEG2RAD
	mulsd	LCPI0_2(%rip), %xmm0
	callq	_tan
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_dp_realtime,4,2                ## @dp_realtime
	.comm	_WP_NUM_WEAPONS,8,3             ## @WP_NUM_WEAPONS
	.comm	_weaponChangeSound,4,2          ## @weaponChangeSound
	.comm	_CHAN_LOCAL,4,2                 ## @CHAN_LOCAL
	.comm	_jumpHeight,8,3                 ## @jumpHeight
	.comm	_RDF_NOWORLDMODEL,4,2           ## @RDF_NOWORLDMODEL
	.comm	_uis,8,2                        ## @uis
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_RF_LIGHTING_ORIGIN,4,2         ## @RF_LIGHTING_ORIGIN
	.comm	_RF_NOSHADOW,4,2                ## @RF_NOSHADOW
	.comm	_WP_NONE,8,3                    ## @WP_NONE
	.comm	_WP_RAILGUN,8,3                 ## @WP_RAILGUN
	.comm	_colorWhite,4,2                 ## @colorWhite
	.comm	_WP_MACHINEGUN,8,3              ## @WP_MACHINEGUN
	.comm	_WP_GAUNTLET,8,3                ## @WP_GAUNTLET
	.comm	_WP_BFG,8,3                     ## @WP_BFG
	.comm	_YAW,8,3                        ## @YAW
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_ROLL,8,3                       ## @ROLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawPlayer                  ; -- Begin function UI_DrawPlayer
	.p2align	2
_UI_DrawPlayer:                         ; @UI_DrawPlayer
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	sub	sp, sp, #464
	stp	s1, s0, [x29, #-56]
	stp	s3, s2, [x29, #-64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #304]
	stp	q0, q0, [sp, #272]
	stp	q0, q0, [sp, #240]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x8, [x0, #128]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x0, #104]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x0, #120]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x0, #144]
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
LBB0_4:
	add	sp, sp, #464
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh0:
	adrp	x8, _dp_realtime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dp_realtime@GOTPAGEOFF]
Lloh2:
	str	w1, [x8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _WP_NUM_WEAPONS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WP_NUM_WEAPONS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
	ldr	w10, [x0, #8]
	cmp	w10, w1
	b.ge	LBB0_9
; %bb.7:
	stp	x8, x8, [x0, #16]
	str	x9, [x0]
	str	wzr, [x0, #8]
	ldr	x9, [x0, #32]
	cmp	x9, x8
	b.eq	LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _weaponChangeSound@GOTPAGE
Lloh7:
	ldr	x8, [x8, _weaponChangeSound@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CHAN_LOCAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CHAN_LOCAL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_trap_S_StartLocalSound
LBB0_9:
	sub	x0, x29, #52
	sub	x1, x29, #56
	sub	x2, x29, #60
	sub	x3, x29, #64
	bl	_UI_AdjustFrom640
Lloh12:
	adrp	x8, _jumpHeight@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jumpHeight@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	scvtf	s0, x8
	ldur	s1, [x29, #-56]
	fsub	s0, s1, s0
	stur	s0, [x29, #-56]
	sub	x0, x29, #176
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	add	x0, sp, #224
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	add	x0, sp, #112
	mov	w1, #0
	mov	w2, #112
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #112
	bl	_memset
Lloh15:
	adrp	x8, _RDF_NOWORLDMODEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDF_NOWORLDMODEL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stur	w8, [x29, #-72]
	ldur	w0, [x29, #-76]
	bl	_AxisClear
	ldp	s1, s0, [x29, #-56]
	stp	s0, s1, [x29, #-176]
	ldp	s1, s0, [x29, #-64]
Lloh18:
	adrp	x19, _uis@GOTPAGE
Lloh19:
	ldr	x19, [x19, _uis@GOTPAGEOFF]
	stp	s0, s1, [x29, #-168]
	ldr	s1, [x19]
	fdiv	s8, s0, s1
	mov	w8, #1142947840
	fmov	s0, w8
	fdiv	s0, s8, s0
	mov	w8, #1119092736
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	stur	w8, [x29, #-160]
	mov	w9, #24759
	movk	w9, #46603, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #8
	add	w8, w9, w8, lsr #31
Lloh20:
	adrp	x20, _M_PI@GOTPAGE
Lloh21:
	ldr	x20, [x20, _M_PI@GOTPAGEOFF]
	ldr	w9, [x20]
	mul	w8, w8, w9
	scvtf	d0, w8
	bl	_tan
	fdiv	s0, s8, s0
	ldur	s1, [x29, #-164]
	ldr	s2, [x19, #4]
	scvtf	s2, s2
	fdiv	s1, s1, s2
	fcvtzs	w0, s1
	bl	_atan2
	ldr	w8, [x20]
	mov	w9, #360
	sdiv	w8, w9, w8
	mul	w8, w8, w0
	stur	w8, [x29, #-156]
	ldur	w0, [x29, #-160]
	bl	_DEG2RAD
	fmov	d1, #0.50000000
	fmul	d0, d0, d1
	bl	_tan
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_dp_realtime,4,2                ; @dp_realtime
	.comm	_WP_NUM_WEAPONS,8,3             ; @WP_NUM_WEAPONS
	.comm	_weaponChangeSound,4,2          ; @weaponChangeSound
	.comm	_CHAN_LOCAL,4,2                 ; @CHAN_LOCAL
	.comm	_jumpHeight,8,3                 ; @jumpHeight
	.comm	_RDF_NOWORLDMODEL,4,2           ; @RDF_NOWORLDMODEL
	.comm	_uis,8,2                        ; @uis
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_RF_LIGHTING_ORIGIN,4,2         ; @RF_LIGHTING_ORIGIN
	.comm	_RF_NOSHADOW,4,2                ; @RF_NOSHADOW
	.comm	_WP_NONE,8,3                    ; @WP_NONE
	.comm	_WP_RAILGUN,8,3                 ; @WP_RAILGUN
	.comm	_colorWhite,4,2                 ; @colorWhite
	.comm	_WP_MACHINEGUN,8,3              ; @WP_MACHINEGUN
	.comm	_WP_GAUNTLET,8,3                ; @WP_GAUNTLET
	.comm	_WP_BFG,8,3                     ; @WP_BFG
	.comm	_YAW,8,3                        ; @YAW
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_ROLL,8,3                       ; @ROLL
.subsections_via_symbols
