	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl_core_pbo_async_readback
_gl_core_pbo_async_readback:            ## @gl_core_pbo_async_readback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	(%rcx,%rax,4), %esi
	callq	_glBindBuffer
	movq	_GL_PACK_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_glPixelStorei
	movq	_GL_PACK_ROW_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glPixelStorei
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glReadBuffer
	movq	(%rbx), %rax
	movq	_GL_CORE_NUM_PBOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_2
## %bb.1:
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_2:
	movq	8(%rbx), %rcx
	movl	$1, (%rcx,%rax,4)
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	callq	_glReadPixels
	movl	(%r14), %edi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_glBindBuffer                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ## @GL_PIXEL_PACK_BUFFER
	.comm	_GL_PACK_ALIGNMENT,4,2          ## @GL_PACK_ALIGNMENT
	.comm	_GL_PACK_ROW_LENGTH,4,2         ## @GL_PACK_ROW_LENGTH
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.comm	_GL_CORE_NUM_PBOS,8,3           ## @GL_CORE_NUM_PBOS
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl_core_pbo_async_readback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl_core_pbo_async_readback
_gl_core_pbo_async_readback:            ; @gl_core_pbo_async_readback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _GL_PIXEL_PACK_BUFFER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GL_PIXEL_PACK_BUFFER@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	ldr	w1, [x8, x9, lsl #2]
	bl	_glBindBuffer
Lloh2:
	adrp	x8, _GL_PACK_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_PACK_ALIGNMENT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_glPixelStorei
Lloh5:
	adrp	x8, _GL_PACK_ROW_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_PACK_ROW_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glPixelStorei
Lloh8:
	adrp	x8, _GL_BACK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_BACK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_glReadBuffer
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _GL_CORE_NUM_PBOS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GL_CORE_NUM_PBOS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lo	LBB0_2
; %bb.1:
	mov	x8, #0
	str	xzr, [x19]
LBB0_2:
	ldr	x9, [x19, #8]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	ldp	w1, w0, [x19, #24]
	ldp	w3, w2, [x19, #16]
Lloh14:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	mov	x6, #0
	bl	_glReadPixels
	ldr	w0, [x20]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_glBindBuffer
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ; @GL_PIXEL_PACK_BUFFER
	.comm	_GL_PACK_ALIGNMENT,4,2          ; @GL_PACK_ALIGNMENT
	.comm	_GL_PACK_ROW_LENGTH,4,2         ; @GL_PACK_ROW_LENGTH
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.comm	_GL_CORE_NUM_PBOS,8,3           ; @GL_CORE_NUM_PBOS
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl_core_pbo_async_readback
.subsections_via_symbols
