	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imm8_alloc                     ## -- Begin function imm8_alloc
	.p2align	4, 0x90
_imm8_alloc:                            ## @imm8_alloc
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_rs1@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%esi, %rbx
	movq	(%rax,%rbx,8), %rdx
	movl	%ebx, %esi
	callq	_alloc_reg
	movq	_rt1@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdx
	testq	%rdx, %rdx
	js	LBB0_3
## %bb.1:
	movq	_TBIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_alloc_reg
LBB0_3:
	movq	_opcode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$12, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$8, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$7, %eax
	jne	LBB0_18
## %bb.6:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_is_const
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_get_const
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	_imm@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	(%rcx,%rbx,4), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_19
LBB0_8:
	movq	_opcode2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$8, (%rax,%rbx,4)
	jne	LBB0_10
LBB0_9:
	movq	_SR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_alloc_reg
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_dirty_reg
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$-1, %edx
	callq	_alloc_reg_temp
	movq	_minimum_free_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rbx,4)
	jmp	LBB0_20
LBB0_18:
	xorl	%edi, %edi
	cmpl	$14, %eax
	sete	%dil
	callq	_assert
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_imm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
LBB0_19:
	callq	_set_const
	jmp	LBB0_20
LBB0_10:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_is_const
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_get_const
	movl	%eax, %r15d
	movq	_opcode2@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$9, %eax
	je	LBB0_12
## %bb.13:
	cmpl	$10, %eax
	je	LBB0_14
LBB0_15:
	cmpl	$11, %eax
	jne	LBB0_20
	jmp	LBB0_16
LBB0_17:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_clear_const
LBB0_20:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	testq	%rsi, %rsi
	js	LBB0_22
## %bb.21:
	movq	_TBIT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_22
## %bb.23:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dirty_reg                      ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_imm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	andl	%r15d, %edx
	movq	%r14, %rdi
	callq	_set_const
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$10, %eax
	jne	LBB0_15
LBB0_14:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_imm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	xorl	%r15d, %edx
	movq	%r14, %rdi
	callq	_set_const
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$11, %eax
	jne	LBB0_20
LBB0_16:
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_imm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	(%rax,%rbx,4), %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_rs1,8,3                        ## @rs1
	.comm	_rt1,8,3                        ## @rt1
	.comm	_TBIT,8,3                       ## @TBIT
	.comm	_opcode,8,3                     ## @opcode
	.comm	_imm,8,3                        ## @imm
	.comm	_SR,8,3                         ## @SR
	.comm	_minimum_free_regs,8,3          ## @minimum_free_regs
	.comm	_opcode2,8,3                    ## @opcode2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imm8_alloc                     ; -- Begin function imm8_alloc
	.p2align	2
_imm8_alloc:                            ; @imm8_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _rs1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rs1@GOTPAGEOFF]
	ldr	x8, [x24]
	sxtw	x21, w20
	sbfiz	x22, x20, #3, #32
	ldr	x2, [x8, x22]
	bl	_alloc_reg
Lloh2:
	adrp	x23, _rt1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _rt1@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x2, [x8, x22]
Lloh4:
	adrp	x22, _TBIT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _TBIT@GOTPAGEOFF]
	tbnz	x2, #63, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cmp	x2, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_alloc_reg
LBB0_3:
Lloh6:
	adrp	x8, _opcode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _opcode@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #12
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #8
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #7
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x24]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_is_const
	cbz	x0, LBB0_16
; %bb.7:
	ldr	x8, [x24]
	lsl	x20, x21, #3
	ldr	x1, [x8, x20]
	mov	x0, x19
	bl	_get_const
	ldr	x8, [x23]
	ldr	x1, [x8, x20]
Lloh9:
	adrp	x8, _imm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _imm@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	add	w2, w8, w0
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x25, _opcode2@GOTPAGE
Lloh13:
	ldr	x25, [x25, _opcode2@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #8
	b.ne	LBB0_12
LBB0_9:
Lloh14:
	adrp	x24, _SR@GOTPAGE
Lloh15:
	ldr	x24, [x24, _SR@GOTPAGEOFF]
	ldr	x2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_alloc_reg
	ldr	x1, [x24]
	mov	x0, x19
	bl	_dirty_reg
	mov	x0, x19
	mov	x1, x20
	mov	w2, #-1
	bl	_alloc_reg_temp
Lloh16:
	adrp	x8, _minimum_free_regs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _minimum_free_regs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8, x21, lsl #2]
	b	LBB0_17
LBB0_10:
	cmp	w8, #14
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
Lloh19:
	adrp	x8, _imm@GOTPAGE
Lloh20:
	ldr	x8, [x8, _imm@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w2, [x8, x21, lsl #2]
LBB0_11:
	mov	x0, x19
	bl	_set_const
	b	LBB0_17
LBB0_12:
	ldr	x8, [x24]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_is_const
	cbz	x0, LBB0_16
; %bb.13:
	ldr	x8, [x24]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_get_const
	mov	x20, x0
	ldr	x8, [x25]
	ldr	w8, [x8, x21, lsl #2]
	lsl	x24, x21, #2
	cmp	w8, #9
	b.eq	LBB0_21
; %bb.14:
	cmp	w8, #10
	b.eq	LBB0_22
LBB0_15:
	cmp	w8, #11
	b.ne	LBB0_17
	b	LBB0_23
LBB0_16:
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_clear_const
LBB0_17:
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
	tbnz	x1, #63, LBB0_20
; %bb.18:
	ldr	x8, [x22]
	cmp	x1, x8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dirty_reg
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
Lloh22:
	adrp	x8, _imm@GOTPAGE
Lloh23:
	ldr	x8, [x8, _imm@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w8, [x8, x24]
	and	w2, w8, w20
	mov	x0, x19
	bl	_set_const
	ldr	x8, [x25]
	ldr	w8, [x8, x24]
	cmp	w8, #10
	b.ne	LBB0_15
LBB0_22:
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
Lloh25:
	adrp	x8, _imm@GOTPAGE
Lloh26:
	ldr	x8, [x8, _imm@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w8, [x8, x24]
	eor	w2, w8, w20
	mov	x0, x19
	bl	_set_const
	ldr	x8, [x25]
	ldr	w8, [x8, x24]
	cmp	w8, #11
	b.ne	LBB0_17
LBB0_23:
	ldr	x8, [x23]
	ldr	x1, [x8, x21, lsl #3]
Lloh28:
	adrp	x8, _imm@GOTPAGE
Lloh29:
	ldr	x8, [x8, _imm@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	orr	w2, w8, w20
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_rs1,8,3                        ; @rs1
	.comm	_rt1,8,3                        ; @rt1
	.comm	_TBIT,8,3                       ; @TBIT
	.comm	_opcode,8,3                     ; @opcode
	.comm	_imm,8,3                        ; @imm
	.comm	_SR,8,3                         ; @SR
	.comm	_minimum_free_regs,8,3          ; @minimum_free_regs
	.comm	_opcode2,8,3                    ; @opcode2
.subsections_via_symbols
