	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_decodeidname
_ng_decodeidname:                       ## @ng_decodeidname
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_strlen
	xorl	%r14d, %r14d
	cmpl	$3, %eax
	jl	LBB0_6
## %bb.1:
	cmpb	$91, (%rbx)
	jne	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	decl	%r15d
	cmpb	$93, (%rbx,%r15)
	jne	LBB0_6
## %bb.3:
	movsbl	1(%rbx), %edi
	callq	_isxdigit
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	1(%rbx), %rdi
	leaq	-32(%rbp), %rsi
	movl	$16, %edx
	callq	_strtoul
	movq	-32(%rbp), %rcx
	subq	%rbx, %rcx
	cmpq	%r15, %rcx
	jne	LBB0_6
## %bb.5:
	movq	_ULONG_MAX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	movl	%eax, %r14d
	cmovel	%edx, %r14d
	testq	%rax, %rax
	cmovel	%edx, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
	.no_dead_strip	_ng_decodeidname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_decodeidname
_ng_decodeidname:                       ; @ng_decodeidname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_strlen
	cmp	w0, #3
	b.lt	LBB0_6
; %bb.1:
	ldrb	w8, [x19]
	cmp	w8, #91
	b.ne	LBB0_6
; %bb.2:
	sub	w21, w0, #1
	ldrb	w8, [x19, x21]
	cmp	w8, #93
	b.ne	LBB0_6
; %bb.3:
	mov	x20, x19
	ldrsb	w0, [x20, #1]!
	bl	_isxdigit
	cbz	w0, LBB0_7
; %bb.4:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #16
	bl	_strtoul
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _ULONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	ccmp	x0, #0, #4, ne
	csel	w0, wzr, w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
	.no_dead_strip	_ng_decodeidname
.subsections_via_symbols
