	.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_DrawPixels
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_DrawPixels
	.p2align	4, 0x90
_gl_DrawPixels:                         ## @gl_DrawPixels
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rdx, %rax
	orq	%rsi, %rax
	js	LBB0_1
## %bb.3:
	movq	%r8, %r11
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	cmpq	$0, 64(%rbx)
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_gl_update_state
	movq	-48(%rbp), %r11                 ## 8-byte Reload
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
LBB0_8:
	movq	_GL_RGB@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_16
## %bb.9:
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	cmpq	%r11, (%rax)
	jne	LBB0_16
## %bb.10:
	cmpq	$0, 40(%rbx)
	je	LBB0_16
## %bb.11:
	cmpq	$0, 24(%rbx)
	jne	LBB0_16
## %bb.12:
	movq	(%rbx), %rax
	movq	_GL_RENDER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.13:
	cmpq	$0, 8(%rbx)
	jne	LBB0_16
## %bb.14:
	cmpq	$0, 16(%rbx)
	je	LBB0_15
LBB0_16:
	cmpq	$0, 16(%rbx)
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	%r9, %r15
	jne	LBB0_19
## %bb.17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r11, %r8
	callq	_gl_unpack_pixels
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_18
LBB0_19:
	cmpq	$0, 24(%rbx)
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r11, %r8
	movq	%r15, %r9
	callq	_gl_save_DrawPixels
	movq	-48(%rbp), %r11                 ## 8-byte Reload
LBB0_21:
	cmpq	$0, 32(%rbx)
	je	LBB0_24
## %bb.22:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	%r11, %r8
	movq	%r15, %r9
	callq	_drawpixels
	cmpq	$0, 24(%rbx)
	jne	LBB0_24
## %bb.23:
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_24
## %bb.25:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	movq	_GL_INVALID_VALUE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_error                       ## TAILCALL
LBB0_6:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	56(%rbx), %rcx
	cvtsi2ssq	(%rcx), %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %esi
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rcx), %xmm0
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %edx
	movq	_GL_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rcx
	movq	%r13, %r8
	movq	%r12, %r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	%r11
	callq	*%rax
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_8
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_GL_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_quickdraw_rgb
	movq	-48(%rbp), %r11                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_24
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_INVALID_VALUE,4,2           ## @GL_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glDrawPixels"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_GL_RGB,8,3                     ## @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,8,3           ## @GL_UNSIGNED_BYTE
	.comm	_GL_RENDER,8,3                  ## @GL_RENDER
	.comm	_GL_OUT_OF_MEMORY,4,2           ## @GL_OUT_OF_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_DrawPixels                  ; -- Begin function gl_DrawPixels
	.p2align	2
_gl_DrawPixels:                         ; @gl_DrawPixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	orr	x8, x2, x1
	tbnz	x8, #63, LBB0_19
; %bb.1:
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_gl_update_state
LBB0_3:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
LBB0_4:
Lloh0:
	adrp	x8, _GL_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_RGB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x22
	ccmp	x9, x21, #0, eq
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_11
; %bb.7:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _GL_RENDER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_RENDER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	bl	_quickdraw_rgb
	cbnz	x0, LBB0_23
LBB0_11:
	ldr	x8, [x20, #16]
	mov	x25, x19
	cbnz	x8, LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	bl	_gl_unpack_pixels
	mov	x25, x0
	cbz	x0, LBB0_24
LBB0_13:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x25
	bl	_gl_save_DrawPixels
LBB0_15:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_23
; %bb.16:
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x25
	bl	_drawpixels
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_23
; %bb.17:
	cmp	x25, x19
	b.eq	LBB0_23
; %bb.18:
	mov	x0, x25
	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
	add	sp, sp, #96
	b	_free
LBB0_19:
Lloh9:
	adrp	x8, _GL_INVALID_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_INVALID_VALUE@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, 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
	add	sp, sp, #96
	b	_gl_error
LBB0_21:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_4
; %bb.22:
	ldr	x9, [x20, #56]
	ldp	x10, x9, [x9]
	scvtf	s0, x10
	fmov	s1, #0.50000000
	fadd	s0, s0, s1
	fcvtzs	w1, s0
	scvtf	s0, x9
	fadd	s0, s0, s1
	fcvtzs	w2, s0
Lloh13:
	adrp	x9, _GL_FALSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GL_FALSE@GOTPAGEOFF]
Lloh15:
	ldr	w7, [x9]
	str	x19, [sp]
	mov	x0, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x21
	blr	x8
	cbz	x0, LBB0_4
LBB0_23:
	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
	add	sp, sp, #96
	ret
LBB0_24:
Lloh16:
	adrp	x8, _GL_OUT_OF_MEMORY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_INVALID_VALUE,4,2           ; @GL_INVALID_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glDrawPixels"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_GL_RGB,8,3                     ; @GL_RGB
	.comm	_GL_UNSIGNED_BYTE,8,3           ; @GL_UNSIGNED_BYTE
	.comm	_GL_RENDER,8,3                  ; @GL_RENDER
	.comm	_GL_OUT_OF_MEMORY,4,2           ; @GL_OUT_OF_MEMORY
.subsections_via_symbols
