	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_int                      ## -- Begin function parse_int
	.p2align	4, 0x90
_parse_int:                             ## @parse_int
	.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	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_strncmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	leal	(%rcx,%rcx), %edx
	addl	$8, %edx
	jmp	LBB0_3
LBB0_1:
	movl	$16, %edx
LBB0_3:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtoll
	cmpq	$0, (%r13)
	jne	LBB0_4
## %bb.6:
	movq	_INT_MIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.7:
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_8
## %bb.9:
	movl	%eax, (%r12)
	movq	-48(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_kprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x"

L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"strtoll failed during parsing int at line %d in %s.\n"

	.comm	_INT_MIN,8,3                    ## @INT_MIN
	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.3:                               ## @.str.3
	.asciz	"signed 32 bit integer is out of range at line %d in %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_int                      ; -- Begin function parse_int
	.p2align	2
_parse_int:                             ; @parse_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	str	x0, [sp, #8]
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	str	xzr, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #1
	bl	_strncmp
	mov	w8, #10
	mov	w9, #8
	cmp	w0, #0
	csel	w2, w9, w8, eq
	b	LBB0_3
LBB0_2:
	mov	w2, #16
LBB0_3:
	add	x1, sp, #8
	mov	x0, x22
	bl	_strtoll
	ldr	x8, [x23]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #0, ge
	b.gt	LBB0_7
; %bb.5:
	str	w0, [x21]
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	mov	x1, x20
	mov	x2, x19
	bl	_kprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x"

l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"strtoll failed during parsing int at line %d in %s.\n"

	.comm	_INT_MIN,8,3                    ; @INT_MIN
	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.3:                               ; @.str.3
	.asciz	"signed 32 bit integer is out of range at line %d in %s.\n"

.subsections_via_symbols
