	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_diag
_format_diag:                           ## @format_diag
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %edi
	cmpl	$2, %edi
	ja	LBB0_1
## %bb.2:
	movslq	%edi, %rax
	leaq	l_reltable.format_diag(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movq	_fb_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UC_TO_MB_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.5(%rip), %r10
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%r10, %rdx
	movq	_MB_TO_WC_FLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leaq	L_.str.6(%rip), %rcx
	cmoveq	%r10, %rcx
	movq	_MB_TO_UC_FLAG@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%eax, %edi
	leaq	L_.str.7(%rip), %r8
	cmoveq	%r10, %r8
	movq	_WC_TO_MB_FLAG@GOTPCREL(%rip), %rdi
	andl	(%rdi), %eax
	leaq	L_.str.8(%rip), %r9
	cmoveq	%r10, %r9
	leaq	L_.str.9(%rip), %rdi
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EINVAL "

L_.str.1:                               ## @.str.1
	.asciz	"EILSEQ "

L_.str.2:                               ## @.str.2
	.asciz	"E2BIG "

L_.str.3:                               ## @.str.3
	.asciz	"UNKNOWN "

	.comm	_fb_flags,4,2                   ## @fb_flags
	.comm	_UC_TO_MB_FLAG,4,2              ## @UC_TO_MB_FLAG
L_.str.4:                               ## @.str.4
	.asciz	"U2M "

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_MB_TO_WC_FLAG,4,2              ## @MB_TO_WC_FLAG
L_.str.6:                               ## @.str.6
	.asciz	"M2W "

	.comm	_MB_TO_UC_FLAG,4,2              ## @MB_TO_UC_FLAG
L_.str.7:                               ## @.str.7
	.asciz	"M2U "

	.comm	_WC_TO_MB_FLAG,4,2              ## @WC_TO_MB_FLAG
L_.str.8:                               ## @.str.8
	.asciz	"W2M "

L_.str.9:                               ## @.str.9
	.asciz	"%s%s%s%s%s"

	.no_dead_strip	_format_diag
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.format_diag
l_reltable.format_diag:
	.long	L_.str-l_reltable.format_diag
	.long	L_.str.1-l_reltable.format_diag
	.long	L_.str.2-l_reltable.format_diag

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_diag
_format_diag:                           ; @format_diag
	.cfi_startproc
; %bb.0:
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.format_diag@PAGE
Lloh1:
	add	x9, x9, l_switch.table.format_diag@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_3:
Lloh4:
	adrp	x8, _fb_flags@GOTPAGE
Lloh5:
	ldr	x8, [x8, _fb_flags@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _UC_TO_MB_FLAG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _UC_TO_MB_FLAG@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, l_.str.4@PAGE
Lloh11:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh12:
	adrp	x11, l_.str.5@PAGE
Lloh13:
	add	x11, x11, l_.str.5@PAGEOFF
	tst	w9, w8
	csel	x2, x11, x10, eq
Lloh14:
	adrp	x9, _MB_TO_WC_FLAG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MB_TO_WC_FLAG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, l_.str.6@PAGE
Lloh18:
	add	x10, x10, l_.str.6@PAGEOFF
	tst	w9, w8
	csel	x3, x11, x10, eq
Lloh19:
	adrp	x9, _MB_TO_UC_FLAG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MB_TO_UC_FLAG@GOTPAGEOFF]
Lloh21:
	adrp	x10, l_.str.7@PAGE
Lloh22:
	add	x10, x10, l_.str.7@PAGEOFF
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x4, x11, x10, eq
Lloh24:
	adrp	x9, _WC_TO_MB_FLAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WC_TO_MB_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, l_.str.8@PAGE
Lloh28:
	add	x10, x10, l_.str.8@PAGEOFF
	tst	w9, w8
	csel	x5, x11, x10, eq
Lloh29:
	adrp	x0, l_.str.9@PAGE
Lloh30:
	add	x0, x0, l_.str.9@PAGEOFF
	b	_printf
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EINVAL "

l_.str.1:                               ; @.str.1
	.asciz	"EILSEQ "

l_.str.2:                               ; @.str.2
	.asciz	"E2BIG "

l_.str.3:                               ; @.str.3
	.asciz	"UNKNOWN "

	.comm	_fb_flags,4,2                   ; @fb_flags
	.comm	_UC_TO_MB_FLAG,4,2              ; @UC_TO_MB_FLAG
l_.str.4:                               ; @.str.4
	.asciz	"U2M "

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_MB_TO_WC_FLAG,4,2              ; @MB_TO_WC_FLAG
l_.str.6:                               ; @.str.6
	.asciz	"M2W "

	.comm	_MB_TO_UC_FLAG,4,2              ; @MB_TO_UC_FLAG
l_.str.7:                               ; @.str.7
	.asciz	"M2U "

	.comm	_WC_TO_MB_FLAG,4,2              ; @WC_TO_MB_FLAG
l_.str.8:                               ; @.str.8
	.asciz	"W2M "

l_.str.9:                               ; @.str.9
	.asciz	"%s%s%s%s%s"

	.no_dead_strip	_format_diag
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.format_diag
l_switch.table.format_diag:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

.subsections_via_symbols
