	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_alloc_alpha_buffers         ## -- Begin function gl_alloc_alpha_buffers
	.p2align	4, 0x90
_gl_alloc_alpha_buffers:                ## @gl_alloc_alpha_buffers
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	(%rax), %ebx
	imull	4(%rax), %ebx
	movq	16(%rdi), %rcx
	shll	$2, %ebx
	cmpq	$0, 8(%rcx)
	je	LBB0_5
## %bb.1:
	movq	24(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movl	%ebx, %edi
	callq	_malloc
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_GL_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_gl_error
LBB0_5:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.6:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_free
LBB0_8:
	movl	%ebx, %edi
	callq	_malloc
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_GL_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_gl_error
LBB0_10:
	movq	8(%r14), %rax
	movq	_GL_FRONT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rcx
	movq	24(%rcx), %rdx
	movq	%rdx, 16(%rcx)
LBB0_12:
	movq	_GL_BACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	movq	%rcx, 16(%rax)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_OUT_OF_MEMORY,4,2           ## @GL_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate front alpha buffer"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't allocate back alpha buffer"

	.comm	_GL_FRONT,8,3                   ## @GL_FRONT
	.comm	_GL_BACK,8,3                    ## @GL_BACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_alloc_alpha_buffers         ; -- Begin function gl_alloc_alpha_buffers
	.p2align	2
_gl_alloc_alpha_buffers:                ; @gl_alloc_alpha_buffers
	.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
	ldr	x8, [x0]
	ldp	w9, w10, [x8]
	mul	w9, w9, w10
	lsl	w20, w9, #2
	ldr	x9, [x0, #16]
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_5
; %bb.1:
	ldr	x0, [x8, #24]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_free
LBB0_3:
	mov	x0, x20
	bl	_malloc
	ldr	x8, [x19]
	str	x0, [x8, #24]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _GL_OUT_OF_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gl_error
LBB0_5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_free
LBB0_8:
	mov	x0, x20
	bl	_malloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
	cbnz	x0, LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _GL_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gl_error
LBB0_10:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _GL_FRONT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GL_FRONT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x9, [x19]
	ldr	x10, [x9, #24]
	str	x10, [x9, #16]
LBB0_12:
Lloh13:
	adrp	x9, _GL_BACK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GL_BACK@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	str	x9, [x8, #16]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_OUT_OF_MEMORY,4,2           ; @GL_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate front alpha buffer"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't allocate back alpha buffer"

	.comm	_GL_FRONT,8,3                   ; @GL_FRONT
	.comm	_GL_BACK,8,3                    ; @GL_BACK
.subsections_via_symbols
