	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_wchar2euc_with_len
_pg_wchar2euc_with_len:                 ## @pg_wchar2euc_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:
	incl	%edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %r11d
	testl	%r11d, %r11d
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %ecx
	shrl	$24, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%cl, (%rsi)
	movzbl	2(%rdi), %ecx
	movb	%cl, 1(%rsi)
	movzbl	1(%rdi), %ecx
	leaq	3(%rsi), %r9
	movb	%cl, 2(%rsi)
	movl	$4, %r8d
	movl	$4, %r10d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %r8d
	shrl	$16, %r8d
	testb	%r8b, %r8b
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%r8b, (%rsi)
	movzbl	1(%rdi), %ecx
	leaq	2(%rsi), %r9
	movb	%cl, 1(%rsi)
	movl	$3, %r8d
	movl	$3, %r10d
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %r8d
	shrl	$8, %r8d
	testb	%r8b, %r8b
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rsi), %r9
	movb	%r8b, (%rsi)
	movl	$2, %r8d
	movl	$2, %r10d
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdi), %r11d
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%r10, %rsi
	movb	%r11b, (%r9)
	addl	%r8d, %eax
	addq	$4, %rdi
	decl	%edx
	cmpl	$1, %edx
	jg	LBB0_3
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r8d
	movl	$1, %r10d
	movq	%rsi, %r9
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	movb	$0, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pg_wchar2euc_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_wchar2euc_with_len
_pg_wchar2euc_with_len:                 ; @pg_wchar2euc_with_len
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	add	w9, w2, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8]
	cbz	w12, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w10, w12, #24
	cbz	w10, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w10, [x1]
	ldrh	w10, [x8, #2]
	strb	w10, [x1, #1]
	ldr	w10, [x8]
	lsr	w11, w10, #8
	add	x10, x1, #3
	strb	w11, [x1, #2]
	mov	w11, #4
	mov	w13, #4
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ubfx	w10, w12, #16, #8
	cbz	w10, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w10, w12, #16
	strb	w10, [x1]
	ldr	w10, [x8]
	lsr	w11, w10, #8
	add	x10, x1, #2
	strb	w11, [x1, #1]
	mov	w11, #3
	mov	w13, #3
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ubfx	w10, w12, #8, #8
	cbz	w10, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	lsr	w11, w12, #8
	mov	x10, x1
	strb	w11, [x10], #1
	mov	w11, #2
	mov	w13, #2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x8]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x1, x11
	strb	w12, [x10]
	add	w0, w0, w13
	add	x8, x8, #4
	sub	w9, w9, #1
	cmp	w9, #1
	b.gt	LBB0_2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w11, #1
	mov	x10, x1
	mov	w13, #1
	b	LBB0_10
LBB0_12:
	strb	wzr, [x1]
	ret
LBB0_13:
	mov	w0, #0
	strb	wzr, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pg_wchar2euc_with_len
.subsections_via_symbols
