	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function BotChangeViewAngles
LCPI0_0:
	.long	0x43b40000                      ## float 360
LCPI0_1:
	.long	0x3d4ccccd                      ## float 0.0500000007
LCPI0_2:
	.long	0x43700000                      ## float 240
LCPI0_4:
	.long	0x3f800000                      ## float 1
LCPI0_7:
	.long	0x43340000                      ## float 180
LCPI0_8:
	.long	0xc3340000                      ## float -180
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_3:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_6:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_5:
	.quad	0x3fdccccccccccccd              ## double 0.45000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BotChangeViewAngles
	.p2align	4, 0x90
_BotChangeViewAngles:                   ## @BotChangeViewAngles
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movaps	%xmm0, %xmm3
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	_PITCH@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edx
	cmpl	$181, %edx
	jl	LBB0_2
## %bb.1:
	addl	$-360, %edx                     ## imm = 0xFE98
	movl	%edx, (%rax,%rcx,4)
LBB0_2:
	cmpq	$0, 8(%r13)
	js	LBB0_3
## %bb.4:
	movl	36(%r13), %edi
	movq	_CHARACTERISTIC_VIEW_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	movss	%xmm3, -64(%rbp)                ## 4-byte Spill
	callq	_trap_Characteristic_BFloat
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	36(%r13), %edi
	movq	_CHARACTERISTIC_VIEW_MAXCHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	movl	$1800, %ecx                     ## imm = 0x708
	callq	_trap_Characteristic_BFloat
	movss	-64(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_5
LBB0_3:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
LBB0_5:
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	maxss	%xmm0, %xmm2
	mulss	%xmm3, %xmm2
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	movaps	%xmm2, -64(%rbp)                ## 16-byte Spill
	xorps	%xmm2, %xmm0
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movss	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_5(%rip), %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movb	$1, %r15b
	xorl	%ebx, %ebx
	movq	_bot_challenge@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_AngleMod
	movq	16(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_AngleMod
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	16(%r13), %rcx
	movl	(%rcx,%rbx,4), %edi
	movl	%eax, %esi
	callq	_AngleDifference
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movq	24(%r13), %rax
	movss	(%rax,%rbx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	subss	%xmm0, %xmm2
	addss	%xmm1, %xmm2
	movss	LCPI0_7(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cmpltss	%xmm2, %xmm0
	movaps	%xmm0, %xmm1
	andnps	%xmm2, %xmm1
	movaps	-64(%rbp), %xmm3                ## 16-byte Reload
	andps	%xmm3, %xmm0
	orps	%xmm1, %xmm0
	movaps	%xmm0, %xmm1
	cmpltss	LCPI0_8(%rip), %xmm1
	movaps	%xmm1, %xmm2
	andnps	%xmm0, %xmm2
	movaps	-96(%rbp), %xmm4                ## 16-byte Reload
	andps	%xmm4, %xmm1
	orps	%xmm2, %xmm1
	movss	%xmm1, (%rax,%rbx,4)
	movaps	%xmm3, %xmm0
	minss	%xmm1, %xmm0
	movaps	%xmm4, %xmm1
	maxss	%xmm0, %xmm1
	movq	16(%r13), %rax
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rax,%rbx,4), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edi
	movl	%edi, (%rax,%rbx,4)
	callq	_AngleMod
	movq	16(%r13), %rsi
	movl	%eax, (%rsi,%rbx,4)
	movq	24(%r13), %rax
	movss	(%rax,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	mulsd	-72(%rbp), %xmm0                ## 8-byte Folded Reload
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, (%rax,%rbx,4)
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	testb	$1, %r15b
	movl	$0, %r15d
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_AngleDifference
	andpd	LCPI0_6(%rip), %xmm0
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movaps	-64(%rbp), %xmm1                ## 16-byte Reload
	minss	%xmm0, %xmm1
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rcx,%rbx,4), %edi
	movl	(%rax,%rbx,4), %esi
	movaps	%xmm1, %xmm0
	callq	_BotChangeViewAngle
	movq	16(%r13), %rsi
	movl	%eax, (%rsi,%rbx,4)
	jmp	LBB0_9
LBB0_10:
	movq	(%r14), %rax
	movl	(%rsi,%rax,4), %ecx
	cmpl	$181, %ecx
	jl	LBB0_12
## %bb.11:
	addl	$-360, %ecx                     ## imm = 0xFE98
	movl	%ecx, (%rsi,%rax,4)
LBB0_12:
	movl	32(%r13), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_EA_View                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_CHARACTERISTIC_VIEW_FACTOR,4,2 ## @CHARACTERISTIC_VIEW_FACTOR
	.comm	_CHARACTERISTIC_VIEW_MAXCHANGE,4,2 ## @CHARACTERISTIC_VIEW_MAXCHANGE
	.comm	_bot_challenge,8,3              ## @bot_challenge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotChangeViewAngles            ; -- Begin function BotChangeViewAngles
	.p2align	2
_BotChangeViewAngles:                   ; @BotChangeViewAngles
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	fmov	s9, s0
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _PITCH@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PITCH@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w10, [x8, x9, lsl #2]
	cmp	w10, #181
	b.lt	LBB0_2
; %bb.1:
	sub	w10, w10, #360
	str	w10, [x8, x9, lsl #2]
LBB0_2:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_4
; %bb.3:
	ldr	w0, [x19, #36]
Lloh2:
	adrp	x8, _CHARACTERISTIC_VIEW_FACTOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHARACTERISTIC_VIEW_FACTOR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #1
	bl	_trap_Characteristic_BFloat
	fmov	s8, s0
	ldr	w0, [x19, #36]
Lloh5:
	adrp	x8, _CHARACTERISTIC_VIEW_MAXCHANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHARACTERISTIC_VIEW_MAXCHANGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #1800
	bl	_trap_Characteristic_BFloat
	b	LBB0_5
LBB0_4:
	mov	w8, #1135869952
	fmov	s0, w8
	mov	w8, #52429
	movk	w8, #15692, lsl #16
	fmov	s8, w8
LBB0_5:
	mov	w8, #1131413504
	fmov	s1, w8
	fmax	s0, s0, s1
	fmul	s10, s0, s9
	fnmul	s11, s0, s9
	fmov	s0, #1.00000000
	fsub	s0, s0, s8
	fcvt	d0, s0
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16348, lsl #48
	fmov	d1, x8
	fmul	d9, d0, d1
Lloh8:
	adrp	x21, _bot_challenge@GOTPAGE
Lloh9:
	ldr	x21, [x21, _bot_challenge@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	ldr	w0, [x9]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_AngleDifference
	fabs	s0, s0
	fmul	s0, s8, s0
	fcmp	s0, s10
	fcsel	s0, s10, s0, gt
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8]
	bl	_BotChangeViewAngle
	ldr	x8, [x19, #16]
	str	w0, [x8]
	b	LBB0_8
LBB0_7:
	bl	_AngleMod
	ldr	x8, [x19, #16]
	str	w0, [x8]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_AngleMod
	mov	x1, x0
	ldr	x8, [x19]
	str	w1, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_AngleDifference
	fmul	s0, s8, s0
	ldp	x9, x8, [x19, #16]
	ldr	s1, [x8]
	fsub	s0, s1, s0
	fadd	s0, s1, s0
	mov	w10, #1127481344
	fmov	s1, w10
	fcmp	s0, s1
	mov	w10, #-1020002304
	fmov	s1, w10
	fcsel	s0, s10, s0, gt
	fcmp	s0, s1
	fcsel	s0, s11, s0, mi
	str	s0, [x8]
	fcmp	s0, s10
	fcsel	s0, s10, s0, gt
	fcmp	s0, s11
	fcsel	s0, s11, s0, mi
	ldr	s1, [x9]
	scvtf	s1, s1
	fadd	s0, s0, s1
	fcvtzs	w0, s0
	str	w0, [x9]
	bl	_AngleMod
	ldp	x8, x9, [x19, #16]
	str	w0, [x8]
	ldr	s0, [x9]
	fcvt	d0, s0
	fmul	d0, d9, d0
	fcvt	s0, d0
	str	s0, [x9]
LBB0_8:
	ldr	x8, [x21]
	ldr	x9, [x19, #16]
	ldr	w0, [x9, #4]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	bl	_AngleDifference
	fabs	s0, s0
	fmul	s0, s8, s0
	fcmp	s0, s10
	fcsel	s0, s10, s0, gt
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	bl	_BotChangeViewAngle
	ldr	x1, [x19, #16]
	str	w0, [x1, #4]
	b	LBB0_11
LBB0_10:
	bl	_AngleMod
	ldr	x8, [x19, #16]
	str	w0, [x8, #4]
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_AngleMod
	mov	x1, x0
	ldr	x8, [x19]
	str	w1, [x8, #4]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_AngleDifference
	fmul	s0, s8, s0
	ldp	x9, x8, [x19, #16]
	ldr	s1, [x8, #4]
	fsub	s0, s1, s0
	fadd	s0, s1, s0
	mov	w10, #1127481344
	fmov	s1, w10
	fcmp	s0, s1
	mov	w10, #-1020002304
	fmov	s1, w10
	fcsel	s0, s10, s0, gt
	fcmp	s0, s1
	fcsel	s0, s11, s0, mi
	str	s0, [x8, #4]
	fcmp	s0, s10
	fcsel	s0, s10, s0, gt
	fcmp	s0, s11
	fcsel	s0, s11, s0, mi
	ldr	s1, [x9, #4]
	scvtf	s1, s1
	fadd	s0, s0, s1
	fcvtzs	w0, s0
	str	w0, [x9, #4]
	bl	_AngleMod
	ldp	x1, x8, [x19, #16]
	str	w0, [x1, #4]
	ldr	s0, [x8, #4]
	fcvt	d0, s0
	fmul	d0, d9, d0
	fcvt	s0, d0
	str	s0, [x8, #4]
LBB0_11:
	ldr	x8, [x20]
	ldr	w9, [x1, x8, lsl #2]
	cmp	w9, #181
	b.lt	LBB0_13
; %bb.12:
	sub	w9, w9, #360
	str	w9, [x1, x8, lsl #2]
LBB0_13:
	ldr	w0, [x19, #32]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #80             ; 16-byte Folded Reload
	b	_trap_EA_View
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_CHARACTERISTIC_VIEW_FACTOR,4,2 ; @CHARACTERISTIC_VIEW_FACTOR
	.comm	_CHARACTERISTIC_VIEW_MAXCHANGE,4,2 ; @CHARACTERISTIC_VIEW_MAXCHANGE
	.comm	_bot_challenge,8,3              ; @bot_challenge
.subsections_via_symbols
