	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_imm
_get_imm:                               ## @get_imm
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	jg	LBB0_1
LBB0_13:
	movl	%r14d, %ebx
	movb	$0, (%r15,%rbx)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_strtoul
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	-64(%rbp), %rcx
	subq	%r15, %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_14
## %bb.15:
	movq	_T_IMM@GOTPCREL(%rip), %rcx
	cmpl	$45, %r13d
	jne	LBB0_17
## %bb.16:
	negq	%rax
	movq	%rax, (%rdx)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	je	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	__bcs_isdigit
	testl	%eax, %eax
	je	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	__memstream_getc
	movb	%al, (%r15,%r14)
	incq	%r14
	movq	_BUFSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r12, %rdi
	callq	__memstream_peek
	movl	%eax, %ebx
	testq	%r14, %r14
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	__bcs_isxdigit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$1, %r14
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$120, %ebx
	je	LBB0_12
	jmp	LBB0_13
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	callq	__memstream_getc
	movq	%r12, %rdi
	callq	__memstream_peek
	movl	%eax, %ebx
	movl	%r13d, %eax
	testl	%r13d, %r13d
	jne	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %r13d
	cmpl	$45, %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$43, %r13d
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_14:
	movq	_T_ERR@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	(%rcx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZE,4,2                    ## @BUFSIZE
	.comm	_T_ERR,4,2                      ## @T_ERR
	.comm	_T_IMM,4,2                      ## @T_IMM
	.no_dead_strip	_get_imm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_imm
_get_imm:                               ; @get_imm
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _BUFSIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BUFSIZE@GOTPAGEOFF]
	ldr	w12, [x24]
	add	w8, w12, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	w12, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x25, #0
	mov	w23, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	__bcs_isdigit
	cbz	w0, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	__memstream_getc
	strb	w0, [x20, x25]
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x0, x21
	bl	__memstream_peek
	mov	x22, x0
	cbz	x25, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	__bcs_isxdigit
	cbnz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, #1
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w22, #120
	b.eq	LBB0_4
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x21
	bl	__memstream_getc
	mov	x0, x21
	bl	__memstream_peek
	mov	x22, x0
	mov	x0, x23
	cbnz	w23, LBB0_3
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x23, x22
	cmp	w22, #45
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w23, #43
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x23
	mov	x23, x0
	b	LBB0_3
LBB0_14:
	mov	x25, #0
	mov	w23, #0
LBB0_15:
	and	x21, x25, #0xffffffff
	strb	wzr, [x20, x21]
	sub	x1, x29, #80
	mov	x0, x20
	mov	w2, #0
	bl	_strtoul
	str	x0, [x19]
	ldur	x8, [x29, #-80]
	sub	x8, x8, x20
	cmp	x8, x21
	b.ne	LBB0_19
; %bb.16:
	cmp	w23, #45
	b.ne	LBB0_18
; %bb.17:
	neg	x8, x0
	str	x8, [x19]
LBB0_18:
Lloh7:
	adrp	x8, _T_IMM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _T_IMM@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh9:
	adrp	x8, _T_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _T_ERR@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #64
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZE,4,2                    ; @BUFSIZE
	.comm	_T_ERR,4,2                      ; @T_ERR
	.comm	_T_IMM,4,2                      ; @T_IMM
	.no_dead_strip	_get_imm
.subsections_via_symbols
