	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc_strtoumax               ## -- Begin function malloc_strtoumax
	.p2align	4, 0x90
_malloc_strtoumax:                      ## @malloc_strtoumax
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %r10
	cmpl	$36, %edx
	ja	LBB0_9
## %bb.1:
	cmpl	$1, %edx
	je	LBB0_9
## %bb.2:
	leaq	1(%r15), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rbx), %eax
	movsbl	%al, %ecx
	leal	-9(%rcx), %esi
	cmpl	$5, %esi
	jb	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$32, %ecx
	je	LBB0_3
## %bb.6:
	cmpl	$43, %ecx
	je	LBB0_10
## %bb.7:
	cmpl	$45, %ecx
	jne	LBB0_13
## %bb.8:
	movl	$1, %r8d
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %r12
	movq	%r15, %rbx
	jmp	LBB0_27
LBB0_10:
	xorl	%r8d, %r8d
LBB0_11:
	movb	(%rbx), %al
	cmpb	$48, %al
	je	LBB0_14
	jmp	LBB0_12
LBB0_13:
	decq	%rbx
	xorl	%r8d, %r8d
	cmpb	$48, %al
	jne	LBB0_12
LBB0_14:
	leaq	1(%rbx), %rdi
	movsbl	1(%rbx), %ecx
	leal	-48(%rcx), %eax
	cmpl	$8, %eax
	jae	LBB0_32
## %bb.15:
	testl	%edx, %edx
	movl	$8, %eax
	cmovel	%eax, %edx
	cmpl	$8, %edx
LBB0_16:
	cmovneq	%rbx, %rdi
	jmp	LBB0_17
LBB0_32:
	cmpl	$88, %ecx
	je	LBB0_34
## %bb.33:
	xorl	%eax, %eax
	cmpl	$120, %ecx
	jne	LBB0_28
LBB0_34:
	movsbl	2(%rbx), %eax
	addl	$-48, %eax
	cmpl	$54, %eax
	ja	LBB0_12
## %bb.35:
	movabsq	$35465847073801215, %rcx        ## imm = 0x7E0000007E03FF
	btq	%rax, %rcx
	jae	LBB0_12
## %bb.36:
	testl	%edx, %edx
	movl	$16, %eax
	cmovel	%eax, %edx
	leaq	2(%rbx), %rdi
	cmpl	$16, %edx
	jmp	LBB0_16
LBB0_12:
	movq	%rbx, %rdi
LBB0_17:
	testl	%edx, %edx
	movl	$10, %eax
	cmovnel	%edx, %eax
	xorl	%esi, %esi
	movq	_ERANGE@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rdi), %edx
	leal	-48(%rdx), %ecx
	cmpb	$9, %cl
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	leal	-48(%rdx), %ecx
	cmpl	%eax, %ecx
	jb	LBB0_24
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	leal	-65(%rdx), %ecx
	cmpb	$25, %cl
	ja	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	leal	-55(%rdx), %ecx
	cmpl	%eax, %ecx
	jb	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	leal	-97(%rdx), %ecx
	cmpb	$25, %cl
	ja	LBB0_31
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	addl	$-87, %edx
	movl	%edx, %ecx
	cmpl	%eax, %edx
	jae	LBB0_31
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%esi, %edx
	imull	%eax, %edx
	addl	%ecx, %edx
	cmpl	%esi, %edx
	jb	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rdi
	movl	%edx, %esi
	jmp	LBB0_18
LBB0_26:
	movq	%r9, %r10
	movq	%rdi, %r12
LBB0_27:
	movl	(%r10), %edi
	callq	_set_errno
	movq	_UINTMAX_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
LBB0_28:
	testq	%r14, %r14
	je	LBB0_30
## %bb.29:
	cmpq	%rbx, %rdi
	cmovneq	%rdi, %r15
	movq	%r15, (%r14)
