	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_ResizeBuffersMESA           ## -- Begin function gl_ResizeBuffersMESA
	.p2align	4, 0x90
_gl_ResizeBuffersMESA:                  ## @gl_ResizeBuffersMESA
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NEW_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rdi)
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	callq	*16(%rdi)
	movq	24(%rbx), %rax
	movq	-24(%rbp), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rcx
	cmpq	%rcx, 8(%rax)
	movq	%rcx, 8(%rax)
	jne	LBB0_3
	jmp	LBB0_12
LBB0_1:
	movq	%rcx, (%rax)
	movq	-16(%rbp), %rcx
	movq	%rcx, 8(%rax)
LBB0_3:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jle	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	(%rbx), %rax
LBB0_5:
	cmpq	$0, 8(%rax)
	jle	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_gl_alloc_stencil_buffer
	movq	(%rbx), %rax
LBB0_7:
	cmpq	$0, 16(%rax)
	jle	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_gl_alloc_accum_buffer
	movq	(%rbx), %rax
LBB0_9:
	cmpq	$0, 32(%rax)
	jne	LBB0_11
## %bb.10:
	cmpq	$0, 24(%rax)
	je	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_gl_alloc_alpha_buffers
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NEW_ALL,4,2                    ## @NEW_ALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_ResizeBuffersMESA           ; -- Begin function gl_ResizeBuffersMESA
	.p2align	2
_gl_ResizeBuffersMESA:                  ; @gl_ResizeBuffersMESA
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NEW_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEW_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #32]
	orr	w8, w9, w8
	str	w8, [x0, #32]
	ldr	x8, [x0, #16]
	add	x1, sp, #8
	mov	x2, sp
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x10, [x8]
	ldr	x9, [sp, #8]
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x8, #8]
	ldr	x10, [sp]
	str	x10, [x8, #8]
	cmp	x9, x10
	b.ne	LBB0_3
	b	LBB0_12
LBB0_2:
	str	x9, [x8]
	ldr	x9, [sp]
	str	x9, [x8, #8]
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x8, #8]
	cmp	x9, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_gl_alloc_stencil_buffer
	ldr	x8, [x19]
LBB0_7:
	ldr	x9, [x8, #16]
	cmp	x9, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_gl_alloc_accum_buffer
	ldr	x8, [x19]
LBB0_9:
	ldr	x9, [x8, #32]
	cbnz	x9, LBB0_11
; %bb.10:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_gl_alloc_alpha_buffers
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NEW_ALL,4,2                    ; @NEW_ALL
.subsections_via_symbols
