	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_LC_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_LC_CTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UTF8_LOCALE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_setlocale
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	$32, %edi
	callq	_wcwidth
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dup2
	movl	$42, %edi
	callq	_putwchar
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$42, %rcx
	je	LBB0_10
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_fputs
	jmp	LBB0_9
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_9
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LC_ALL,4,2                     ## @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"setlocale(LC_ALL, \"\") failed\n"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_LC_CTYPE,4,2                   ## @LC_CTYPE
	.comm	_UTF8_LOCALE,8,3                ## @UTF8_LOCALE
L_.str.2:                               ## @.str.2
	.asciz	"setlocale(LC_CTYPE, \"%s\") failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"wcwidth(L' ') returned %d\n"

	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.4:                               ## @.str.4
	.asciz	"bad putwchar return value\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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _LC_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LC_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_setlocale
	cbz	x0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x8, _LC_CTYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LC_CTYPE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x19, _UTF8_LOCALE@GOTPAGE
Lloh9:
	ldr	x19, [x19, _UTF8_LOCALE@GOTPAGEOFF]
	ldr	x1, [x19]
	bl	_setlocale
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #32
	bl	_wcwidth
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_dup2
	mov	w0, #42
	bl	_putwchar
	cmp	x0, #42
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_10
LBB0_7:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_fprintf
	b	LBB0_10
LBB0_8:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_9:
	bl	_fputs
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_LC_ALL,4,2                     ; @LC_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"setlocale(LC_ALL, \"\") failed\n"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_LC_CTYPE,4,2                   ; @LC_CTYPE
	.comm	_UTF8_LOCALE,8,3                ; @UTF8_LOCALE
l_.str.2:                               ; @.str.2
	.asciz	"setlocale(LC_CTYPE, \"%s\") failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"wcwidth(L' ') returned %d\n"

	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.4:                               ; @.str.4
	.asciz	"bad putwchar return value\n"

.subsections_via_symbols
