	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genclass
_genclass:                              ## @genclass
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_wctype
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	movq	$0, 16(%rbx)
	movl	$-1, (%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_CCLASS_LOWER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_CCLASS_UPPER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CCLASS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown class %s"

L_.str.1:                               ## @.str.1
	.asciz	"upper"

	.comm	_CCLASS_UPPER,4,2               ## @CCLASS_UPPER
L_.str.2:                               ## @.str.2
	.asciz	"lower"

	.comm	_CCLASS_LOWER,4,2               ## @CCLASS_LOWER
	.comm	_CCLASS,4,2                     ## @CCLASS
	.no_dead_strip	_genclass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genclass
_genclass:                              ; @genclass
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_wctype
	str	w0, [x19, #24]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	str	xzr, [x19, #16]
	mov	w8, #-1
	str	w8, [x19]
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
Lloh6:
	adrp	x8, _CCLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCLASS@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CCLASS_LOWER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CCLASS_LOWER@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _CCLASS_UPPER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CCLASS_UPPER@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown class %s"

l_.str.1:                               ; @.str.1
	.asciz	"upper"

	.comm	_CCLASS_UPPER,4,2               ; @CCLASS_UPPER
l_.str.2:                               ; @.str.2
	.asciz	"lower"

	.comm	_CCLASS_LOWER,4,2               ; @CCLASS_LOWER
	.comm	_CCLASS,4,2                     ; @CCLASS
	.no_dead_strip	_genclass
.subsections_via_symbols
