	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun2amd_convert
_sun2amd_convert:                       ## @sun2amd_convert
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_INFO_MAX_LINE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdx
	callq	_file_read_line
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movq	%r14, %rcx
	incq	%rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_file_read_line
	testl	%eax, %eax
	je	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	cltq
	movb	$0, -1(%rax,%r14)
	movq	%r14, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%rax)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movb	(%r14), %al
	testb	%al, %al
	je	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	incq	%r15
	testb	%al, %al
	jne	LBB0_6
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_21
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	(%r15), %eax
	incq	%r15
	testb	%al, %al
	jne	LBB0_9
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, -1(%r15)
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, -1(%r15)
	cmpb	$0, (%r15)
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sun_entry2amd
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_fprintf
	testq	%rax, %rax
	js	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	jmp	LBB0_21
LBB0_12:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_13:
	movl	%r13d, %edx
LBB0_14:
	callq	_plog
	movl	$1, %r15d
	jmp	LBB0_23
LBB0_22:
	xorl	%r15d, %r15d
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_19:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	jmp	LBB0_14
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_INFO_MAX_LINE_LEN,4,2          ## @INFO_MAX_LINE_LEN
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map line %d has no entry"

L_.str.1:                               ## @.str.1
	.asciz	"parse error on line %d"

L_.str.2:                               ## @.str.2
	.asciz	"%s %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"can't write to output stream: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_sun2amd_convert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun2amd_convert
_sun2amd_convert:                       ; @sun2amd_convert
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _INFO_MAX_LINE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INFO_MAX_LINE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_file_read_line
	cbz	w0, LBB0_20
; %bb.1:
	mov	w22, #0
	add	x27, x23, #1
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_file_read_line
	cbz	w0, LBB0_20
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	add	x8, x23, w0, sxtw
	sturb	wzr, [x8, #-1]
	mov	x0, x23
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x0]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, #1
	ldrb	w8, [x23]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x27
	mov	x25, x23
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w8, [x25, #1]!
	add	x26, x26, #1
	cbnz	w8, LBB0_7
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x25]
	cbz	w8, LBB0_2
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isspace
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrb	w8, [x26], #1
	cbnz	w8, LBB0_10
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldurb	w8, [x26, #-1]
	cbz	w8, LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	sturb	wzr, [x26, #-1]
	ldrb	w8, [x26]
	cbz	w8, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x26
	bl	_sun_entry2amd
	cbz	x0, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	bl	_fprintf
	tbnz	x0, #63, LBB0_23
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_2
LBB0_17:
Lloh10:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_18:
	mov	x2, x22
LBB0_19:
	bl	_plog
	mov	w0, #1
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh18:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_23:
Lloh23:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	b	LBB0_19
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_INFO_MAX_LINE_LEN,4,2          ; @INFO_MAX_LINE_LEN
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map line %d has no entry"

l_.str.1:                               ; @.str.1
	.asciz	"parse error on line %d"

l_.str.2:                               ; @.str.2
	.asciz	"%s %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"can't write to output stream: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_sun2amd_convert
.subsections_via_symbols
