	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nametoclass                ## -- Begin function res_nametoclass
	.p2align	4, 0x90
_res_nametoclass:                       ## @res_nametoclass
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___p_class_syms@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_sym_ston
	movq	%rax, %r15
	cmpl	$0, -36(%rbp)
	jne	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_strncasecmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
LBB0_9:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movzbl	5(%rbx), %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	addq	$5, %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r15
	cmpq	$0, (%r12)
	jne	LBB0_7
## %bb.4:
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_7
## %bb.5:
	cmpq	$65535, %r15                    ## imm = 0xFFFF
	ja	LBB0_7
## %bb.6:
	movl	$1, -36(%rbp)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	___p_class_syms,4,2             ## @__p_class_syms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLASS"

	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_nametoclass                ; -- Begin function res_nametoclass
	.p2align	2
_res_nametoclass:                       ; @res_nametoclass
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___p_class_syms@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___p_class_syms@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #4
	mov	x1, x21
	bl	_sym_ston
	mov	x20, x0
	ldr	w8, [sp, #4]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #5
	bl	_strncasecmp
	cbz	x0, LBB0_5
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	w8, [sp, #4]
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
	ldrb	w0, [x21, #5]!
	bl	_isdigit
	cbz	w0, LBB0_2
; %bb.6:
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	mov	x20, x0
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.7:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cmp	w8, #0
	lsr	x8, x20, #16
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_2
; %bb.8:
	mov	w8, #1
	str	w8, [sp, #4]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	___p_class_syms,4,2             ; @__p_class_syms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLASS"

	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