LBB0_30:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	%esi, %eax
	negl	%eax
	testl	%r8d, %r8d
	cmovel	%esi, %eax
	movq	%rbx, %r12
	cmpq	%rbx, %rdi
	jne	LBB0_28
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UINTMAX_MAX,4,2                ## @UINTMAX_MAX
	.comm	_JEMALLOC_FALLTHROUGH,4,2       ## @JEMALLOC_FALLTHROUGH
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malloc_strtoumax               ; -- Begin function malloc_strtoumax
	.p2align	2
_malloc_strtoumax:                      ; @malloc_strtoumax
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	mov	x22, x0
	mov	x21, x0
	cmp	w2, #36
	b.hi	LBB0_22
; %bb.1:
	cmp	w2, #1
	b.eq	LBB0_22
; %bb.2:
	add	x21, x20, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldursb	w9, [x21, #-1]
	sub	w8, w9, #9
	cmp	w8, #5
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #32
	b.eq	LBB0_3
; %bb.6:
	cmp	w9, #43
	b.eq	LBB0_9
; %bb.7:
	cmp	w9, #45
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #1
	ldrb	w9, [x21]
	b	LBB0_11
LBB0_9:
	mov	w8, #0
	ldrb	w9, [x21]
	b	LBB0_11
LBB0_10:
	mov	w8, #0
	and	w9, w9, #0xff
	sub	x21, x21, #1
LBB0_11:
	mov	x22, x21
	cmp	w9, #48
	b.ne	LBB0_14
; %bb.12:
	ldrsb	w9, [x22, #1]!
	sub	w10, w9, #48
	cmp	w10, #8
	b.hs	LBB0_26
; %bb.13:
	mov	w9, #8
	cmp	w2, #0
	csel	w2, w9, w2, eq
	cmp	w2, #8
	csel	x22, x22, x21, eq
LBB0_14:
	mov	w10, #0
	mov	w9, #10
	cmp	w2, #0
	csel	w11, w9, w2, eq
Lloh2:
	adrp	x9, _ERANGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w13, [x22]
	sub	w12, w13, #48
	cmp	w12, #9
	ccmp	w12, w11, #2, ls
	b.lo	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w14, w13, #65
	sub	w12, w13, #55
	cmp	w14, #25
	ccmp	w12, w11, #2, ls
	b.lo	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w14, w13, #97
	sub	w12, w13, #87
	cmp	w14, #25
	ccmp	w12, w11, #2, ls
	b.hs	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	madd	w12, w10, w11, w12
	cmp	w12, w10
	b.lo	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x22, x22, #1
	mov	x10, x12
	b	LBB0_15
LBB0_20:
	cmp	w8, #0
	cneg	w0, w10, ne
	cmp	x22, x21
	b.ne	LBB0_23
; %bb.21:
Lloh4:
	adrp	x9, _EINVAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
	mov	x22, x21
LBB0_22:
	ldr	w0, [x9]
	bl	_set_errno
Lloh6:
	adrp	x8, _UINTMAX_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UINTMAX_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_23:
	cbz	x19, LBB0_25
LBB0_24:
	cmp	x22, x21
	csel	x8, x20, x22, eq
	str	x8, [x19]
LBB0_25:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_26:
	cmp	w9, #88
	b.eq	LBB0_28
; %bb.27:
	cmp	w9, #120
	b.ne	LBB0_30
LBB0_28:
	mov	x9, x21
	ldrsb	w10, [x9, #2]!
	sub	w10, w10, #48
	cmp	w10, #54
	b.hi	LBB0_31
; %bb.29:
	mov	w11, #1
	lsl	x10, x11, x10
	mov	x11, #35465847073800192
	movk	x11, #1023
	mov	w12, #16
	cmp	w2, #0
	csel	w12, w12, w2, eq
	cmp	w12, #16
	csel	x9, x9, x21, eq
	tst	x10, x11
	csel	w2, w12, w2, ne
	csel	x22, x9, x21, ne
	b	LBB0_14
LBB0_30:
	mov	w0, #0
	cbnz	x19, LBB0_24
	b	LBB0_25
LBB0_31:
	mov	x22, x21
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UINTMAX_MAX,4,2                ; @UINTMAX_MAX
	.comm	_JEMALLOC_FALLTHROUGH,4,2       ; @JEMALLOC_FALLTHROUGH
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
