	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_mapfile
_process_mapfile:                       ## @process_mapfile
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -88(%rbp)
	movq	_prog@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_pr_info
	movl	$16384, %edi                    ## imm = 0x4000
	callq	_malloc
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_mapping_table_prefix
	movq	%r13, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%r13, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r15
	movl	$2, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r14d
	movq	%r13, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_fgets
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %eax
	cmpb	$10, %al
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$35, %al
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	cmpb	$10, -1(%rax,%r13)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r13)
	movq	%r15, %rdi
	leaq	L_.str.4(%rip), %r15
	movq	%r15, %rsi
	leaq	-88(%rbp), %r12
	movq	%r12, %rdx
	callq	_strtok_r
	movq	%rax, %rdi
	callq	_fixregex
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strtok_r
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strtok_r
	movq	%rax, %rbx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_strtok_r
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_file_name_to_table_name
	movq	%rax, %r15
	movl	$2, %esi
	movl	$1, %edx
	leaq	L_.str.5(%rip), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$3, %esi
	movl	$1, %edx
	leaq	L_.str.10(%rip), %rdi
	movq	%rbx, %rcx
	callq	_fwrite
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_print_mapping_table_suffix
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_2:
	movl	(%r14), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movslq	%eax, %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pr_info
LBB0_13:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_pr_info
	movl	$-1, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Processing mapfile %s\n"

	.comm	_prog,4,2                       ## @prog
L_.str.1:                               ## @.str.1
	.asciz	"r"

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

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"%s: Mapfile %s: line %d too long, aborting\n"

L_.str.4:                               ## @.str.4
	.asciz	","

L_.str.5:                               ## @.str.5
	.asciz	"{\n"

L_.str.6:                               ## @.str.6
	.asciz	"\t.cpuid = \"%s\",\n"

L_.str.7:                               ## @.str.7
	.asciz	"\t.version = \"%s\",\n"

L_.str.8:                               ## @.str.8
	.asciz	"\t.type = \"%s\",\n"

L_.str.9:                               ## @.str.9
	.asciz	"\t.table = %s\n"

L_.str.10:                              ## @.str.10
	.asciz	"},\n"

	.no_dead_strip	_process_mapfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_mapfile
_process_mapfile:                       ; @process_mapfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x23, _prog@GOTPAGE
Lloh1:
	ldr	x23, [x23, _prog@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_pr_info
	mov	w0, #16384
	bl	_malloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.2:
	mov	x22, x0
	mov	x0, x20
	bl	_print_mapping_table_prefix
	mov	x0, x21
	mov	w1, #16384
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.3:
	mov	x0, x21
	mov	w1, #16384
	mov	x2, x22
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.4:
	mov	x25, x0
	mov	w24, #2
Lloh6:
	adrp	x23, l_.str.4@PAGE
Lloh7:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	mov	x0, x21
	mov	w1, #16384
	mov	x2, x22
	bl	_fgets
	mov	x25, x0
	cbz	x0, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #35
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-1]
	add	x2, sp, #8
	mov	x0, x25
	mov	x1, x23
	bl	_strtok_r
	bl	_fixregex
	mov	x25, x0
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x23
	bl	_strtok_r
	mov	x26, x0
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x23
	bl	_strtok_r
	mov	x27, x0
	add	x2, sp, #8
	mov	x0, #0
	mov	x1, x23
	bl	_strtok_r
	mov	x28, x0
	mov	x0, x27
	bl	_file_name_to_table_name
	mov	x27, x0
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #2
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	str	x25, [sp]
	mov	x0, x20
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	str	x26, [sp]
	mov	x0, x20
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
	str	x28, [sp]
	mov	x0, x20
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	str	x27, [sp]
	mov	x0, x20
Lloh16:
	adrp	x1, l_.str.9@PAGE
Lloh17:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
Lloh18:
	adrp	x0, l_.str.10@PAGE
Lloh19:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	w1, #3
	mov	w2, #1
	mov	x3, x20
	bl	_fwrite
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	bl	_print_mapping_table_suffix
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	ldr	w20, [x23]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	str	x19, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
LBB0_12:
	bl	_pr_info
LBB0_13:
	mov	w0, #-1
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh25:
	adrp	x8, _prog@GOTPAGE
Lloh26:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	str	x24, [sp]
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x19
	b	LBB0_12
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Processing mapfile %s\n"

	.comm	_prog,4,2                       ; @prog
l_.str.1:                               ; @.str.1
	.asciz	"r"

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

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"%s: Mapfile %s: line %d too long, aborting\n"

l_.str.4:                               ; @.str.4
	.asciz	","

l_.str.5:                               ; @.str.5
	.asciz	"{\n"

l_.str.6:                               ; @.str.6
	.asciz	"\t.cpuid = \"%s\",\n"

l_.str.7:                               ; @.str.7
	.asciz	"\t.version = \"%s\",\n"

l_.str.8:                               ; @.str.8
	.asciz	"\t.type = \"%s\",\n"

l_.str.9:                               ; @.str.9
	.asciz	"\t.table = %s\n"

l_.str.10:                              ; @.str.10
	.asciz	"},\n"

	.no_dead_strip	_process_mapfile
.subsections_via_symbols
