	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_update_pbo_or_die
_create_update_pbo_or_die:              ## @create_update_pbo_or_die
	.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	%rdi, %r15
	leaq	20(%rdi), %r12
	cmpl	$0, 20(%rdi)
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_qglGenBuffers
LBB0_2:
	leaq	12(%r15), %r14
	cmpl	$0, 12(%r15)
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_qglGenBuffers
LBB0_4:
	xorl	%eax, %eax
	callq	_qglGetError
	movq	_GL_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.7:
	movl	(%r15), %eax
	movl	4(%r15), %ebx
	movl	%eax, %ecx
	imull	%ebx, %ecx
	leal	(%rcx,%rcx,2), %r13d
	cmpl	%r13d, 16(%r15)
	jge	LBB0_11
## %bb.8:
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_qglBindBuffer
	movl	(%rbx), %edi
	movq	_GL_STREAM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_qglBufferData
	xorl	%eax, %eax
	callq	_qglGetError
	movq	_GL_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movl	%r13d, 16(%r15)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_qglBindBuffer
	movl	(%r15), %eax
	movl	4(%r15), %ebx
LBB0_11:
	imull	%eax, %ebx
	cmpl	%ebx, 8(%r15)
	jge	LBB0_14
## %bb.12:
	movq	_GL_PIXEL_PACK_BUFFER@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_qglBindBuffer
	movl	(%r12), %edi
	movq	_GL_STREAM_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_qglBufferData
	xorl	%eax, %eax
	callq	_qglGetError
	movq	_GL_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.13:
	movl	%ebx, 8(%r15)
	movl	(%r12), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qglBindBuffer                  ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_fputs
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_NO_ERROR,8,3                ## @GL_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GL Error creating PBO buffers.\n"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ## @GL_PIXEL_PACK_BUFFER
	.comm	_GL_STREAM_READ,4,2             ## @GL_STREAM_READ
L_.str.1:                               ## @.str.1
	.asciz	"Failed to generate PBO data buffer.\n"

	.no_dead_strip	_create_update_pbo_or_die
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_update_pbo_or_die
_create_update_pbo_or_die:              ; @create_update_pbo_or_die
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x21, x0
	ldr	w8, [x21, #20]!
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, x21
	bl	_qglGenBuffers
LBB0_2:
	mov	x20, x19
	ldr	w8, [x20, #12]!
	cbnz	w8, LBB0_4
; %bb.3:
	mov	w0, #1
	mov	x1, x20
	bl	_qglGenBuffers
LBB0_4:
	bl	_qglGetError
Lloh0:
	adrp	x23, _GL_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GL_NO_ERROR@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.5:
	ldp	w8, w9, [x19]
	mul	w10, w8, w9
	add	w22, w10, w10, lsl #1
	ldr	w10, [x19, #16]
	cmp	w10, w22
	b.ge	LBB0_8
; %bb.6:
Lloh2:
	adrp	x24, _GL_PIXEL_PACK_BUFFER@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GL_PIXEL_PACK_BUFFER@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x21]
	bl	_qglBindBuffer
	ldr	w0, [x24]
Lloh4:
	adrp	x8, _GL_STREAM_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GL_STREAM_READ@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x1, x22
	mov	x2, #0
	bl	_qglBufferData
	bl	_qglGetError
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.7:
	str	w22, [x19, #16]
	ldr	w0, [x24]
	mov	w1, #0
	bl	_qglBindBuffer
	ldp	w8, w9, [x19]
LBB0_8:
	mul	w21, w9, w8
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.ge	LBB0_11
; %bb.9:
Lloh7:
	adrp	x22, _GL_PIXEL_PACK_BUFFER@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GL_PIXEL_PACK_BUFFER@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_qglBindBuffer
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _GL_STREAM_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_STREAM_READ@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, #0
	bl	_qglBufferData
	bl	_qglGetError
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
	str	w21, [x19, #8]
	ldr	w0, [x22]
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_qglBindBuffer
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fputs
	bl	_abort
LBB0_13:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fputs
	bl	_abort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_NO_ERROR,8,3                ; @GL_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GL Error creating PBO buffers.\n"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_GL_PIXEL_PACK_BUFFER,4,2       ; @GL_PIXEL_PACK_BUFFER
	.comm	_GL_STREAM_READ,4,2             ; @GL_STREAM_READ
l_.str.1:                               ; @.str.1
	.asciz	"Failed to generate PBO data buffer.\n"

	.no_dead_strip	_create_update_pbo_or_die
.subsections_via_symbols
