	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_instruction
_alloc_instruction:                     ## @alloc_instruction
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_InstSize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %r12
	incq	%rdx
	xorl	%edi, %edi
	cmpq	%rdx, %r12
	sete	%dil
	callq	_assert
	movq	(%r15), %rbx
	movq	8(%r15), %r13
	leaq	(%r12,%rbx), %rcx
	addq	$2, %rcx
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_4
## %bb.1:
	shlq	$4, %rbx
	movq	_OPCODE_CONTINUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r13,%rbx)
	movl	(%rax), %edi
	shll	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	addq	%rbx, %r13
	movq	%rax, 24(%r13)
	movq	%rax, 8(%r15)
	xorl	%ebx, %ebx
	movq	%rax, %r13
LBB0_4:
	movq	%rbx, %rcx
	shlq	$4, %rcx
	leaq	(%rcx,%r13), %rax
	addq	%rbx, %r12
	movq	%r12, (%r15)
	movq	%r14, (%r13,%rcx)
	jmp	LBB0_5
LBB0_2:
	movq	_GL_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_gl_error
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InstSize,8,3                   ## @InstSize
	.comm	_BLOCK_SIZE,8,3                 ## @BLOCK_SIZE
	.comm	_OPCODE_CONTINUE,8,3            ## @OPCODE_CONTINUE
	.comm	_GL_OUT_OF_MEMORY,4,2           ## @GL_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Building display list"

	.no_dead_strip	_alloc_instruction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_instruction
_alloc_instruction:                     ; @alloc_instruction
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _InstSize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InstSize@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8, x1, lsl #3]
	add	x8, x2, #1
	cmp	x21, x8
	cset	w0, eq
	bl	_assert
	ldp	x8, x0, [x19]
	add	x9, x21, x8
	add	x10, x9, #2
Lloh3:
	adrp	x9, _BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLOCK_SIZE@GOTPAGEOFF]
	ldr	x11, [x9]
	cmp	x10, x11
	b.le	LBB0_3
; %bb.1:
	add	x22, x0, x8, lsl #4
Lloh5:
	adrp	x8, _OPCODE_CONTINUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPCODE_CONTINUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x22]
	ldr	w8, [x9]
	lsl	w0, w8, #4
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x8, #0
	str	x0, [x22, #24]
	str	x0, [x19, #8]
LBB0_3:
	add	x0, x0, x8, lsl #4
	add	x8, x8, x21
	str	x8, [x19]
	str	x20, [x0]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _GL_OUT_OF_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gl_error
	mov	x0, #0
LBB0_5:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_InstSize,8,3                   ; @InstSize
	.comm	_BLOCK_SIZE,8,3                 ; @BLOCK_SIZE
	.comm	_OPCODE_CONTINUE,8,3            ; @OPCODE_CONTINUE
	.comm	_GL_OUT_OF_MEMORY,4,2           ; @GL_OUT_OF_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Building display list"

	.no_dead_strip	_alloc_instruction
.subsections_via_symbols
