	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -48(%rbp)
	movq	$6, -16(%rbp)
	movq	$6, -24(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_iconv_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_2:
	movl	$6, %edi
	callq	_malloc
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_4:
	leaq	-48(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-16(%rbp), %r8
	movl	%ebx, %edi
	callq	_iconv
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_6:
	movq	$6, -16(%rbp)
	movq	$6, -24(%rbp)
	movl	$6, %edi
	callq	_malloc
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_8:
	leaq	-56(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-16(%rbp), %r8
	movl	%ebx, %edi
	callq	_iconv
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_err
LBB0_10:
	movq	_EXIT_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FOOBAR"

L_.str.1:                               ## @.str.1
	.asciz	"UTF-8"

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

	.comm	_EXIT_SUCCESS,4,2               ## @EXIT_SUCCESS
.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, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x8, [sp, #16]
	mov	w8, #6
	str	x8, [sp, #32]
	stur	x8, [x29, #-24]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_iconv_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_2:
	mov	w0, #6
	bl	_malloc
	str	x0, [sp]
	cbnz	x0, LBB0_4
; %bb.3:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_4:
	add	x1, sp, #16
	sub	x2, x29, #24
	mov	x3, sp
	add	x4, sp, #32
	mov	x0, x19
	bl	_iconv
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_6:
	mov	w8, #6
	str	x8, [sp, #32]
	stur	x8, [x29, #-24]
	mov	w0, #6
	bl	_malloc
	str	x0, [sp, #8]
	cbnz	x0, LBB0_8
; %bb.7:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_8:
	add	x1, sp, #24
	sub	x2, x29, #24
	add	x3, sp, #8
	add	x4, sp, #32
	mov	x0, x19
	bl	_iconv
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #1
	mov	x1, #0
	bl	_err
LBB0_10:
Lloh6:
	adrp	x8, _EXIT_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXIT_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FOOBAR"

l_.str.1:                               ; @.str.1
	.asciz	"UTF-8"

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

	.comm	_EXIT_SUCCESS,4,2               ; @EXIT_SUCCESS
.subsections_via_symbols
