	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_size                     ## -- Begin function parse_size
	.p2align	4, 0x90
_parse_size:                            ## @parse_size
	.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
	movl	$10, %eax
	cmpb	$48, (%rdi)
	jne	LBB0_1
## %bb.2:
	movb	1(%r14), %cl
	orb	$32, %cl
	movq	%r14, %r12
	cmpb	$120, %cl
	jne	LBB0_4
## %bb.3:
	leaq	2(%r14), %r12
	movl	$16, %eax
	jmp	LBB0_4
LBB0_1:
	movq	%r14, %r12
LBB0_4:
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_hexval
	cmpl	%r13d, %eax
	jae	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdx
	imulq	%r13, %rdx
	movl	%eax, %ecx
	addq	%rdx, %rcx
	jb	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r13
	cmpq	$-1, %rcx
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	cmpq	$-1, %rcx
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	%r15, %rax
	movq	%rcx, %r15
	je	LBB0_5
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_15
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_15:
	movq	$-1, %r15
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: not a valid digit: '%c'\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: value too large: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_size                     ; -- Begin function parse_size
	.p2align	2
_parse_size:                            ; @parse_size
	.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	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #48
	b.ne	LBB0_2
; %bb.1:
	ldrb	w8, [x19, #1]
	mov	w9, #10
	orr	w8, w8, #0x20
	add	x10, x19, #2
	mov	w11, #16
	cmp	w8, #120
	csel	w8, w11, w9, eq
	csel	x22, x10, x19, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #10
	mov	x22, x19
LBB0_3:
	mov	x20, #0
	mov	w23, w8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w21, [x22], #1
	cbz	w21, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_hexval
	cmp	w0, w23
	b.hs	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mul	x8, x20, x23
	adds	x8, x8, w0, uxtw
	b.hs	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	x8, #1
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	udiv	x9, x8, x23
	cmp	x9, x20
	mov	x20, x8
	b.eq	LBB0_4
LBB0_9:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	sxtw	x8, w21
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_fprintf
	mov	x20, #-1
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: not a valid digit: '%c'\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: value too large: %s\n"

.subsections_via_symbols
