	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tar_atol_base_n
_tar_atol_base_n:                       ## @tar_atol_base_n
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %eax
	cltd
	idivl	%r14d
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	movl	%eax, %r8d
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rcx), %ebx
	cmpb	$9, %bl
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$32, %bl
	je	LBB0_2
## %bb.5:
	cmpb	$45, %bl
	jne	LBB0_10
## %bb.6:
	leaq	-1(%rsi), %rax
	xorl	%r9d, %r9d
	cmpq	%rcx, %rax
	je	LBB0_22
## %bb.7:
	movq	%rcx, %r11
	notq	%r11
	addq	%rsi, %r11
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %eax
	cltd
	idivl	%r14d
	movl	%eax, %r8d
	negl	%r8d
	leaq	(%rdi,%rcx), %rsi
	incq	%rsi
	movb	1(%rdi,%rcx), %bl
	movb	$1, %r10b
	jmp	LBB0_11
LBB0_9:
	xorl	%r9d, %r9d
	jmp	LBB0_22
LBB0_10:
	subq	%rcx, %rsi
	addq	%rcx, %rdi
	xorl	%r10d, %r10d
	movq	%rsi, %r11
	movq	%rdi, %rsi
LBB0_11:
	movl	%r9d, %eax
	cltd
	idivl	%r14d
	xorl	%eax, %eax
	cmpb	$48, %bl
	jl	LBB0_19
## %bb.12:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	imull	%r14d, %eax
	addl	%edi, %eax
	movzbl	1(%rsi,%rcx), %ebx
	incq	%rcx
	cmpb	$47, %bl
	jle	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%bl, %edi
	addl	$-48, %edi
	cmpl	%r14d, %edi
	jge	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	%rcx, %r11
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%r8d, %eax
	jg	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	jne	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	%edx, %edi
	jle	LBB0_13
	jmp	LBB0_22
LBB0_19:
	testb	%r10b, %r10b
	je	LBB0_21
## %bb.20:
	negl	%eax
LBB0_21:
	movl	%eax, %r9d
LBB0_22:
	movl	%r9d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.no_dead_strip	_tar_atol_base_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tar_atol_base_n
_tar_atol_base_n:                       ; @tar_atol_base_n
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
	mov	x8, x0
	mov	x13, #0
Lloh0:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	sdiv	w9, w0, w2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	cmp	x1, x13
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x8, x13]
	cmp	w12, #9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w12, #32
	b.eq	LBB0_2
; %bb.5:
	cmp	w12, #45
	b.ne	LBB0_8
; %bb.6:
	sub	x9, x1, #1
	cmp	x9, x13
	b.ne	LBB0_9
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
	mov	w11, #0
	sub	x10, x1, x13
	add	x14, x8, x13
	b	LBB0_10
LBB0_9:
	mvn	x9, x13
	add	x10, x9, x1
Lloh3:
	adrp	x9, _INT64_MIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT64_MIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	sdiv	w9, w0, w2
	neg	w9, w9
	add	x14, x8, x13
	ldrb	w12, [x14, #1]!
	mov	w11, #1
LBB0_10:
	sxtb	w8, w12
	cmp	w8, #48
	b.lt	LBB0_17
; %bb.11:
	mov	w8, #0
	sdiv	w13, w0, w2
	msub	w13, w13, w2, w0
	add	x14, x14, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	madd	w8, w8, w2, w12
	ldrsb	w12, [x14], #1
	cmp	w12, #47
	b.le	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	and	w12, w12, #0xff
	sub	w12, w12, #48
	subs	x10, x10, #1
	cset	w15, hs
	cmp	w12, w2
	ccmp	w15, #0, #4, lt
	b.eq	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, w9
	b.gt	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	b.ne	LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w12, w13
	b.le	LBB0_12
	b	LBB0_20
LBB0_17:
	mov	w8, #0
LBB0_18:
	cbz	w11, LBB0_21
; %bb.19:
	neg	w0, w8
LBB0_20:
	ret
LBB0_21:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.no_dead_strip	_tar_atol_base_n
.subsections_via_symbols
