	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_wcssize                     ## -- Begin function pg_wcssize
	.p2align	4, 0x90
_pg_wcssize:                            ## @pg_wcssize
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	xorl	%edx, %edx
	cmpb	$0, (%rdi)
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %r12d
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.3:
	movq	%rdi, %r13
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_PQmblen
	movl	%ebx, %esi
	movslq	%eax, %rbx
	subq	%rbx, %r14
	jb	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_PQdsplen
	cmpl	$1, %r15d
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r13), %ecx
	cmpb	$13, %cl
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %cl
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$9, %cl
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, %eax
	orl	$-8, %eax
	subl	%eax, %edx
	subl	%eax, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	js	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %edx
	addl	%r15d, %r12d
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$6, %edx
	addl	$6, %r12d
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %edx
	addl	$2, %r12d
	jmp	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %edx
	cmovgl	%edx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	incl	%r12d
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %edx
	incl	%r12d
	jmp	LBB0_19
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	$4, %edx
	addl	$4, %r12d
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$0, (%r13,%rbx)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %r13
	testq	%r14, %r14
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_4
	jmp	LBB0_21
LBB0_1:
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_5:
	movl	-52(%rbp), %edx                 ## 4-byte Reload
LBB0_21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %edx
	cmovgl	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_23:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_25
## %bb.24:
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
LBB0_25:
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	incl	%r12d
	movl	%r12d, (%rax)
LBB0_27:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_wcssize                     ; -- Begin function pg_wcssize
	.p2align	2
_pg_wcssize:                            ; @pg_wcssize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x21, x3
	ldrb	w8, [x0]
	cmp	w8, #0
	ccmp	x1, #0, #4, ne
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	b.ne	LBB0_9
; %bb.1:
	mov	w28, #0
	mov	w27, #0
	mov	w25, #0
	mov	w26, #1
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	cmp	w28, w27
	csel	w8, w28, w27, gt
	str	w8, [x21]
LBB0_4:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x20, LBB0_6
; %bb.5:
	str	w26, [x20]
LBB0_6:
	cbz	x9, LBB0_8
; %bb.7:
	add	w8, w25, #1
	str	w8, [x9]
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w25, #0
	mov	w27, #0
	mov	w28, #0
	mov	w26, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w8, w0, w28
	add	w9, w19, w25
	add	w10, w28, #6
	add	w11, w25, #6
	tst	w0, #0x80000000
	csel	w28, w8, w10, eq
	csel	w25, w9, w11, eq
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, x19
	ldrb	w8, [x24]
	cmp	w8, #0
	ccmp	x23, #0, #4, ne
	b.eq	LBB0_2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_PQmblen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	subs	x23, x23, x19
	b.lo	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_PQdsplen
	cmp	w19, #1
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x24]
	cmp	w8, #13
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w28, w27
	csel	w9, w28, w27, gt
	add	w10, w0, w28
	add	w11, w28, #4
	add	w12, w25, #4
	tst	w0, #0x80000000
	csel	w10, w10, w11, eq
	csinc	w11, w12, w25, ne
	orr	w12, w28, #0xfffffff8
	sub	w13, w28, w12
	sub	w12, w25, w12
	cmp	w8, #9
	csel	w10, w10, w13, ne
	csel	w11, w11, w12, ne
	cmp	w8, #10
	csel	w28, wzr, w10, eq
	csel	w27, w9, w27, eq
	cinc	w26, w26, eq
	csinc	w25, w11, w25, ne
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w28, w28, #2
	add	w25, w25, #2
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
