	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_int32_parse
_ng_int32_parse:                        ## @ng_int32_parse
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_INT_SIGNED@GOTPCREL(%rip), %rcx
	movslq	(%rdx), %rdi
	addq	%rsi, %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtol
	jmp	LBB0_3
LBB0_2:
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
LBB0_3:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	addq	%rax, %rcx
	cmpq	$-2147483648, %rcx              ## imm = 0x80000000
	jb	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rcx
	movslq	(%r12), %rdx
	addq	%rbx, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_5
## %bb.6:
	subl	%ebx, %ecx
	movl	%ecx, (%r12)
	movq	%rax, (%r15)
	movl	$8, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_SIGNED,8,3                 ## @INT_SIGNED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ng_int32_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_int32_parse
_ng_int32_parse:                        ; @ng_int32_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x5
	mov	x20, x4
	mov	x21, x2
	mov	x22, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INT_SIGNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrsw	x10, [x2]
	add	x0, x1, x10
	add	x1, sp, #8
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
	bl	_strtol
	b	LBB0_3
LBB0_2:
	mov	w2, #0
	bl	_strtoul
LBB0_3:
	mov	x8, #-4294967296
	mov	x9, #-2147483648
	add	x8, x0, x8
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.4:
	ldr	x9, [sp, #8]
	ldrsw	x8, [x21]
	add	x8, x22, x8
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #0
	sub	w9, w9, w22
	str	w9, [x21]
	str	x0, [x20]
	mov	w9, #8
	str	w9, [x19]
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_SIGNED,8,3                 ; @INT_SIGNED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ng_int32_parse
.subsections_via_symbols
