	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl1_readback
_gl1_readback:                          ## @gl1_readback
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	_GL_PACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glPixelStorei
	movq	_GL_PACK_ROW_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glPixelStorei
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glReadBuffer
	movl	12(%rbx), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r12, (%rsp)
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_glReadPixels
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_PACK_ALIGNMENT,4,2          ## @GL_PACK_ALIGNMENT
	.comm	_GL_PACK_ROW_LENGTH,4,2         ## @GL_PACK_ROW_LENGTH
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.no_dead_strip	_gl1_readback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl1_readback
_gl1_readback:                          ; @gl1_readback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, _GL_PACK_ALIGNMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_PACK_ALIGNMENT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glPixelStorei
Lloh3:
	adrp	x8, _GL_PACK_ROW_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_PACK_ROW_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glPixelStorei
Lloh6:
	adrp	x8, _GL_BACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_BACK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_glReadBuffer
	ldp	w1, w0, [x22, #8]
	ldp	w3, w2, [x22]
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_glReadPixels
	.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	_GL_PACK_ROW_LENGTH,4,2         ; @GL_PACK_ROW_LENGTH
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.no_dead_strip	_gl1_readback
.subsections_via_symbols
