	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_DrawClanCinematic
_UI_DrawClanCinematic:                  ## @UI_DrawClanCinematic
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_UI_Cvar_VariableString
	movl	%eax, %edi
	callq	_UI_TeamIndexFromName
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_uiInfo@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jge	LBB0_7
## %bb.2:
	movq	8(%r15), %rcx
	movl	%eax, %r12d
	shlq	$4, %r12
	movl	(%rcx,%r12), %edi
	cmpl	$-2, %edi
	jl	LBB0_9
## %bb.3:
	cmpl	$-1, %edi
	je	LBB0_4
## %bb.5:
	testl	%edi, %edi
	js	LBB0_6
LBB0_8:
	callq	_trap_CIN_RunCinematic
	movq	8(%r15), %rax
	movl	(%rax,%r12), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DrawCinematic               ## TAILCALL
LBB0_9:
	movq	%r14, %rdi
	callq	_trap_R_SetColor
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	8(%r15), %rax
	movl	4(%rax,%r12), %r8d
	callq	_UI_DrawHandlePic
	xorl	%edi, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_R_SetColor                ## TAILCALL
LBB0_4:
	movl	12(%rcx,%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_va
	movq	_CIN_loop@GOTPCREL(%rip), %rcx
	movq	_CIN_silent@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rcx), %r9d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_CIN_PlayCinematic
	movl	%eax, %edi
	movq	8(%r15), %rax
	movl	%edi, (%rax,%r12)
	testl	%edi, %edi
	jns	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_trap_R_SetColor
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	8(%r15), %rax
	movl	8(%rax,%r12), %r8d
	callq	_UI_DrawHandlePic
	xorl	%edi, %edi
	callq	_trap_R_SetColor
	movq	8(%r15), %rax
	movl	$-2, (%rax,%r12)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ui_teamName"

	.comm	_uiInfo,16,3                    ## @uiInfo
L_.str.1:                               ## @.str.1
	.asciz	"%s.roq"

	.comm	_CIN_loop,4,2                   ## @CIN_loop
	.comm	_CIN_silent,4,2                 ## @CIN_silent
	.no_dead_strip	_UI_DrawClanCinematic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DrawClanCinematic
_UI_DrawClanCinematic:                  ; @UI_DrawClanCinematic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UI_Cvar_VariableString
	bl	_UI_TeamIndexFromName
	tbnz	w0, #31, LBB0_9
; %bb.1:
Lloh2:
	adrp	x21, _uiInfo@GOTPAGE
Lloh3:
	ldr	x21, [x21, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.2:
	ldr	x8, [x21, #8]
	mov	w23, w0
	lsl	x22, x23, #4
	ldr	w0, [x8, x22]
	cmn	w0, #2
	b.lt	LBB0_6
; %bb.3:
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
	tbnz	w0, #31, LBB0_8
LBB0_5:
	bl	_trap_CIN_RunCinematic
	ldr	x8, [x21, #8]
	ldr	w0, [x8, x22]
	ldp	w2, w1, [x19, #8]
	ldp	w4, w3, [x19]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_UI_DrawCinematic
LBB0_6:
	mov	x0, x20
	bl	_trap_R_SetColor
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	ldr	x8, [x21, #8]
	add	x8, x8, x23, lsl #4
	ldr	w4, [x8, #4]
	bl	_UI_DrawHandlePic
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_trap_R_SetColor
LBB0_7:
	add	x8, x8, x22
	ldr	w1, [x8, #12]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_va
Lloh6:
	adrp	x8, _CIN_loop@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CIN_loop@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _CIN_silent@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CIN_silent@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_CIN_PlayCinematic
	ldr	x8, [x21, #8]
	str	w0, [x8, x22]
	tbz	w0, #31, LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_trap_R_SetColor
	ldp	w1, w0, [x19, #8]
	ldp	w3, w2, [x19]
	ldr	x8, [x21, #8]
	add	x8, x8, x22
	ldr	w4, [x8, #8]
	bl	_UI_DrawHandlePic
	mov	x0, #0
	bl	_trap_R_SetColor
	ldr	x8, [x21, #8]
	mov	w9, #-2
	str	w9, [x8, x22]
LBB0_9:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ui_teamName"

	.comm	_uiInfo,16,3                    ; @uiInfo
l_.str.1:                               ; @.str.1
	.asciz	"%s.roq"

	.comm	_CIN_loop,4,2                   ; @CIN_loop
	.comm	_CIN_silent,4,2                 ; @CIN_silent
	.no_dead_strip	_UI_DrawClanCinematic
.subsections_via_symbols
