	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_ReadPixels                  ## -- Begin function RB_ReadPixels
	.p2align	4, 0x90
_RB_ReadPixels:                         ## @RB_ReadPixels
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movl	%ecx, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	_GL_PACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_qglGetIntegerv
	leal	(%rbx,%rbx,2), %edi
	movq	-48(%rbp), %rsi
	movl	%edi, %ebx
	callq	_PAD
	movl	%eax, %r14d
	movq	_ri@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	imull	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	-48(%rbp), %rdx
	addq	(%r13), %rcx
	leaq	(%rdx,%rcx), %rdi
	decq	%rdi
	callq	*(%rax)
	movq	%rax, %r15
	movq	(%r13), %rdi
	addq	%rax, %rdi
	movq	-48(%rbp), %rsi
	callq	_PADP
	movq	%rax, %r12
	movq	_GL_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_qglReadPixels
	subq	%r15, %r12
	sarq	$2, %r12
	movq	%r12, (%r13)
	subl	%ebx, %r14d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_PACK_ALIGNMENT,4,2          ## @GL_PACK_ALIGNMENT
	.comm	_ri,8,3                         ## @ri
	.comm	_GL_RGB,4,2                     ## @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RB_ReadPixels                  ; -- Begin function RB_ReadPixels
	.p2align	2
_RB_ReadPixels:                         ; @RB_ReadPixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _GL_PACK_ALIGNMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_PACK_ALIGNMENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_qglGetIntegerv
	add	w25, w22, w22, lsl #1
	ldr	x1, [sp, #8]
	mov	x0, x25
	bl	_PAD
	mov	x26, x0
Lloh3:
	adrp	x8, _ri@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ri@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mul	w9, w0, w21
	ldr	x10, [x20]
	ldr	x11, [sp, #8]
	add	x9, x10, w9, sxtw
	add	x9, x9, x11
	sub	x0, x9, #1
	blr	x8
	mov	x27, x0
	ldr	x8, [x20]
	add	x0, x8, x0
	ldr	x1, [sp, #8]
	bl	_PADP
	mov	x28, x0
Lloh6:
	adrp	x8, _GL_RGB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x6, x28
	bl	_qglReadPixels
	sub	x8, x28, x27
	asr	x8, x8, #2
	str	x8, [x20]
	sub	w8, w26, w25
	str	w8, [x19]
	mov	x0, x27
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_PACK_ALIGNMENT,4,2          ; @GL_PACK_ALIGNMENT
	.comm	_ri,8,3                         ; @ri
	.comm	_GL_RGB,4,2                     ; @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
.subsections_via_symbols
