	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gl2_pbo_async_readback
_gl2_pbo_async_readback:                ## @gl2_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GL_BGRA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_GL_UNSIGNED_INT_8_8_8_8_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	24(%rdi), %rax
	movslq	(%rdi), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rdi)
	movl	(%rax,%rcx,4), %edi
	callq	_gl2_renderchain_bind_pbo
	movl	(%rbx), %eax
	andl	$3, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rcx
	movl	$1, (%rcx,%rax,4)
	movl	16(%rbx), %edi
	movl	20(%rbx), %r12d
	shll	$2, %edi
	callq	_video_pixel_get_alignment
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_gl2_renderchain_readback
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl2_renderchain_unbind_pbo     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_BGRA,4,2                    ## @GL_BGRA
	.comm	_GL_UNSIGNED_INT_8_8_8_8_REV,4,2 ## @GL_UNSIGNED_INT_8_8_8_8_REV
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl2_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 gl2_pbo_async_readback
_gl2_pbo_async_readback:                ; @gl2_pbo_async_readback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GL_BGRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_BGRA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x0, #24]
	ldrsw	x9, [x0]
	add	w10, w9, #1
	str	w10, [x0]
	ldr	w0, [x8, x9, lsl #2]
	bl	_gl2_renderchain_bind_pbo
	ldr	w8, [x19]
	and	x8, x8, #0x3
	str	w8, [x19]
	ldr	x9, [x19, #8]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	ldp	w8, w22, [x19, #16]
	lsl	w0, w8, #2
	bl	_video_pixel_get_alignment
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	mov	x4, x21
	mov	x5, #0
	bl	_gl2_renderchain_readback
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gl2_renderchain_unbind_pbo
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_BGRA,4,2                    ; @GL_BGRA
	.comm	_GL_UNSIGNED_INT_8_8_8_8_REV,4,2 ; @GL_UNSIGNED_INT_8_8_8_8_REV
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl2_pbo_async_readback
.subsections_via_symbols
