	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_codepage
_probe_codepage:                        ## @probe_codepage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %eax
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_4
LBB0_8:
	movl	(%r15), %edi
	movq	_CP_UTF16@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_10
## %bb.9:
	movl	$1, (%rbx)
	jmp	LBB0_15
LBB0_1:
	movl	(%r15), %eax
	movq	_CP_UTF16@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_2
## %bb.16:
	movl	$1, (%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	%ecx, (%rbx)
	movl	%ecx, %eax
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movl	(%r15), %ecx
	movq	_CP_UTF16@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	_program_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %eax
LBB0_7:
	movl	%eax, (%r15)
LBB0_15:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%edi, %edi
	jne	LBB0_12
## %bb.11:
	movl	$1252, (%r15)                   ## imm = 0x4E4
	movl	$1252, %edi                     ## imm = 0x4E4
LBB0_12:
	callq	_unicode_is_valid_codepage
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_fatal
LBB0_14:
	movl	$0, (%rbx)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_UTF16,4,2                   ## @CP_UTF16
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: warning: "

	.comm	_program_name,8,3               ## @program_name
L_.str.1:                               ## @.str.1
	.asciz	"A codepage was specified switch ,%s' and UTF16.\n"

L_.str.2:                               ## @.str.2
	.asciz	"\tcodepage settings are ignored.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Code page 0x%x is unknown."

	.no_dead_strip	_probe_codepage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_codepage
_probe_codepage:                        ; @probe_codepage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x1]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_7
LBB0_2:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _CP_UTF16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_UTF16@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _CP_UTF16@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CP_UTF16@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_7
LBB0_6:
	str	w3, [x21]
	mov	x8, x3
	cbz	w8, LBB0_2
LBB0_7:
	ldr	w9, [x19]
Lloh6:
	adrp	x22, _CP_UTF16@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CP_UTF16@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w9, #0
	ccmp	w9, w8, #4, ne
	b.eq	LBB0_9
; %bb.8:
Lloh8:
	adrp	x23, _stderr@GOTPAGE
Lloh9:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
Lloh12:
	adrp	x8, _program_name@GOTPAGE
Lloh13:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x21
	bl	_fprintf
	ldr	w21, [x23]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	str	x20, [sp]
	mov	x0, x21
	bl	_fprintf
	ldr	w20, [x23]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_fprintf
	ldr	w8, [x22]
LBB0_9:
	str	w8, [x19]
LBB0_10:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	cbz	w0, LBB0_14
; %bb.12:
	bl	_unicode_is_valid_codepage
	cbz	w0, LBB0_15
LBB0_13:
	str	wzr, [x21]
	b	LBB0_10
LBB0_14:
	mov	w0, #1252
	str	w0, [x19]
	bl	_unicode_is_valid_codepage
	cbnz	w0, LBB0_13
LBB0_15:
	ldr	w1, [x19]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_fatal
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_UTF16,4,2                   ; @CP_UTF16
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: warning: "

	.comm	_program_name,8,3               ; @program_name
l_.str.1:                               ; @.str.1
	.asciz	"A codepage was specified switch ,%s' and UTF16.\n"

l_.str.2:                               ; @.str.2
	.asciz	"\tcodepage settings are ignored.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Code page 0x%x is unknown."

	.no_dead_strip	_probe_codepage
.subsections_via_symbols
