	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_wchar2single_with_len
_pg_wchar2single_with_len:              ## @pg_wchar2single_with_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%dl, (%rsi,%rcx)
	incq	%rcx
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.5:
	addq	%rcx, %rsi
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	addq	%rcx, %rsi
	movl	%ecx, %eax
LBB0_7:
	movb	$0, (%rsi)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pg_wchar2single_with_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_wchar2single_with_len
_pg_wchar2single_with_len:              ; @pg_wchar2single_with_len
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	mov	w0, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x9, lsl #3]
	cbz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w10, [x1, x9]
	add	x9, x9, #1
	cmp	w0, w9
	b.ne	LBB0_2
; %bb.4:
	add	x1, x1, x9
	strb	wzr, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_5:
	mov	w0, #0
	strb	wzr, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	add	x1, x1, x9
	mov	x0, x9
	strb	wzr, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pg_wchar2single_with_len
.subsections_via_symbols
