	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextwctype_l                   ## -- Begin function nextwctype_l
	.p2align	4, 0x90
_nextwctype_l:                          ## @nextwctype_l
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_FIX_LOCALE
	movl	%r15d, %edi
	callq	_XLOCALE_CTYPE
	movq	(%rax), %rdx
	movq	__CACHED_RUNES@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_4
## %bb.1:
	decq	%rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	je	LBB0_3
## %bb.29:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rbx), %rax
	movq	(%rdx), %rsi
	testl	%r14d, 4(%rsi,%rbx,4)
	movq	%rax, %rbx
	je	LBB0_2
	jmp	LBB0_28
LBB0_3:
	movq	%rcx, %rbx
LBB0_4:
	movq	16(%rdx), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.6:
	movq	(%r8), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	setae	%al
	cmovbeq	%rcx, %rbx
	jmp	LBB0_7
LBB0_5:
	movl	$1, %eax
LBB0_7:
	movq	8(%rdx), %r9
	testq	%r9, %r9
	je	LBB0_12
## %bb.8:
	movq	%r8, %rdi
	movq	%r9, %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$32, %r10
	xorl	%ecx, %ecx
	cmpq	%r11, %rbx
	seta	%cl
	cmovaq	%r10, %rdi
	subq	%rcx, %rsi
	movq	%rsi, %rcx
	shrq	%rcx
	cmpq	$2, %rsi
	movq	%rcx, %rsi
	jb	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rdx
	shrq	%rdx
	shlq	$5, %rdx
	leaq	(%rdi,%rdx), %r10
	movq	(%rdi,%rdx), %rcx
	movq	8(%rdi,%rdx), %r11
	cmpq	%rbx, %rcx
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%r11, %rbx
	ja	LBB0_11
## %bb.13:
	addq	%rbx, %rax
	cmpq	%rax, %rcx
	ja	LBB0_20
## %bb.14:
	cmpq	%r11, %rax
	ja	LBB0_20
## %bb.15:
	movq	16(%rdi,%rdx), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.16:
	shlq	$2, %rcx
	subq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testl	%r14d, (%rsi,%rax,4)
	jne	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rax
	cmpq	%r11, %rax
	jbe	LBB0_17
	jmp	LBB0_20
LBB0_19:
	testl	%r14d, 24(%rdi,%rdx)
	jne	LBB0_28
LBB0_20:
	shlq	$5, %r9
	addq	%r9, %r8
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	leaq	32(%r10), %rax
	cmpq	%r8, %rax
	jae	LBB0_12
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r10, %rdx
	movq	%rax, %r10
	movq	(%rax), %rax
	movq	48(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	40(%rdx), %rdx
	cmpq	%rdx, %rax
	ja	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r14d, (%rcx)
	jne	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	incq	%rax
	addq	$4, %rcx
	cmpq	%rdx, %rax
	jbe	LBB0_25
	jmp	LBB0_21
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	testl	%r14d, 56(%rdx)
	je	LBB0_21
	jmp	LBB0_28
LBB0_12:
	movq	$-1, %rax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__CACHED_RUNES,8,3              ## @_CACHED_RUNES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextwctype_l                   ; -- Begin function nextwctype_l
	.p2align	2
_nextwctype_l:                          ; @nextwctype_l
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_FIX_LOCALE
	mov	x0, x21
	bl	_XLOCALE_CTYPE
	ldr	x8, [x0]
Lloh0:
	adrp	x9, __CACHED_RUNES@GOTPAGE
Lloh1:
	ldr	x9, [x9, __CACHED_RUNES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x20
	b.ls	LBB0_6
; %bb.1:
	sub	x10, x9, #1
	add	x11, x20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x8]
	ldr	w12, [x12, x11, lsl #2]
	add	x11, x11, #1
	tst	w12, w19
	b.eq	LBB0_2
; %bb.4:
	sub	x0, x11, #1
	b	LBB0_20
LBB0_5:
	mov	x20, x10
LBB0_6:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_8
; %bb.7:
	ldr	x10, [x9]
	cmp	x20, x10
	csel	x20, x20, x10, hi
	cset	w11, hs
	ldr	x10, [x8, #8]
	cbnz	x10, LBB0_9
	b	LBB0_19
LBB0_8:
	mov	w11, #1
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_19
LBB0_9:
	mov	x13, x9
	mov	x14, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsr	x16, x14, #1
	add	x8, x13, x16, lsl #5
	ldp	x15, x12, [x8]
	cmp	x15, x20
	ccmp	x20, x12, #2, ls
	b.ls	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #32
	cmp	x20, x12
	csel	x13, x8, x13, hi
	cset	w8, hi
	sub	x8, x14, x8
	lsr	x14, x8, #1
	cmp	x8, #2
	b.hs	LBB0_10
	b	LBB0_19
LBB0_12:
	add	x0, x11, x20
	cmp	x15, x0
	ccmp	x0, x12, #2, ls
	b.hi	LBB0_18
; %bb.13:
	add	x11, x13, x16, lsl #5
	ldr	x13, [x11, #16]
	cbz	x13, LBB0_17
; %bb.14:
	sub	x11, x13, x15, lsl #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11, x0, lsl #2]
	tst	w13, w19
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x0, #1
	cmp	x0, x12
	b.ls	LBB0_15
	b	LBB0_18
LBB0_17:
	ldr	w11, [x11, #24]
	tst	w11, w19
	b.ne	LBB0_20
LBB0_18:
	add	x9, x9, x10, lsl #5
	add	x10, x8, #32
	cmp	x10, x9
	b.lo	LBB0_23
LBB0_19:
	mov	x0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w10, [x11, #56]
	tst	w10, w19
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x10, x8, #32
	mov	x0, #-1
	cmp	x10, x9
	b.hs	LBB0_20
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	mov	x11, x8
	mov	x8, x10
	ldr	x0, [x10]
	ldr	x10, [x11, #48]
	cbz	x10, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x11, [x11, #40]
	cmp	x0, x11
	b.hi	LBB0_22
LBB0_25:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x10]
	tst	w12, w19
	b.ne	LBB0_20
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	add	x0, x0, #1
	add	x10, x10, #4
	cmp	x0, x11
	b.ls	LBB0_25
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__CACHED_RUNES,8,3              ; @_CACHED_RUNES
.subsections_via_symbols
