	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifc_name2unit                  ## -- Begin function ifc_name2unit
	.p2align	4, 0x90
_ifc_name2unit:                         ## @ifc_name2unit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %dl
	testb	%dl, %dl
	je	LBB0_4
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r8
	imulq	$1717986919, %r8, %r9           ## imm = 0x66666667
	movq	%r9, %rax
	shrq	$63, %rax
	sarq	$34, %r9
	addl	%eax, %r9d
	leal	(%r9,%r9), %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r8d
	incq	%rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-58(%rdx), %eax
	cmpb	$-11, %al
	ja	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rdi), %edx
	incq	%rdi
	testb	%dl, %dl
	jne	LBB0_2
LBB0_4:
	movl	$-1, (%rsi)
LBB0_15:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	cmpb	$48, %dl
	jne	LBB0_8
## %bb.5:
	cmpb	$0, (%rdi)
	je	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_8:
	movl	$0, (%rsi)
	movb	-1(%rdi), %al
	testb	%al, %al
	je	LBB0_15
## %bb.9:
	xorl	%edx, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rdx,%rdx,4), %ecx
	leal	(%rax,%rcx,2), %edx
	movl	%edx, (%rsi)
	movzbl	(%rdi), %eax
	incq	%rdi
	testb	%al, %al
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-58(%rax), %ecx
	cmpb	$-11, %cl
	jbe	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r9d, %edx
	jg	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	%al, %eax
	addl	$-48, %eax
	cmpl	%r9d, %edx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r8d, %eax
	jle	LBB0_14
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifc_name2unit                  ; -- Begin function ifc_name2unit
	.p2align	2
_ifc_name2unit:                         ; @ifc_name2unit
	.cfi_startproc
; %bb.0:
	ldrb	w10, [x0]
	cbz	w10, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w9, w8
	lsr	x11, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w11
	mov	w11, #10
	msub	w9, w8, w11, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w11, w10, #58
	cmn	w11, #11
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w10, [x0, #1]!
	cbnz	w10, LBB0_2
LBB0_4:
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x1]
	ret
LBB0_5:
	cmp	w10, #48
	b.ne	LBB0_7
; %bb.6:
	ldrb	w10, [x0, #1]
	cbnz	w10, LBB0_14
LBB0_7:
	str	wzr, [x1]
	ldrb	w13, [x0]
	cbz	w13, LBB0_15
; %bb.8:
	mov	w10, #0
	mov	w11, #1
	mov	w12, #10
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	madd	w10, w10, w12, w13
	str	w10, [x1]
	ldrb	w13, [x0, x11]
	add	x11, x11, #1
	cbz	w13, LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w14, w13, #58
	and	w14, w14, #0xff
	cmp	w14, #245
	b.ls	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w10, w8
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtb	w13, w13
	sub	w13, w13, #48
	cmp	w10, w8
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w13, w9
	b.le	LBB0_9
LBB0_14:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_15:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
