	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function texture_1d_error_check
_texture_1d_error_check:                ## @texture_1d_error_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_GL_TEXTURE_1D@GOTPCREL(%rip), %rdx
	movq	_GL_PROXY_TEXTURE_1D@GOTPCREL(%rip), %r14
	movq	_GL_INVALID_ENUM@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%rdx)
	je	LBB0_3
## %bb.1:
	cmpq	%rbx, (%r14)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_19
LBB0_3:
	leaq	L_.str.1(%rip), %rdx
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rdi
	testq	%rax, %rax
	js	LBB0_12
## %bb.4:
	movq	_MAX_TEXTURE_LEVELS@GOTPCREL(%rip), %rsi
	cmpq	%rax, (%rsi)
	jle	LBB0_12
## %bb.5:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_decode_internal_format
	testq	%rax, %rax
	js	LBB0_13
## %bb.6:
	movq	24(%rbp), %rax
	cmpq	$2, %rax
	jae	LBB0_14
## %bb.7:
	movq	16(%rbp), %rdi
	addq	%rax, %rax
	cmpq	%rdi, %rax
	jg	LBB0_9
## %bb.8:
	movq	_MAX_TEXTURE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$2, %rcx
	cmpq	%rdi, %rcx
	jge	LBB0_22
LBB0_9:
	cmpq	%rbx, (%r14)
	je	LBB0_20
## %bb.17:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_18
LBB0_12:
	movq	%rdi, %r13
	jmp	LBB0_19
LBB0_13:
	leaq	L_.str.2(%rip), %rdx
LBB0_18:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	jmp	LBB0_19
LBB0_14:
	cmpq	%rbx, (%r14)
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %r13
	je	LBB0_20
## %bb.16:
	leaq	L_.str.3(%rip), %rdx
LBB0_19:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_gl_error
LBB0_20:
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	subq	%rax, %rdi
	callq	_logbase2
	testq	%rax, %rax
	js	LBB0_28
## %bb.23:
	leaq	L_.str.6(%rip), %rdx
	addq	$-131, %r15
	cmpq	$12, %r15
	ja	LBB0_19
## %bb.24:
	movl	$7871, %eax                     ## imm = 0x1EBF
	btq	%r15, %rax
	jae	LBB0_19
## %bb.25:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$-128, %rcx
	leaq	L_.str.7(%rip), %rdx
	cmpq	$12, %rcx
	jae	LBB0_19
## %bb.26:
	movl	$2567, %eax                     ## imm = 0xA07
	btl	%ecx, %eax
	jae	LBB0_19
## %bb.27:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_28:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_1D,8,3              ## @GL_TEXTURE_1D
	.comm	_GL_PROXY_TEXTURE_1D,8,3        ## @GL_PROXY_TEXTURE_1D
	.comm	_GL_INVALID_ENUM,4,2            ## @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glTexImage1D"

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

L_.str.2:                               ## @.str.2
	.asciz	"glTexImage1D(internalFormat)"

L_.str.3:                               ## @.str.3
	.asciz	"glTexImage1D(border)"

	.comm	_MAX_TEXTURE_SIZE,4,2           ## @MAX_TEXTURE_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"glTexImage1D(width)"

L_.str.5:                               ## @.str.5
	.asciz	"glTexImage1D(width != 2^k + 2*border)"

L_.str.6:                               ## @.str.6
	.asciz	"glTexImage1D(format)"

L_.str.7:                               ## @.str.7
	.asciz	"glTexImage1D(type)"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.no_dead_strip	_texture_1d_error_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function texture_1d_error_check
_texture_1d_error_check:                ; @texture_1d_error_check
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x9, _GL_TEXTURE_1D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_TEXTURE_1D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x25, _GL_PROXY_TEXTURE_1D@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GL_PROXY_TEXTURE_1D@GOTPAGEOFF]
	ldr	x10, [x25]
	cmp	x9, x1
	ccmp	x10, x1, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x8, x2
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, _GL_INVALID_VALUE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _GL_INVALID_VALUE@GOTPAGEOFF]
	tbnz	x8, #63, LBB0_15
; %bb.2:
Lloh9:
	adrp	x10, _MAX_TEXTURE_LEVELS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAX_TEXTURE_LEVELS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x10, x8
	b.le	LBB0_15
; %bb.3:
	mov	x24, x7
	mov	x22, x6
	mov	x20, x5
	mov	x21, x4
	mov	x23, x1
	mov	x0, x3
	bl	_decode_internal_format
	tbnz	x0, #63, LBB0_11
; %bb.4:
	cmp	x24, #2
	b.hs	LBB0_12
; %bb.5:
	lsl	x8, x24, #1
	cmp	x8, x22
	b.gt	LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _MAX_TEXTURE_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX_TEXTURE_SIZE@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	add	x9, x9, #2
	cmp	x9, x22
	b.ge	LBB0_18
LBB0_7:
	ldr	x8, [x25]
	cmp	x8, x23
	b.eq	LBB0_16
; %bb.8:
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
LBB0_10:
Lloh19:
	adrp	x9, _GL_INVALID_ENUM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GL_INVALID_ENUM@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
	ldr	x8, [x25]
	cmp	x8, x23
	b.eq	LBB0_16
; %bb.13:
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_14:
Lloh25:
	adrp	x9, _GL_INVALID_VALUE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GL_INVALID_VALUE@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x9]
	mov	x0, x19
	bl	_gl_error
LBB0_16:
Lloh27:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	sub	x0, x22, x8
	bl	_logbase2
	tbnz	x0, #63, LBB0_24
; %bb.19:
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
Lloh31:
	adrp	x9, _GL_INVALID_ENUM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _GL_INVALID_ENUM@GOTPAGEOFF]
	sub	x8, x21, #131
	cmp	x8, #12
	b.hi	LBB0_15
; %bb.20:
	mov	w10, #1
	lsl	x8, x10, x8
	mov	w10, #7871
	tst	x8, x10
	b.eq	LBB0_15
; %bb.21:
	sub	x8, x20, #128
	cmp	x8, #12
	b.hs	LBB0_23
; %bb.22:
	mov	w9, #2567
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_25
LBB0_23:
Lloh33:
	adrp	x2, l_.str.7@PAGE
Lloh34:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_24:
Lloh35:
	adrp	x2, l_.str.5@PAGE
Lloh36:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_25:
Lloh37:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_1D,8,3              ; @GL_TEXTURE_1D
	.comm	_GL_PROXY_TEXTURE_1D,8,3        ; @GL_PROXY_TEXTURE_1D
	.comm	_GL_INVALID_ENUM,4,2            ; @GL_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glTexImage1D"

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

l_.str.2:                               ; @.str.2
	.asciz	"glTexImage1D(internalFormat)"

l_.str.3:                               ; @.str.3
	.asciz	"glTexImage1D(border)"

	.comm	_MAX_TEXTURE_SIZE,4,2           ; @MAX_TEXTURE_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"glTexImage1D(width)"

l_.str.5:                               ; @.str.5
	.asciz	"glTexImage1D(width != 2^k + 2*border)"

l_.str.6:                               ; @.str.6
	.asciz	"glTexImage1D(format)"

l_.str.7:                               ; @.str.7
	.asciz	"glTexImage1D(type)"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.no_dead_strip	_texture_1d_error_check
.subsections_via_symbols
