	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl_CopyPixels
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_CopyPixels
	.p2align	4, 0x90
_gl_CopyPixels:                         ## @gl_CopyPixels
	.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, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
LBB0_4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	orq	%r15, %rax
	js	LBB0_3
## %bb.5:
	movq	%rdi, %r12
	cmpq	$0, 48(%rdi)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_gl_update_state
LBB0_7:
	movq	(%r12), %rax
	movq	_GL_RENDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.8:
	cmpl	$0, 32(%r12)
	je	LBB0_22
## %bb.9:
	movq	16(%r12), %rax
	cvtsi2ssq	(%rax), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %r9
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rax), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %rax
	movq	_GL_COLOR@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_12
## %bb.10:
	movq	40(%r12), %rcx
	cmpq	$0, 16(%rcx)
	je	LBB0_21
## %bb.11:
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_copy_rgb_pixels
	jmp	LBB0_22
LBB0_3:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_17:
	movq	_GL_FEEDBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.18:
	movq	8(%r12), %rax
	movq	40(%r12), %rcx
	movdqu	(%rax), %xmm0
	movdqu	(%rcx), %xmm1
	pmulld	%xmm0, %xmm1
	movdqa	%xmm1, -80(%rbp)
	movq	_GL_COPY_PIXEL_TOKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_FEEDBACK_TOKEN
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	movq	16(%rax), %rcx
	movq	24(%rax), %r8
	movl	28(%r12), %eax
	movl	24(%r12), %edi
	movl	%edi, 8(%rsp)
	movl	%eax, (%rsp)
	leaq	-80(%rbp), %r9
	movq	%r12, %rdi
	callq	_gl_feedback_vertex
	jmp	LBB0_22
LBB0_19:
	movq	_GL_SELECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:
	movq	16(%r12), %rax
	movq	16(%rax), %rsi
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_update_hitflag              ## TAILCALL
LBB0_12:
	movq	_GL_DEPTH@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_copy_depth_pixels
	jmp	LBB0_22
LBB0_14:
	movq	_GL_STENCIL@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_16
## %bb.15:
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_copy_stencil_pixels
	jmp	LBB0_22
LBB0_21:
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_copy_ci_pixels
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCopyPixels"

	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
	.comm	_GL_RENDER,8,3                  ## @GL_RENDER
	.comm	_GL_COLOR,8,3                   ## @GL_COLOR
	.comm	_GL_DEPTH,8,3                   ## @GL_DEPTH
	.comm	_GL_STENCIL,8,3                 ## @GL_STENCIL
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
	.comm	_GL_FEEDBACK,8,3                ## @GL_FEEDBACK
	.comm	_GL_COPY_PIXEL_TOKEN,8,3        ## @GL_COPY_PIXEL_TOKEN
	.comm	_GL_SELECT,8,3                  ## @GL_SELECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_CopyPixels                  ; -- Begin function gl_CopyPixels
	.p2align	2
_gl_CopyPixels:                         ; @gl_CopyPixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
LBB0_2:
	ldr	w1, [x8]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_gl_error
LBB0_3:
	orr	x8, x20, x21
	tbnz	x8, #63, LBB0_11
; %bb.4:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_gl_update_state
LBB0_6:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _GL_RENDER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GL_RENDER@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_16
; %bb.8:
	ldr	x8, [x19, #16]
	ldp	x9, x8, [x8]
	scvtf	s0, x9
	fmov	s1, #0.50000000
	fadd	s0, s0, s1
	fcvtzs	x5, s0
	scvtf	s0, x8
	fadd	s0, s0, s1
	fcvtzs	x6, s0
Lloh7:
	adrp	x8, _GL_COLOR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_COLOR@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_17
; %bb.9:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_21
; %bb.10:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_rgb_pixels
LBB0_11:
Lloh10:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
Lloh12:
	adrp	x9, _GL_FEEDBACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GL_FEEDBACK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #40]
	ldr	q0, [x8]
	ldr	q1, [x9]
	mul.4s	v0, v1, v0
	str	q0, [sp]
Lloh15:
	adrp	x8, _GL_COPY_PIXEL_TOKEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_COPY_PIXEL_TOKEN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_FEEDBACK_TOKEN
	ldr	x8, [x19, #16]
	ldp	x1, x2, [x8]
	ldp	x3, x4, [x8, #16]
	ldp	w7, w6, [x19, #24]
	mov	x5, sp
	mov	x0, x19
	bl	_gl_feedback_vertex
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x9, _GL_SELECT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GL_SELECT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_gl_update_hitflag
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh21:
	adrp	x8, _GL_DEPTH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_DEPTH@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_depth_pixels
LBB0_19:
Lloh24:
	adrp	x8, _GL_STENCIL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_STENCIL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x8, x24
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_stencil_pixels
LBB0_21:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_ci_pixels
LBB0_22:
Lloh27:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCopyPixels"

	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
	.comm	_GL_RENDER,8,3                  ; @GL_RENDER
	.comm	_GL_COLOR,8,3                   ; @GL_COLOR
	.comm	_GL_DEPTH,8,3                   ; @GL_DEPTH
	.comm	_GL_STENCIL,8,3                 ; @GL_STENCIL
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
	.comm	_GL_FEEDBACK,8,3                ; @GL_FEEDBACK
	.comm	_GL_COPY_PIXEL_TOKEN,8,3        ; @GL_COPY_PIXEL_TOKEN
	.comm	_GL_SELECT,8,3                  ; @GL_SELECT
.subsections_via_symbols
