	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_MapCountByGameType
_UI_MapCountByGameType:                 ## @UI_MapCountByGameType
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_uiInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	16(%rax), %rcx
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.4:
	movq	_ui_netGameType@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_ui_gameType@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	movq	_GT_SINGLE_PLAYER@GOTPCREL(%rip), %r8
	xorl	%ecx, %ecx
	cmpl	(%r8), %edx
	sete	%cl
	addl	%edx, %ecx
	movq	_GT_TEAM@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.6:
	movq	_GT_FFA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	movq	8(%rax), %rsi
	movl	$1, %r14d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	xorl	%ecx, %ecx
	movq	_qfalse@GOTPCREL(%rip), %r10
	movq	_qtrue@GOTPCREL(%rip), %r11
	xorl	%eax, %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rcx,%rcx), %rdx
	incl	%eax
	movl	(%r11), %ebx
	movl	%ebx, 4(%rsi,%rdx,4)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %r9
	je	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %ebx
	movl	%ebx, 4(%rsi,%rcx,8)
	movl	(%rsi,%rcx,8), %ebx
	testl	%r14d, %ebx
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r8), %edx
	btl	%edx, %ebx
	jb	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,24,3                    ## @uiInfo
	.comm	_ui_gameType,8,3                ## @ui_gameType
	.comm	_ui_netGameType,8,3             ## @ui_netGameType
	.comm	_GT_SINGLE_PLAYER,4,2           ## @GT_SINGLE_PLAYER
	.comm	_GT_TEAM,4,2                    ## @GT_TEAM
	.comm	_GT_FFA,4,2                     ## @GT_FFA
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_UI_MapCountByGameType
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_MapCountByGameType
_UI_MapCountByGameType:                 ; @UI_MapCountByGameType
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x10, _uiInfo@GOTPAGE
Lloh1:
	ldr	x10, [x10, _uiInfo@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, #0
Lloh2:
	adrp	x11, _ui_netGameType@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ui_netGameType@GOTPAGEOFF]
Lloh4:
	adrp	x12, _ui_gameType@GOTPAGE
Lloh5:
	ldr	x12, [x12, _ui_gameType@GOTPAGEOFF]
	cmp	x0, #0
	csel	x11, x11, x12, eq
	ldr	x11, [x11]
	ldp	x13, x12, [x10, #8]
	ldr	w11, [x12, x11, lsl #2]
Lloh6:
	adrp	x10, _GT_SINGLE_PLAYER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GT_SINGLE_PLAYER@GOTPAGEOFF]
	ldr	w12, [x10]
	cmp	w11, w12
	cinc	w11, w11, eq
Lloh8:
	adrp	x12, _GT_TEAM@GOTPAGE
Lloh9:
	ldr	x12, [x12, _GT_TEAM@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
Lloh11:
	adrp	x14, _GT_FFA@GOTPAGE
Lloh12:
	ldr	x14, [x14, _GT_FFA@GOTPAGEOFF]
Lloh13:
	ldr	w14, [x14]
	cmp	w11, w12
	csel	w11, w14, w11, eq
	mov	w12, #1
	lsl	w11, w12, w11
	add	x12, x13, #4
Lloh14:
	adrp	x13, _qfalse@GOTPAGE
Lloh15:
	ldr	x13, [x13, _qfalse@GOTPAGEOFF]
Lloh16:
	adrp	x14, _qtrue@GOTPAGE
Lloh17:
	ldr	x14, [x14, _qtrue@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	ldr	w15, [x14]
	str	w15, [x12]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x12, #8
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	str	w15, [x12]
	ldur	w15, [x12, #-4]
	tst	w15, w11
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w16, [x10]
	lsr	w15, w15, w16
	tbnz	w15, #0, LBB0_2
	b	LBB0_3
LBB0_7:
	mov	x0, x8
	ret
LBB0_8:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,24,3                    ; @uiInfo
	.comm	_ui_gameType,8,3                ; @ui_gameType
	.comm	_ui_netGameType,8,3             ; @ui_netGameType
	.comm	_GT_SINGLE_PLAYER,4,2           ; @GT_SINGLE_PLAYER
	.comm	_GT_TEAM,4,2                    ; @GT_TEAM
	.comm	_GT_FFA,4,2                     ; @GT_FFA
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_UI_MapCountByGameType
.subsections_via_symbols
