	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PlayerModel_PicEvent
_PlayerModel_PicEvent:                  ## @PlayerModel_PicEvent
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	_PLAYERGRID_ROWS@GOTPCREL(%rip), %r8
	movq	_PLAYERGRID_COLS@GOTPCREL(%rip), %r9
	movl	(%r9), %edx
	imull	(%r8), %edx
	movq	_s_playermodel@GOTPCREL(%rip), %r15
	movq	32(%r15), %rax
	movq	40(%r15), %rcx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_QMF_HIGHLIGHT@GOTPCREL(%rip), %r10
	movq	_QMF_PULSEIFFOCUS@GOTPCREL(%rip), %r11
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %edx
	notl	%edx
	andl	%edx, (%rcx,%rbx,4)
	movl	(%r11), %edx
	orl	%edx, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r8), %rdx
	movslq	(%r9), %rsi
	imulq	%rdx, %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_3
LBB0_4:
	movslq	(%rdi), %rdx
	movq	_ID_PLAYERPIC0@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	subq	%rsi, %rdx
	movq	_QMF_HIGHLIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, (%rcx,%rdx,4)
	movq	_QMF_PULSEIFFOCUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax,%rdx,4)
	movq	_MAX_MODELSPERPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	imull	(%r15), %r12d
	addl	%edx, %r12d
	movq	8(%r15), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %r14
	leaq	L_.str(%rip), %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r14, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %r14
	movl	28(%r15), %edi
	movl	%r14d, %r13d
	subl	%ebx, %r13d
	leal	1(%r13), %edx
	movq	%rbx, %rsi
	callq	_Q_strncpyz
	movl	28(%r15), %edi
	addq	$5, %r14
	movq	%r14, %rsi
	callq	_strcat
	cmpl	$16, %r13d
	movl	$16, %edx
	cmovll	%r13d, %edx
	movl	24(%r15), %edi
	movq	%rbx, %rsi
	callq	_Q_strncpyz
	movl	24(%r15), %edi
	callq	_Q_strupr
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$15, %eax
	movl	$15, %edx
	cmovll	%eax, %edx
	incl	%edx
	movl	20(%r15), %edi
	movq	%r14, %rsi
	callq	_Q_strncpyz
	movl	20(%r15), %edi
	callq	_Q_strupr
	movl	%r12d, 16(%r15)
	xorl	%eax, %eax
	callq	_trap_MemoryRemaining
	movq	_LOW_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PlayerModel_UpdateModel        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_PLAYERGRID_ROWS,4,2            ## @PLAYERGRID_ROWS
	.comm	_PLAYERGRID_COLS,4,2            ## @PLAYERGRID_COLS
	.comm	_QMF_HIGHLIGHT,4,2              ## @QMF_HIGHLIGHT
	.comm	_s_playermodel,48,3             ## @s_playermodel
	.comm	_QMF_PULSEIFFOCUS,4,2           ## @QMF_PULSEIFFOCUS
	.comm	_ID_PLAYERPIC0,4,2              ## @ID_PLAYERPIC0
	.comm	_MAX_MODELSPERPAGE,4,2          ## @MAX_MODELSPERPAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"models/players/"

L_.str.1:                               ## @.str.1
	.asciz	"icon_"

	.comm	_LOW_MEMORY,8,3                 ## @LOW_MEMORY
	.no_dead_strip	_PlayerModel_PicEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PlayerModel_PicEvent
_PlayerModel_PicEvent:                  ; @PlayerModel_PicEvent
	.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
Lloh0:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x11, _PLAYERGRID_ROWS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PLAYERGRID_ROWS@GOTPAGEOFF]
Lloh5:
	adrp	x12, _PLAYERGRID_COLS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PLAYERGRID_COLS@GOTPAGEOFF]
	ldr	w8, [x11]
	ldr	w9, [x12]
	mul	w14, w9, w8
Lloh7:
	adrp	x21, _s_playermodel@GOTPAGE
