	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_CopyTexSubImage2D           ## -- Begin function gl_CopyTexSubImage2D
	.p2align	4, 0x90
_gl_CopyTexSubImage2D:                  ## @gl_CopyTexSubImage2D
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	32(%rbp), %r15
	movq	24(%rbp), %r12
	movq	16(%rbp), %rbx
	callq	_INSIDE_BEGIN_END
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_GL_INVALID_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	_MAX_TEXTURE_LEVELS@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jbe	LBB0_6
## %bb.7:
	testq	%rdx, %rdx
	js	LBB0_8
## %bb.9:
	testq	%rcx, %rcx
	js	LBB0_10
## %bb.11:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.12:
	movq	%rbx, %r9
	movq	(%rsi), %rbx
	movq	%rbx, %rax
	negq	%rax
	cmpq	%r12, %rax
	jbe	LBB0_14
## %bb.13:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_6:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_8:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_2
LBB0_10:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_2
LBB0_14:
	cmpq	%r15, %rax
	jbe	LBB0_16
## %bb.15:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_2
LBB0_16:
	movq	%r12, %r10
	leaq	(%rdx,%r12), %rax
	movq	8(%rsi), %r11
	addq	%rbx, %r11
	cmpq	%r11, %rax
	jbe	LBB0_18
## %bb.17:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_2
LBB0_18:
	leaq	(%rcx,%r15), %rax
	addq	16(%rsi), %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_20
## %bb.19:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_20:
	cmpq	$0, 24(%rsi)
	je	LBB0_22
## %bb.21:
	movq	%r14, %rdi
	pushq	%r15
	pushq	%r10
	callq	_copy_tex_sub_image
	addq	$56, %rsp
	jmp	LBB0_23
LBB0_22:
	addq	$40, %rsp
LBB0_23:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ## @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glCopyTexSubImage2D"

	.comm	_GL_TEXTURE_2D,8,3              ## @GL_TEXTURE_2D
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
L_.str.1:                               ## @.str.1
	.asciz	"glCopyTexSubImage2D(target)"

	.comm	_MAX_TEXTURE_LEVELS,8,3         ## @MAX_TEXTURE_LEVELS
	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
L_.str.2:                               ## @.str.2
	.asciz	"glCopyTexSubImage2D(level)"

L_.str.3:                               ## @.str.3
	.asciz	"glCopyTexSubImage2D(width)"

L_.str.4:                               ## @.str.4
	.asciz	"glCopyTexSubImage2D(height)"

L_.str.5:                               ## @.str.5
	.asciz	"glCopyTexSubImage2D(xoffset)"

L_.str.6:                               ## @.str.6
	.asciz	"glCopyTexSubImage2D(yoffset)"

L_.str.7:                               ## @.str.7
	.asciz	"glCopyTexSubImage2D(xoffset+width)"

L_.str.8:                               ## @.str.8
	.asciz	"glCopyTexSubImage2D(yoffset+height)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_CopyTexSubImage2D           ; -- Begin function gl_CopyTexSubImage2D
	.p2align	2
_gl_CopyTexSubImage2D:                  ; @gl_CopyTexSubImage2D
	.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
	mov	x24, x7
	mov	x21, x6
	mov	x23, x5
	mov	x20, x4
	mov	x22, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
	ldr	x25, [x29, #16]
	bl	_INSIDE_BEGIN_END
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _GL_INVALID_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_INVALID_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_19
LBB0_2:
Lloh5:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x27
	b.ne	LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _MAX_TEXTURE_LEVELS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_TEXTURE_LEVELS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x26
	b.ls	LBB0_10
; %bb.4:
	tbnz	x24, #63, LBB0_11
; %bb.5:
	tbnz	x25, #63, LBB0_12
; %bb.6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x1, [x8, x26, lsl #3]
	cbz	x1, LBB0_1
; %bb.7:
	ldr	x8, [x1]
	neg	x9, x8
	cmp	x9, x22
	b.ls	LBB0_13
; %bb.8:
Lloh11:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_9:
Lloh16:
	adrp	x8, _GL_INVALID_ENUM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_INVALID_ENUM@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_10:
Lloh21:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_19
LBB0_11:
Lloh26:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_19
LBB0_12:
Lloh31:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.4@PAGE
Lloh35:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_19
LBB0_13:
	cmp	x9, x20
	b.ls	LBB0_15
; %bb.14:
Lloh36:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.6@PAGE
Lloh40:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_19
LBB0_15:
	add	x9, x24, x22
	ldr	x10, [x1, #8]
	add	x10, x10, x8
	cmp	x9, x10
	b.ls	LBB0_17
; %bb.16:
Lloh41:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str.7@PAGE
Lloh45:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_17:
	add	x9, x25, x20
	ldr	x10, [x1, #16]
	add	x8, x10, x8
	cmp	x9, x8
	b.ls	LBB0_20
; %bb.18:
Lloh46:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.8@PAGE
Lloh50:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_19:
	mov	x0, x19
	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_20:
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x2, x24
	mov	x3, x25
	mov	x4, x23
	mov	x5, x21
	mov	x6, x22
	mov	x7, x20
	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	_copy_tex_sub_image
LBB0_22:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_OPERATION,4,2       ; @GL_INVALID_OPERATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glCopyTexSubImage2D"

	.comm	_GL_TEXTURE_2D,8,3              ; @GL_TEXTURE_2D
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
l_.str.1:                               ; @.str.1
	.asciz	"glCopyTexSubImage2D(target)"

	.comm	_MAX_TEXTURE_LEVELS,8,3         ; @MAX_TEXTURE_LEVELS
	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
l_.str.2:                               ; @.str.2
	.asciz	"glCopyTexSubImage2D(level)"

l_.str.3:                               ; @.str.3
	.asciz	"glCopyTexSubImage2D(width)"

l_.str.4:                               ; @.str.4
	.asciz	"glCopyTexSubImage2D(height)"

l_.str.5:                               ; @.str.5
	.asciz	"glCopyTexSubImage2D(xoffset)"

l_.str.6:                               ; @.str.6
	.asciz	"glCopyTexSubImage2D(yoffset)"

l_.str.7:                               ; @.str.7
	.asciz	"glCopyTexSubImage2D(xoffset+width)"

l_.str.8:                               ; @.str.8
	.asciz	"glCopyTexSubImage2D(yoffset+height)"

.subsections_via_symbols
