	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtree_atol
_mtree_atol:                            ## @mtree_atol
	.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	%rdi, %r14
	movq	(%rdi), %rcx
	testl	%esi, %esi
	je	LBB0_12
## %bb.1:
	movl	%esi, %r15d
LBB0_2:
	movb	(%rcx), %bl
LBB0_3:
	cmpb	$45, %bl
	jne	LBB0_17
## %bb.4:
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r15d
	movl	%eax, %r12d
	movl	%edx, %r13d
	leaq	1(%rcx), %rax
	movq	%rax, (%r14)
	movsbl	1(%rcx), %edi
	callq	_parsedigit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_27
## %bb.5:
	cmpl	%r15d, %eax
	jge	LBB0_27
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %ebx
	jl	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r13d, %eax
	jg	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	imull	%r15d, %ebx
	subl	%eax, %ebx
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movsbl	1(%rax), %edi
	callq	_parsedigit
	testl	%eax, %eax
	js	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r15d, %eax
	jl	LBB0_7
	jmp	LBB0_27
LBB0_12:
	movb	(%rcx), %bl
	movl	$10, %r15d
	cmpb	$48, %bl
	jne	LBB0_3
## %bb.13:
	movb	1(%rcx), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_16
## %bb.14:
	addq	$2, %rcx
	movq	%rcx, (%r14)
	movl	$16, %r15d
	jmp	LBB0_2
LBB0_15:
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_16:
	movb	$48, %bl
	movl	$8, %r15d
LBB0_17:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r15d
	movl	%edx, %r12d
	movl	%eax, %r13d
	movsbl	%bl, %edi
	callq	_parsedigit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_27
## %bb.18:
	cmpl	%r15d, %eax
	jge	LBB0_27
## %bb.19:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r13d, %ebx
	jg	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%r12d, %eax
	jg	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	imull	%r15d, %ebx
	addl	%eax, %ebx
	movq	(%r14), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r14)
	movsbl	1(%rax), %edi
	callq	_parsedigit
	testl	%eax, %eax
	js	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	%r15d, %eax
	jl	LBB0_20
	jmp	LBB0_27
LBB0_25:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
	.no_dead_strip	_mtree_atol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtree_atol
_mtree_atol:                            ; @mtree_atol
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
	cbz	w1, LBB0_11
; %bb.1:
	mov	x20, x1
LBB0_2:
	ldrb	w9, [x8]
	cmp	w9, #45
	b.ne	LBB0_16
LBB0_3:
Lloh0:
	adrp	x22, _INT64_MIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _INT64_MIN@GOTPAGEOFF]
	ldr	w24, [x22]
	add	x9, x8, #1
	str	x9, [x19]
	ldrsb	w0, [x8, #1]
	bl	_parsedigit
	mov	w21, #0
	tbnz	w0, #31, LBB0_25
; %bb.4:
	cmp	w0, w20
	b.ge	LBB0_25
; %bb.5:
	mov	w21, #0
	sdiv	w23, w24, w20
	msub	w24, w23, w20, w24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, w23
	b.lt	LBB0_24
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, w24
	b.gt	LBB0_24
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	neg	w8, w0
	madd	w21, w21, w20, w8
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldrsb	w0, [x8, #1]
	bl	_parsedigit
	tbnz	w0, #31, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, w20
	b.lt	LBB0_6
	b	LBB0_25
LBB0_11:
	ldrb	w9, [x8]
	cmp	w9, #48
	b.ne	LBB0_14
; %bb.12:
	ldrb	w9, [x8, #1]
	orr	w9, w9, #0x20
	cmp	w9, #120
	b.ne	LBB0_15
; %bb.13:
	add	x8, x8, #2
	str	x8, [x19]
	mov	w20, #16
	b	LBB0_2
LBB0_14:
	mov	w20, #10
	cmp	w9, #45
	b.eq	LBB0_3
	b	LBB0_16
LBB0_15:
	mov	w9, #48
	mov	w20, #8
LBB0_16:
Lloh2:
	adrp	x22, _INT64_MAX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INT64_MAX@GOTPAGEOFF]
	ldr	w24, [x22]
	sxtb	w0, w9
	bl	_parsedigit
	mov	w21, #0
	tbnz	w0, #31, LBB0_25
; %bb.17:
	cmp	w0, w20
	b.ge	LBB0_25
; %bb.18:
	mov	w21, #0
	sdiv	w23, w24, w20
	msub	w24, w23, w20, w24
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, w23
	b.gt	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w0, w24
	b.gt	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	madd	w21, w21, w20, w0
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	ldrsb	w0, [x8, #1]
	bl	_parsedigit
	tbnz	w0, #31, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w0, w20
	b.lt	LBB0_19
	b	LBB0_25
LBB0_24:
	ldr	w21, [x22]
LBB0_25:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
	.no_dead_strip	_mtree_atol
.subsections_via_symbols
