	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_conv
_do_conv:                               ## @do_conv
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movl	$0, -44(%rbp)
	xorl	%edi, %edi
	movq	_lflag@GOTPCREL(%rip), %r12
	movl	$65536, %r13d                   ## imm = 0x10000
	movq	_errno@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_format
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	-48(%rbp), %edi
	callq	_format
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	incl	%edi
	movl	%edi, -44(%rbp)
	cmpq	$0, (%r12)
	movl	$1048576, %eax                  ## imm = 0x100000
	cmovel	%r13d, %eax
	cmpl	%eax, %edi
	jge	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$55296, %edi                    ## imm = 0xD800
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$57089, %edi                    ## imm = 0xDF01
	jl	LBB0_11
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %eax
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_magnitude
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cltq
	movq	%rax, -80(%rbp)
	movq	$4, -72(%rbp)
	movl	$0, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	leaq	-44(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_iconv
	movq	_fb_flags@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	$0, (%r15)
	movl	%r14d, %edi
	leaq	-64(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-72(%rbp), %r8
	callq	_iconv
	cmpq	$-1, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_dflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_format
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	(%r15), %rdi
	callq	_format_diag
	jmp	LBB0_10
LBB0_12:
	movq	_cflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lflag,8,3                      ## @lflag
	.comm	_fb_flags,8,3                   ## @fb_flags
	.comm	_errno,8,3                      ## @errno
	.comm	_dflag,8,3                      ## @dflag
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" = "

	.comm	_cflag,8,3                      ## @cflag
L_str:                                  ## @str
	.asciz	"END_MAP"

	.no_dead_strip	_do_conv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_conv
_do_conv:                               ; @do_conv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w0, #0
	str	wzr, [sp, #24]
	mov	w22, #55296
	mov	w23, #57089
Lloh0:
	adrp	x24, _lflag@GOTPAGE
Lloh1:
	ldr	x24, [x24, _lflag@GOTPAGEOFF]
	mov	w25, #1048576
	mov	w26, #65536
	add	x21, sp, #24
Lloh2:
	adrp	x27, _fb_flags@GOTPAGE
Lloh3:
	ldr	x27, [x27, _fb_flags@GOTPAGEOFF]
Lloh4:
	adrp	x28, _errno@GOTPAGE
Lloh5:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #24]
	bl	_format
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w0, [sp, #28]
	bl	_format
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	add	w0, w8, #1
	str	w0, [sp, #24]
	ldr	x8, [x24]
	cmp	x8, #0
	csel	w8, w26, w25, eq
	cmp	w0, w8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, w22
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, w23
	b.lt	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	w19, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #4
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_magnitude
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x9, w0
	mov	w8, #4
	stp	x8, x9, [sp, #32]
	str	wzr, [sp, #28]
	add	x8, sp, #28
	stp	x8, x21, [sp, #8]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_iconv
	str	xzr, [x27]
	str	xzr, [x28]
	add	x1, sp, #16
	add	x2, sp, #40
	add	x3, sp, #8
	add	x4, sp, #32
	mov	x0, x20
	bl	_iconv
	cmn	x0, #1
	b.ne	LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x8, _dflag@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dflag@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #24]
	bl	_format
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x0, [x28]
	bl	_format_diag
	b	LBB0_2
LBB0_13:
Lloh13:
	adrp	x8, _cflag@GOTPAGE
Lloh14:
	ldr	x8, [x8, _cflag@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_15:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_lflag,8,3                      ; @lflag
	.comm	_fb_flags,8,3                   ; @fb_flags
	.comm	_errno,8,3                      ; @errno
	.comm	_dflag,8,3                      ; @dflag
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" = "

	.comm	_cflag,8,3                      ; @cflag
l_str:                                  ; @str
	.asciz	"END_MAP"

	.no_dead_strip	_do_conv
.subsections_via_symbols
