	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_map                       ## -- Begin function load_map
	.p2align	4, 0x90
_load_map:                              ## @load_map
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_map_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movl	%eax, %r14d
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	_map_fsize@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, %edi
	callq	_assert
	movq	_MAX_MAP_USERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	xorl	%edi, %edi
	cmpq	%rax, (%rbx)
	setge	%dil
	callq	_assert
	movq	(%rbx), %rdi
	callq	_malloc
	movq	_Map@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	movl	%eax, %edi
	callq	_assert
	movq	(%r15), %rax
	movq	_UMap@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_lseek
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rax
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	subq	%r12, %rbx
	cmpq	$1073741824, %rbx               ## imm = 0x40000000
	movl	$1073741824, %ecx               ## imm = 0x40000000
	cmovgeq	%rcx, %rbx
	movq	(%r15), %rsi
	addq	%r12, %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	movq	%rax, %r13
	callq	_read
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	sete	%dil
	callq	_assert
	movslq	%ebx, %rax
	addq	%rax, %r12
	movq	%r13, %rax
	movq	(%r13), %rbx
	cmpq	%r12, %rbx
	jg	LBB0_3
LBB0_4:
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_close
	movq	_UMap@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_MAX_MAP_USERS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	shll	$2, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, (%rax)
	sete	%dil
	callq	_assert
	movl	(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	-4(%rax,%rbx,4), %ecx
	xorl	%edi, %edi
	cmpl	(%rax,%rbx,4), %ecx
	setle	%dil
	callq	_assert
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	(%r12), %rcx
	cltq
	movslq	-4(%rcx,%rax,4), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r15)
	setge	%dil
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_map_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%r15), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_map_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_map_filename,8,3               ## @map_filename
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot open user names file %s: %m\n"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_map_fsize,8,3                  ## @map_fsize
	.comm	_MAX_MAP_USERS,4,2              ## @MAX_MAP_USERS
	.comm	_Map,8,3                        ## @Map
	.comm	_UMap,8,3                       ## @UMap
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.1:                               ## @.str.1
	.asciz	"successfully loaded user names file %s, size %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_map                       ; -- Begin function load_map
	.p2align	2
_load_map:                              ; @load_map
	.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
Lloh0:
	adrp	x21, _map_filename@GOTPAGE
Lloh1:
	ldr	x21, [x21, _map_filename@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
Lloh8:
	adrp	x22, _map_fsize@GOTPAGE
Lloh9:
	ldr	x22, [x22, _map_fsize@GOTPAGEOFF]
	str	x0, [x22]
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	bl	_assert
	ldr	x8, [x22]
Lloh10:
	adrp	x23, _MAX_MAP_USERS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MAX_MAP_USERS@GOTPAGEOFF]
	ldrsw	x9, [x23]
	cmp	x8, x9, lsl #2
	cset	w0, ge
	bl	_assert
	ldr	x0, [x22]
	bl	_malloc
Lloh12:
	adrp	x25, _Map@GOTPAGE
Lloh13:
	ldr	x25, [x25, _Map@GOTPAGEOFF]
	str	x0, [x25]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_assert
	ldr	x8, [x25]
Lloh14:
	adrp	x24, _UMap@GOTPAGE
Lloh15:
	ldr	x24, [x24, _UMap@GOTPAGEOFF]
	str	x8, [x24]
Lloh16:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_lseek
	cmp	x0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x26, #0
	mov	w27, #1073741824
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x8, x26
	cmp	x8, x27
	csel	x20, x8, x27, lt
	ldr	x8, [x25]
	add	x1, x8, x26
	mov	x0, x19
	mov	x2, x20
	bl	_read
	cmp	w0, w20
	cset	w0, eq
	bl	_assert
	add	x26, x26, w20, sxtw
	ldr	x8, [x22]
	cmp	x8, x26
	b.gt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_close
	ldr	x8, [x24]
	ldr	w8, [x8]
	ldr	w9, [x23]
	cmp	w8, w9, lsl #2
	cset	w0, eq
	bl	_assert
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x19, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x19, lsl #2
	ldp	w9, w8, [x8]
	cmp	w9, w8
	cset	w0, le
	bl	_assert
	ldrsw	x8, [x23]
	add	x9, x19, #2
	add	x19, x19, #1
	cmp	x9, x8
	b.lt	LBB0_6
LBB0_7:
	ldr	x9, [x24]
	sub	w8, w8, #1
	ldrsw	x8, [x9, w8, sxtw #2]
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w0, ge
	bl	_assert
Lloh19:
	adrp	x8, _verbosity@GOTPAGE
Lloh20:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x2, [x21]
	ldr	x8, [x22]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_9:
	mov	w0, #0
	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_10:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x2, [x21]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_map_filename,8,3               ; @map_filename
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot open user names file %s: %m\n"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_map_fsize,8,3                  ; @map_fsize
	.comm	_MAX_MAP_USERS,4,2              ; @MAX_MAP_USERS
	.comm	_Map,8,3                        ; @Map
	.comm	_UMap,8,3                       ; @UMap
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.1:                               ; @.str.1
	.asciz	"successfully loaded user names file %s, size %lld\n"

.subsections_via_symbols
