	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_cp_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	$0, 24(%rbx)
	je	LBB0_13
## %bb.1:
	leaq	L_.str.2(%rip), %r14
	leaq	-56(%rbp), %r13
	movq	_WC_ERR_INVALID_CHARS@GOTPCREL(%rip), %r15
	movq	_MB_ERR_INVALID_CHARS@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rbx)
	leaq	32(%rbx), %rbx
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_IsValidCodePage
	movl	(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_GetCPInfoEx
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	cmpl	$65001, %eax                    ## imm = 0xFDE9
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	movl	$0, %ecx
	cmpl	$54936, %eax                    ## imm = 0xD698
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	movl	(%r12), %edx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %r11
	cmpb	$0, (%r11)
	movq	16(%rbx), %r9
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %r8d
	movq	-48(%rbp), %r10
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r11
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_printf
	addq	$16, %rsp
	jmp	LBB0_12
LBB0_13:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"static const struct php_win32_cp php_win32_cp_map[] = {"

	.comm	_cp_map,8,3                     ## @cp_map
L_.str.2:                               ## @.str.2
	.asciz	"\t/* %u is invalid */\n"

	.comm	_WC_ERR_INVALID_CHARS,4,2       ## @WC_ERR_INVALID_CHARS
	.comm	_MB_ERR_INVALID_CHARS,4,2       ## @MB_ERR_INVALID_CHARS
L_.str.3:                               ## @.str.3
	.asciz	"\t{ %u, %u, %u, %u, \"%s\", NULL, \"%s\" },\n"

L_.str.4:                               ## @.str.4
	.asciz	"\t{ %u, %u, %u, %u, \"%s\", \"%s\", \"%s\" },\n"

L_str:                                  ## @str
	.asciz	"/* Autogenerated file. Update cp_enc_map_gen.c and regen like \n cp_enc_map_gen.exe > cp_enc_map.c \n*/\n"

L_str.6:                                ## @str.6
	.asciz	"};\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh4:
	adrp	x8, _cp_map@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cp_map@GOTPAGEOFF]
Lloh6:
	ldr	x22, [x8]
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_13
; %bb.1:
Lloh7:
	adrp	x19, l_.str.2@PAGE
Lloh8:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	w23, #65001
	mov	w24, #54936
Lloh9:
	adrp	x25, _WC_ERR_INVALID_CHARS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _WC_ERR_INVALID_CHARS@GOTPAGEOFF]
Lloh11:
	adrp	x26, _MB_ERR_INVALID_CHARS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MB_ERR_INVALID_CHARS@GOTPAGEOFF]
Lloh13:
	adrp	x20, l_.str.3@PAGE
Lloh14:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh15:
	adrp	x21, l_.str.4@PAGE
Lloh16:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [sp]
	mov	x0, x19
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_printf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #56]
	add	x22, x22, #32
	cbz	x8, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_IsValidCodePage
	mov	x8, x0
	ldr	w0, [x22]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #64
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #0
	bl	_GetCPInfoEx
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
	cmp	w8, w23
	ccmp	w8, w24, #4, ne
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	ldr	w8, [x26]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	mov	w9, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x13, x12, [x22, #8]
	ldrb	w15, [x13]
	ldp	w10, w11, [sp, #64]
	ldr	x14, [sp, #72]
	cbz	w15, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	stp	x13, x14, [sp, #40]
                                        ; kill: def $w11 killed $w11 killed $x11 def $x11
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x11, x12, [sp, #24]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
	mov	x0, x21
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x12, x14, [sp, #32]
	stp	x9, x11, [sp, #16]
	stp	x10, x8, [sp]
	mov	x0, x20
	b	LBB0_3
LBB0_13:
Lloh17:
	adrp	x0, l_str.6@PAGE
Lloh18:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"static const struct php_win32_cp php_win32_cp_map[] = {"

	.comm	_cp_map,8,3                     ; @cp_map
l_.str.2:                               ; @.str.2
	.asciz	"\t/* %u is invalid */\n"

	.comm	_WC_ERR_INVALID_CHARS,4,2       ; @WC_ERR_INVALID_CHARS
	.comm	_MB_ERR_INVALID_CHARS,4,2       ; @MB_ERR_INVALID_CHARS
l_.str.3:                               ; @.str.3
	.asciz	"\t{ %u, %u, %u, %u, \"%s\", NULL, \"%s\" },\n"

l_.str.4:                               ; @.str.4
	.asciz	"\t{ %u, %u, %u, %u, \"%s\", \"%s\", \"%s\" },\n"

l_str:                                  ; @str
	.asciz	"/* Autogenerated file. Update cp_enc_map_gen.c and regen like \n cp_enc_map_gen.exe > cp_enc_map.c \n*/\n"

l_str.6:                                ; @str.6
	.asciz	"};\n"

.subsections_via_symbols
