	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_DrawMedal
LCPI0_0:
	.long	0x42480000                      ## float 50
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CG_DrawMedal
	.p2align	4, 0x90
_CG_DrawMedal:                          ## @CG_DrawMedal
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	movq	%rsi, %rbx
                                        ## kill: def $edi killed $edi def $rdi
	movq	_cg@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movabsq	$4598175219545276416, %rdx      ## imm = 0x3FD0000000000000
	movq	%rdx, 24(%r14)
	leal	-128(%rdi), %edx
	cmpl	$7, %edx
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_2:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$20, %rax
	jmp	LBB0_11
LBB0_4:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$16, %rax
	jmp	LBB0_11
LBB0_5:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$24, %rax
	jmp	LBB0_11
LBB0_6:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$12, %rax
	jmp	LBB0_11
LBB0_7:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$8, %rax
	jmp	LBB0_11
LBB0_8:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$28, %rax
	jmp	LBB0_11
LBB0_9:
	shlq	$5, %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	jmp	LBB0_11
LBB0_10:
	shlq	$5, %rcx
	addq	%rcx, %rax
LBB0_11:
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_3
## %bb.12:
	cmpl	$128, %edi
	je	LBB0_16
## %bb.13:
	cmpl	$135, %edi
	jne	LBB0_17
## %bb.14:
	cvttss2si	%xmm1, %esi
	leaq	L_.str(%rip), %rdi
	movss	%xmm1, -40(%rbp)                ## 4-byte Spill
	callq	_va
	movq	%rax, %r12
	movss	-40(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	ja	LBB0_18
	jmp	LBB0_19
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_19
LBB0_16:
	leaq	L_.str.2(%rip), %r12
	xorps	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	jne	LBB0_18
	jp	LBB0_18
	jmp	LBB0_19
LBB0_17:
	cvttss2si	%xmm1, %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	movq	%rax, %r12
LBB0_18:
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, 24(%r14)
LBB0_19:
	movq	%r14, %rdi
	callq	_trap_R_SetColor
	movq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movq	8(%rbx), %rdx
	movl	%r15d, %ecx
	callq	_CG_DrawPic
	testq	%r12, %r12
	je	LBB0_21
## %bb.20:
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, 24(%r14)
	movq	%r12, %rdi
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	xorl	%esi, %esi
	callq	_CG_Text_Width
	xorps	%xmm1, %xmm1
	cvtsi2ssq	24(%rbx), %xmm1
	movss	(%rbx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm2
	mulss	LCPI0_1(%rip), %xmm2
	addss	%xmm1, %xmm2
	cvttss2si	%xmm2, %rdi
	movq	16(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	10(%rax,%rcx), %rsi
	movl	$0, (%rsp)
	movss	-36(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CG_Text_Paint
LBB0_21:
	xorl	%edi, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_R_SetColor                ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_cg,16,3                        ## @cg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i%%"

L_.str.1:                               ## @.str.1
	.asciz	"%i"

L_.str.2:                               ## @.str.2
	.asciz	"Wow"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_DrawMedal                   ; -- Begin function CG_DrawMedal
	.p2align	2
_CG_DrawMedal:                          ; @CG_DrawMedal
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x3
	mov	x19, x2
	fmov	s8, s0
	mov	x20, x1
	mov	x10, #4598175219545276416
Lloh0:
	adrp	x9, _cg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cg@GOTPAGEOFF]
	ldp	x9, x8, [x9]
	str	x10, [x2, #24]
	sub	w10, w0, #128
	cmp	w10, #7
	b.hi	LBB0_14
; %bb.1:
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #20
	b	LBB0_10
LBB0_3:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #16
	b	LBB0_10
LBB0_4:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #24
	b	LBB0_10
LBB0_5:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #12
	b	LBB0_10
LBB0_6:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #8
	b	LBB0_10
LBB0_7:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #28
	b	LBB0_10
LBB0_8:
	add	x8, x8, x9, lsl #5
	add	x8, x8, #4
	b	LBB0_10
LBB0_9:
	add	x8, x8, x9, lsl #5
LBB0_10:
	ldr	s9, [x8]
	fcmp	s9, #0.0
	b.le	LBB0_14
; %bb.11:
	cmp	w0, #128
	b.eq	LBB0_15
; %bb.12:
	cmp	w0, #135
	b.ne	LBB0_16
; %bb.13:
	fcvtzs	w1, s9
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
	mov	x22, x0
	mov	w8, #1112014848
	fmov	s0, w8
	fcmp	s9, s0
	b.gt	LBB0_17
	b	LBB0_18
LBB0_14:
	mov	x22, #0
	b	LBB0_18
LBB0_15:
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
	fcmp	s9, #0.0
	b.ne	LBB0_17
	b	LBB0_18
LBB0_16:
	fcvtzs	w1, s9
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
	mov	x22, x0
LBB0_17:
	mov	x8, #4607182418800017408
	str	x8, [x19, #24]
LBB0_18:
	mov	x0, x19
	bl	_trap_R_SetColor
	ldp	x1, x0, [x20, #16]
	ldr	s0, [x20]
	ldr	x2, [x20, #8]
	mov	x3, x21
	bl	_CG_DrawPic
	cbz	x22, LBB0_20
; %bb.19:
	mov	x8, #4607182418800017408
	str	x8, [x19, #24]
	mov	x0, x22
	fmov	s0, s8
	mov	w1, #0
	bl	_CG_Text_Width
	ldr	x8, [x20, #24]
	scvtf	s1, x8
	ldr	s2, [x20]
	fsub	s0, s2, s0
	fmov	s2, #0.50000000
	fmul	s0, s0, s2
	fadd	s0, s0, s1
	fcvtzs	x0, s0
	ldp	x9, x8, [x20, #8]
	add	x8, x8, x9
	add	x1, x8, #10
	fmov	s0, s8
	mov	x2, x19
	mov	x3, x22
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_CG_Text_Paint
LBB0_20:
	mov	x0, #0
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_trap_R_SetColor
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_cg,16,3                        ; @cg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i%%"

l_.str.1:                               ; @.str.1
	.asciz	"%i"

l_.str.2:                               ; @.str.2
	.asciz	"Wow"

.subsections_via_symbols
