	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function copy_depth_pixels
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_copy_depth_pixels:                     ## @copy_depth_pixels
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	shlq	$3, %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	48(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	jne	LBB0_4
	jp	LBB0_4
## %bb.2:
	movss	12(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	ucomiss	LCPI0_0(%rip), %xmm0
	jne	LBB0_4
	jp	LBB0_4
## %bb.3:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %rax                ## 8-byte Reload
	decq	%rax
	xorl	%r9d, %r9d
	xorl	%r10d, %r10d
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	cmovbq	%rax, %r9
	setae	%r11b
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	40(%rbx), %rax
	movl	(%rax), %esi
	movl	8(%rax), %r13d
	movl	16(%rax), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	24(%rax), %eax
	movl	%eax, -144(%rbp)                ## 4-byte Spill
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r11d, %r15d
	callq	_MEMSET
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_MEMSET
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	callq	_MEMSET
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-144(%rbp), %esi                ## 4-byte Reload
	movq	%r12, %rdx
	callq	_MEMSET
	movl	%r15d, %r11d
	xorl	%r10d, %r10d
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_7:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.8:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_9:
	testq	%r12, %r12
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_21
## %bb.10:
	movl	32(%rbx), %eax
	cmpq	$8, %r12
	jae	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_20
LBB0_12:
	movq	%r12, %rcx
	andq	$-8, %rcx
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$7, %r8d
	cmpq	$56, %rdi
	jae	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	jmp	LBB0_16
LBB0_14:
	andq	$-8, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, (%rdx,%rdi,4)
	movdqa	%xmm0, 16(%rdx,%rdi,4)
	movdqa	%xmm0, 32(%rdx,%rdi,4)
	movdqa	%xmm0, 48(%rdx,%rdi,4)
	movdqa	%xmm0, 64(%rdx,%rdi,4)
	movdqa	%xmm0, 80(%rdx,%rdi,4)
	movdqa	%xmm0, 96(%rdx,%rdi,4)
	movdqa	%xmm0, 112(%rdx,%rdi,4)
	movdqa	%xmm0, 128(%rdx,%rdi,4)
	movdqa	%xmm0, 144(%rdx,%rdi,4)
	movdqa	%xmm0, 160(%rdx,%rdi,4)
	movdqa	%xmm0, 176(%rdx,%rdi,4)
	movdqa	%xmm0, 192(%rdx,%rdi,4)
	movdqa	%xmm0, 208(%rdx,%rdi,4)
	movdqa	%xmm0, 224(%rdx,%rdi,4)
	movdqa	%xmm0, 240(%rdx,%rdi,4)
	addq	$64, %rdi
	addq	$-8, %rsi
	jne	LBB0_15
LBB0_16:
	testq	%r8, %r8
	je	LBB0_19
## %bb.17:
	leaq	(%rdx,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, -16(%rsi,%rdi)
	movdqa	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_18
LBB0_19:
	cmpq	%r12, %rcx
	je	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_20
LBB0_21:
	cmpq	$0, -136(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_36
## %bb.22:
	movb	%r11b, %r10b
	leaq	(%r10,%r10), %rax
	decq	%rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r9,%rax), %r13
	addq	%r9, %r14
	xorl	%ecx, %ecx
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_GL_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	pushq	%rax
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_gl_write_color_span
LBB0_24:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$32, %rsp
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	-168(%rbp), %rax                ## 8-byte Reload
	addq	%rax, %r14
	addq	%rax, %r13
	cmpq	-136(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_36
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	*24(%rbx)
	testq	%r12, %r12
	movq	-152(%rbp), %r13                ## 8-byte Reload
	movq	%rbx, %r15
	movq	_DEPTH_SCALE@GOTPCREL(%rip), %rbx
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%r15), %edi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax,%r14,4), %edi
	addl	20(%r15), %edi
	xorps	%xmm0, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_CLAMP
	movslq	(%rbx), %rcx
	cltq
	imulq	%rcx, %rax
	movq	%rax, (%r13,%r14,8)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movq	%r15, %rbx
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_26 Depth=1
	cmpq	$0, -160(%rbp)                  ## 8-byte Folded Reload
	movq	-152(%rbp), %r8                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_23
## %bb.31:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	callq	_gl_write_zoomed_color_span
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpq	$0, -160(%rbp)                  ## 8-byte Folded Reload
	movq	-152(%rbp), %r8                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_26 Depth=1
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_gl_write_zoomed_index_span
	jmp	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	_GL_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_gl_write_index_span
LBB0_35:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$16, %rsp
	jmp	LBB0_25
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_38
## %bb.37:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCopyPixels"

	.comm	_GL_FALSE,8,3                   ## @GL_FALSE
	.comm	_GL_TRUE,8,3                    ## @GL_TRUE
	.comm	_DEPTH_SCALE,4,2                ## @DEPTH_SCALE
	.comm	_GL_BITMAP,4,2                  ## @GL_BITMAP
	.no_dead_strip	_copy_depth_pixels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_depth_pixels
_copy_depth_pixels:                     ; @copy_depth_pixels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #112
	stur	x6, [x29, #-144]                ; 8-byte Folded Spill
	stp	x5, x1, [x29, #-128]            ; 16-byte Folded Spill
	stur	x4, [x29, #-112]                ; 8-byte Folded Spill
	mov	x28, x3
	mov	x23, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0x7fffffff0
	sub	x9, x9, x13
	stur	x9, [x29, #-96]                 ; 8-byte Folded Spill
	mov	sp, x9
	lsl	x12, x12, #3
	mov	x9, x12
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x14, x10, #0xffffffff0
	sub	x9, x9, x14
	stur	x9, [x29, #-104]                ; 8-byte Folded Spill
	mov	sp, x9
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x13
	stur	x8, [x29, #-184]                ; 8-byte Folded Spill
	mov	sp, x8
	mov	x9, x12
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x14
	stur	x8, [x29, #-152]                ; 8-byte Folded Spill
	mov	sp, x8
	mov	x9, x12
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x14
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	mov	sp, x8
	mov	x9, x12
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x14
	stur	x8, [x29, #-168]                ; 8-byte Folded Spill
	mov	sp, x8
	mov	x9, x12
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x8, x8, x14
	stur	x8, [x29, #-176]                ; 8-byte Folded Spill
	mov	sp, x8
	ldr	x8, [x0, #48]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	s1, [x19, #8]
	fmov	s0, #1.00000000
	fcmp	s1, s0
	b.ne	LBB0_4
; %bb.2:
	ldr	s1, [x19, #12]
	fcmp	s1, s0
	b.ne	LBB0_4
; %bb.3:
Lloh20:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh22:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	stur	x8, [x29, #-136]                ; 8-byte Folded Spill
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	sub	x8, x8, #1
	mov	x9, #-1
	ldur	x10, [x29, #-144]               ; 8-byte Folded Reload
	cmp	x23, x10
	csel	x22, x8, xzr, lo
	cneg	x21, x9, hs
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #40]
	ldr	w1, [x8]
	ldr	w20, [x8, #8]
	ldr	w27, [x8, #16]
	ldr	w24, [x8, #24]
	ldur	x0, [x29, #-152]                ; 8-byte Folded Reload
	mov	x2, x28
	bl	_MEMSET
	ldur	x0, [x29, #-160]                ; 8-byte Folded Reload
	mov	x1, x20
	mov	x2, x28
	bl	_MEMSET
	ldur	x0, [x29, #-168]                ; 8-byte Folded Reload
	mov	x1, x27
	mov	x2, x28
	bl	_MEMSET
	ldur	x0, [x29, #-176]                ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x28
	bl	_MEMSET
	b	LBB0_17
LBB0_7:
Lloh24:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldur	x8, [x29, #-88]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.8:
Lloh30:
	adrp	x2, l_.str@PAGE
Lloh31:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_gl_error
LBB0_9:
	cbz	x28, LBB0_17
; %bb.10:
	ldr	w8, [x19, #32]
	cmp	x28, #16
	b.hs	LBB0_12
; %bb.11:
	mov	x9, #0
	b	LBB0_15
LBB0_12:
	and	x9, x28, #0xfffffffffffffff0
	dup.4s	v0, w8
	ldur	x10, [x29, #-184]               ; 8-byte Folded Reload
	add	x10, x10, #32
	mov	x11, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x10, #-32]
	stp	q0, q0, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x9, x28
	b.eq	LBB0_17
LBB0_15:
	sub	x10, x28, x9
	ldur	x11, [x29, #-184]               ; 8-byte Folded Reload
	add	x9, x11, x9, lsl #2
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w8, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_16
LBB0_17:
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cbz	x8, LBB0_31
; %bb.18:
	mov	x24, #0
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	add	x27, x22, x8
	add	x20, x22, x23
Lloh32:
	adrp	x22, _DEPTH_SCALE@GOTPAGE
Lloh33:
	ldr	x22, [x22, _DEPTH_SCALE@GOTPAGEOFF]
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	sp, sp, #16
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	str	x8, [sp, #8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	mov	x3, x27
	ldur	x4, [x29, #-104]                ; 8-byte Folded Reload
	ldp	x6, x5, [x29, #-160]            ; 16-byte Folded Reload
	ldur	x7, [x29, #-168]                ; 8-byte Folded Reload
	bl	_gl_write_zoomed_color_span
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	add	sp, sp, #16
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x24, x24, #1
	add	x20, x20, x21
	add	x27, x27, x21
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_31
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-120]                ; 8-byte Folded Reload
	mov	x3, x20
	ldur	x4, [x29, #-96]                 ; 8-byte Folded Reload
	blr	x8
	cbz	x28, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldp	x26, x25, [x29, #-104]          ; 16-byte Folded Reload
	mov	x23, x28
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x25], #4
	ldp	w9, w10, [x19, #16]
	madd	w0, w9, w8, w10
	movi	d0, #0000000000000000
	fmov	d1, #1.00000000
	bl	_CLAMP
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x22]
	sxtw	x9, w0
	mul	x8, x8, x9
	str	x8, [x26], #8
	subs	x23, x23, #1
	b.ne	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	cbnz	x8, LBB0_19
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
Lloh34:
	adrp	x8, _GL_BITMAP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GL_BITMAP@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	sub	sp, sp, #16
	str	w8, [sp, #8]
	ldur	x8, [x29, #-176]                ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	mov	x3, x27
	ldur	x4, [x29, #-104]                ; 8-byte Folded Reload
	ldp	x6, x5, [x29, #-160]            ; 16-byte Folded Reload
	ldur	x7, [x29, #-168]                ; 8-byte Folded Reload
	bl	_gl_write_color_span
	b	LBB0_20
LBB0_28:                                ;   in Loop: Header=BB0_22 Depth=1
	ldur	x8, [x29, #-136]                ; 8-byte Folded Reload
	cbz	x8, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	mov	x3, x27
	ldur	x4, [x29, #-104]                ; 8-byte Folded Reload
	ldur	x5, [x29, #-184]                ; 8-byte Folded Reload
	ldur	x6, [x29, #-144]                ; 8-byte Folded Reload
	bl	_gl_write_zoomed_index_span
	b	LBB0_21
LBB0_30:                                ;   in Loop: Header=BB0_22 Depth=1
Lloh37:
	adrp	x8, _GL_BITMAP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_BITMAP@GOTPAGEOFF]
Lloh39:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x28
	ldur	x2, [x29, #-128]                ; 8-byte Folded Reload
	mov	x3, x27
	ldur	x4, [x29, #-104]                ; 8-byte Folded Reload
	ldur	x5, [x29, #-184]                ; 8-byte Folded Reload
	bl	_gl_write_index_span
	b	LBB0_21
LBB0_31:
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.32:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCopyPixels"

	.comm	_GL_FALSE,8,3                   ; @GL_FALSE
	.comm	_GL_TRUE,8,3                    ; @GL_TRUE
	.comm	_DEPTH_SCALE,4,2                ; @DEPTH_SCALE
	.comm	_GL_BITMAP,4,2                  ; @GL_BITMAP
	.no_dead_strip	_copy_depth_pixels
.subsections_via_symbols
