	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pvr2_encoder_read_words
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pvr2_encoder_read_words:               ## @pvr2_encoder_read_words
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movl	%esi, %edx
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$16, %ebx
	movl	$16, %r13d
	cmovbl	%ebx, %r13d
	movl	$1, %eax
	cmovbl	%eax, %r13d
	movl	%edx, %eax
	shrl	$16, %eax
	cmpl	$1, %r13d
	movq	_FX2CMD_MEM_READ_64BYTES@GOTPCREL(%rip), %rcx
	cmoveq	_FX2CMD_MEM_READ_DWORD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%r15), %rcx
	movl	%esi, (%rcx)
	movzbl	%al, %eax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%rcx)
	movl	%eax, 20(%rcx)
	movzbl	%dh, %eax
	movl	%eax, 24(%rcx)
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movzbl	%dl, %eax
	movl	%eax, 28(%rcx)
	movl	$64, %r8d
	movl	$4, %eax
	cmovel	%eax, %r8d
	movq	%r15, %rdi
	movq	%rcx, %rsi
	movl	$8, %edx
	callq	_pvr2_send_request
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r14d
	movq	%r14, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	movl	%ebx, %esi
	callq	_PVR2_COMPOSE_LE
	movl	%eax, (%r12,%rbx)
	addq	$4, %rbx
	decq	%r14
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %r12
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addl	%r13d, %edx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%r13d, %ebx
	jne	LBB0_2
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FX2CMD_MEM_READ_DWORD,4,2      ## @FX2CMD_MEM_READ_DWORD
	.comm	_FX2CMD_MEM_READ_64BYTES,4,2    ## @FX2CMD_MEM_READ_64BYTES
	.no_dead_strip	_pvr2_encoder_read_words
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pvr2_encoder_read_words
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pvr2_encoder_read_words:               ; @pvr2_encoder_read_words
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	cbz	w3, LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w26, #16
	movi	d8, #0x0000ff000000ff
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d9, [x8, lCPI0_0@PAGEOFF]
	mov	w27, #64
	mov	w28, #4
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	w19, #16
	csel	w8, w19, w26, lo
	csinc	w25, w8, wzr, hs
	cmp	w25, #1
	csel	w4, w28, w27, eq
Lloh2:
	adrp	x8, _FX2CMD_MEM_READ_DWORD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FX2CMD_MEM_READ_DWORD@GOTPAGEOFF]
Lloh4:
	adrp	x9, _FX2CMD_MEM_READ_64BYTES@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FX2CMD_MEM_READ_64BYTES@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	ldr	x1, [x22]
	str	w8, [x1]
	dup.2s	v0, w21
	and	w8, w21, #0xff
	str	w8, [x1, #28]
	ushl.2s	v0, v0, v9
	stur	xzr, [x1, #12]
	stur	xzr, [x1, #4]
	and.8b	v0, v0, v8
	stur	d0, [x1, #20]
	mov	x0, x22
	mov	w2, #8
	mov	x3, x1
	bl	_pvr2_send_request
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, #0
	mov	x24, x25
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x22]
	mov	x1, x23
	bl	_PVR2_COMPOSE_LE
	str	w0, [x20, x23]
	add	x23, x23, #4
	subs	x24, x24, #1
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, x25, lsl #2
	add	w21, w25, w21
	subs	w19, w19, w25
	b.ne	LBB0_2
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FX2CMD_MEM_READ_DWORD,4,2      ; @FX2CMD_MEM_READ_DWORD
	.comm	_FX2CMD_MEM_READ_64BYTES,4,2    ; @FX2CMD_MEM_READ_64BYTES
	.no_dead_strip	_pvr2_encoder_read_words
.subsections_via_symbols