Lloh8:
	ldr	x21, [x21, _s_playermodel@GOTPAGEOFF]
	ldp	x8, x9, [x21, #32]
Lloh9:
	adrp	x13, _QMF_HIGHLIGHT@GOTPAGE
Lloh10:
	ldr	x13, [x13, _QMF_HIGHLIGHT@GOTPAGEOFF]
Lloh11:
	adrp	x10, _QMF_PULSEIFFOCUS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QMF_PULSEIFFOCUS@GOTPAGEOFF]
	cmp	w14, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x14, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x13]
	lsl	x16, x14, #2
	ldr	w17, [x9, x16]
	bic	w15, w17, w15
	str	w15, [x9, x16]
	ldr	w15, [x10]
	ldr	w17, [x8, x16]
	orr	w15, w17, w15
	str	w15, [x8, x16]
	add	x14, x14, #1
	ldrsw	x15, [x11]
	ldrsw	x16, [x12]
	mul	x15, x16, x15
	cmp	x14, x15
	b.lt	LBB0_3
LBB0_4:
Lloh13:
	adrp	x11, _ID_PLAYERPIC0@GOTPAGE
Lloh14:
	ldr	x11, [x11, _ID_PLAYERPIC0@GOTPAGEOFF]
	ldr	w12, [x0]
Lloh15:
	ldr	w11, [x11]
	sub	w11, w12, w11
	sbfiz	x12, x11, #2, #32
	ldr	w14, [x9, x12]
	ldr	w13, [x13]
	orr	w13, w14, w13
	str	w13, [x9, x12]
	ldr	w9, [x8, x12]
	ldr	w10, [x10]
	bic	w9, w9, w10
	str	w9, [x8, x12]
Lloh16:
	adrp	x8, _MAX_MODELSPERPAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_MODELSPERPAGE@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh18:
	ldr	w8, [x8]
	madd	w22, w8, w9, w11
	ldr	x8, [x21, #8]
	ldr	x19, [x8, w22, sxtw #3]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strlen
	add	x19, x19, w0, sxtw
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w0, [x21, #28]
	sub	w23, w20, w19
	add	w2, w23, #1
	mov	x1, x19
	bl	_Q_strncpyz
	ldr	w0, [x21, #28]
	add	x20, x20, #5
	mov	x1, x20
	bl	_strcat
	mov	w8, #16
	cmp	w23, #16
	csel	w2, w23, w8, lt
	ldr	w0, [x21, #24]
	mov	x1, x19
	bl	_Q_strncpyz
	ldr	w0, [x21, #24]
	bl	_Q_strupr
	mov	x0, x20
	bl	_strlen
	mov	w8, #15
	cmp	w0, #15
	csel	w8, w0, w8, lt
	add	w2, w8, #1
	ldr	w0, [x21, #20]
	mov	x1, x20
	bl	_Q_strncpyz
	ldr	w0, [x21, #20]
	bl	_Q_strupr
	str	w22, [x21, #16]
	bl	_trap_MemoryRemaining
Lloh23:
	adrp	x8, _LOW_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LOW_MEMORY@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.6:
	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	_PlayerModel_UpdateModel
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_PLAYERGRID_ROWS,4,2            ; @PLAYERGRID_ROWS
	.comm	_PLAYERGRID_COLS,4,2            ; @PLAYERGRID_COLS
	.comm	_QMF_HIGHLIGHT,4,2              ; @QMF_HIGHLIGHT
	.comm	_s_playermodel,48,3             ; @s_playermodel
	.comm	_QMF_PULSEIFFOCUS,4,2           ; @QMF_PULSEIFFOCUS
	.comm	_ID_PLAYERPIC0,4,2              ; @ID_PLAYERPIC0
	.comm	_MAX_MODELSPERPAGE,4,2          ; @MAX_MODELSPERPAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"models/players/"

l_.str.1:                               ; @.str.1
	.asciz	"icon_"

	.comm	_LOW_MEMORY,8,3                 ; @LOW_MEMORY
	.no_dead_strip	_PlayerModel_PicEvent
.subsections_via_symbols
