	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LoadPCX32
_LoadPCX32:                             ## @LoadPCX32
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_LoadPCX
	cmpq	$0, -32(%rbp)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ebx
	imull	(%r15), %ebx
	movq	_ri@GOTPCREL(%rip), %r15
	leal	(,%rbx,4), %edi
	callq	*(%r15)
	movq	%rax, (%r14)
	movq	-32(%rbp), %rdi
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.3:
	movq	-40(%rbp), %rcx
	movl	%ebx, %r8d
	shlq	$2, %r8
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rdi,%rsi), %rbx
	leaq	(%rbx,%rbx,2), %rbx
	movl	(%rcx,%rbx,4), %edx
	movl	%edx, (%rax,%rsi,4)
	movslq	%ebx, %rdx
	movl	4(%rcx,%rdx,4), %ebx
	movl	%ebx, 4(%rax,%rsi,4)
	movl	8(%rcx,%rdx,4), %edx
	movl	%edx, 8(%rax,%rsi,4)
	movl	$255, 12(%rax,%rsi,4)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_4
LBB0_5:
	callq	*8(%r15)
	movq	-40(%rbp), %rdi
	callq	*8(%r15)
	jmp	LBB0_6
LBB0_1:
	movq	$0, (%r14)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ri,16,3                        ## @ri
	.no_dead_strip	_LoadPCX32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LoadPCX32
_LoadPCX32:                             ; @LoadPCX32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x1, sp
	add	x2, sp, #8
	mov	x3, x21
	mov	x4, x20
	bl	_LoadPCX
	ldr	x8, [sp]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	ldr	w9, [x20]
	mul	w21, w9, w8
Lloh0:
	adrp	x20, _ri@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ri@GOTPAGEOFF]
	ldr	x8, [x20]
	lsl	w0, w21, #2
	blr	x8
	mov	x8, x0
	str	x0, [x19]
	ldr	x0, [sp]
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [sp, #8]
	mov	w10, #255
	mov	x11, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x12, [x11], #4
	add	x12, x12, x12, lsl #1
	ldr	w13, [x9, x12, lsl #2]
	str	w13, [x8]
	add	x12, x9, w12, sxtw #2
	ldr	w13, [x12, #4]
	str	w13, [x8, #4]
	ldr	w12, [x12, #8]
	stp	w12, w10, [x8, #8]
	add	x8, x8, #16
	subs	x21, x21, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	x8, [x20, #8]
	blr	x8
	ldr	x8, [x20, #8]
	ldr	x0, [sp, #8]
	blr	x8
	b	LBB0_6
LBB0_5:
	str	xzr, [x19]
LBB0_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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ri,16,3                        ; @ri
	.no_dead_strip	_LoadPCX32
.subsections_via_symbols
