	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_PlayerInfo_SetWeapon
_UI_PlayerInfo_SetWeapon:               ## @UI_PlayerInfo_SetWeapon
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, (%r14)
	movl	%ebx, 4(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 32(%r14)
	movq	_WP_NONE@GOTPCREL(%rip), %r14
	cmpl	%ebx, (%r14)
	jne	LBB0_3
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.2:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	16(%rax), %r13
	movq	_bg_itemlist@GOTPCREL(%rip), %r15
	movq	_IT_WEAPON@GOTPCREL(%rip), %rdi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$132, %ebx
	movl	(%r14), %eax
	movl	$132, %ebx
	cmovel	%eax, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, 4(%rsi)
	movups	%xmm0, (%r13)
	movq	$0, 16(%r13)
	cmpl	%eax, %ebx
	je	LBB0_1
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r15), %r12
	cmpq	$0, 56(%r12)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rdi), %rax
	addq	$32, %r12
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	cmpq	$0, 56(%r12)
	leaq	32(%r12), %r12
	je	LBB0_4
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rax, (%r12)
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	%ebx, 8(%r12)
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	callq	_trap_R_RegisterModel
	movq	_IT_WEAPON@GOTPCREL(%rip), %rdi
	xorps	%xmm0, %xmm0
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 32(%rsi)
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	leal	-132(%rbx), %eax
	cmpl	$5, %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	ja	LBB0_14
## %bb.12:
	movl	$49, %ecx
	btl	%eax, %ecx
	jae	LBB0_14
## %bb.13:
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_COM_StripExtension
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_Q_strcat
	movq	%r15, %rdi
	callq	_trap_R_RegisterModel
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
LBB0_14:
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_COM_StripExtension
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_Q_strcat
	movq	%r15, %rdi
	callq	_trap_R_RegisterModel
	movq	%rax, (%r13)
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_23
## %bb.15:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	xorl	%esi, %esi
LBB0_17:
	xorl	%edx, %edx
LBB0_18:
	movl	$1, %ecx
	jmp	LBB0_22
LBB0_19:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	jmp	LBB0_21
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	movl	$1, %edx
LBB0_21:
	xorl	%ecx, %ecx
LBB0_22:
	callq	_MAKERGB
	jmp	LBB0_1
LBB0_23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	movl	$1, %edx
	jmp	LBB0_18
LBB0_24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	$1, %esi
	jmp	LBB0_17
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.comm	_WP_NONE,4,2                    ## @WP_NONE
	.comm	_bg_itemlist,8,3                ## @bg_itemlist
	.comm	_IT_WEAPON,8,3                  ## @IT_WEAPON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_barrel.md3"

L_.str.1:                               ## @.str.1
	.asciz	"_flash.md3"

	.no_dead_strip	_UI_PlayerInfo_SetWeapon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_PlayerInfo_SetWeapon
_UI_PlayerInfo_SetWeapon:               ; @UI_PlayerInfo_SetWeapon
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x23, x0
	str	xzr, [x23, #16]!
	stp	w1, w1, [x0]
	stp	xzr, xzr, [x0, #24]
Lloh8:
	adrp	x25, _WP_NONE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _WP_NONE@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w1
	b.ne	LBB0_3
LBB0_1:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.2:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh13:
	adrp	x26, _bg_itemlist@GOTPAGE
Lloh14:
	ldr	x26, [x26, _bg_itemlist@GOTPAGEOFF]
	mov	w27, #132
Lloh15:
	adrp	x28, _IT_WEAPON@GOTPAGE
Lloh16:
	ldr	x28, [x28, _IT_WEAPON@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cmp	w20, #132
	csel	w20, w8, w27, eq
	str	w20, [x19, #4]
	stp	xzr, xzr, [x23, #8]
	str	xzr, [x23]
	cmp	w20, w8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x9, [x26]
	ldr	x8, [x9, #56]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	add	x24, x9, #48
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x24, #40]
	add	x24, x24, #32
	cbz	x9, LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x9, [x24, #-16]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldur	w9, [x24, #-8]
	cmp	w9, w20
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_trap_R_RegisterModel
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.11:
	sub	w8, w20, #132
	cmp	w8, #5
	b.hi	LBB0_14
; %bb.12:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #49
	tst	w8, w9
	b.eq	LBB0_14
; %bb.13:
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_COM_StripExtension
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_Q_strcat
	mov	x0, x22
	bl	_trap_R_RegisterModel
	str	x0, [x19, #24]
LBB0_14:
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_COM_StripExtension
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_Q_strcat
	mov	x0, x22
	bl	_trap_R_RegisterModel
	str	x0, [x23]
	sub	w8, w20, #128
	cmp	w8, #9
	b.hi	LBB0_23
; %bb.15:
Lloh21:
	adrp	x9, lJTI0_0@PAGE
Lloh22:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
	ldr	w0, [x19, #8]
	mov	w1, #0
LBB0_17:
	mov	w2, #0
LBB0_18:
	mov	w3, #1
	b	LBB0_22
LBB0_19:
	ldr	w0, [x19, #8]
	mov	w1, #1
	mov	w2, #0
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19, #8]
	mov	w1, #1
	mov	w2, #1
LBB0_21:
	mov	w3, #0
LBB0_22:
	bl	_MAKERGB
	b	LBB0_1
LBB0_23:
	ldr	w0, [x19, #8]
	mov	w1, #1
	mov	w2, #1
	b	LBB0_18
LBB0_24:
	ldr	w0, [x19, #8]
	mov	w1, #1
	b	LBB0_17
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_20-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_24-LBB0_16)>>2
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.comm	_WP_NONE,4,2                    ; @WP_NONE
	.comm	_bg_itemlist,8,3                ; @bg_itemlist
	.comm	_IT_WEAPON,8,3                  ; @IT_WEAPON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_barrel.md3"

l_.str.1:                               ; @.str.1
	.asciz	"_flash.md3"

	.no_dead_strip	_UI_PlayerInfo_SetWeapon
.subsections_via_symbols
