	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_contents
_load_contents:                         ## @load_contents
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOENT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_13
## %bb.2:
	movq	24(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
LBB0_3:
	leaq	32(%r15), %rdi
	movl	%r14d, %esi
	callq	_stat_validity_update
	leaq	-40(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	24(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
LBB0_5:
	movl	-40(%rbp), %edi
	callq	_xsize_t
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_mmap_strategy@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MMAP_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_SMALL_FILE_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jbe	LBB0_9
## %bb.11:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_xmmap
	movl	%eax, 4(%r15)
	movl	$1, %r12d
	jmp	LBB0_12
LBB0_6:
	movl	%r14d, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	movq	%rbx, %rdi
	callq	_xmalloc
	movl	%eax, 4(%r15)
	movl	%r14d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_read_in_full
	xorl	%r12d, %r12d
	cmpq	%rbx, %rax
	je	LBB0_12
## %bb.10:
	movq	24(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
LBB0_12:
	movl	%r12d, (%r15)
	movl	%r14d, %edi
	callq	_close
	movslq	4(%r15), %rax
	movl	%eax, 16(%r15)
	addq	%rax, %rbx
	movq	%rbx, 8(%r15)
	movl	$1, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't read %s"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't stat %s"

	.comm	_mmap_strategy,8,3              ## @mmap_strategy
	.comm	_MMAP_NONE,8,3                  ## @MMAP_NONE
	.comm	_SMALL_FILE_SIZE,8,3            ## @SMALL_FILE_SIZE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.no_dead_strip	_load_contents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_contents
_load_contents:                         ; @load_contents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ENOENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_14
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_4:
	add	x0, x19, #32
	mov	x1, x20
	bl	_stat_validity_update
	add	x1, sp, #8
	mov	x0, x20
	bl	_fstat
	tbz	x0, #63, LBB0_6
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_6:
	ldr	w0, [sp, #8]
	bl	_xsize_t
	cbz	x0, LBB0_11
; %bb.7:
	mov	x21, x0
Lloh13:
	adrp	x8, _mmap_strategy@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmap_strategy@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _MMAP_NONE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MMAP_NONE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _SMALL_FILE_SIZE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SMALL_FILE_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x0, x10, #0, ne
	b.hi	LBB0_12
; %bb.8:
	mov	x0, x21
	bl	_xmalloc
	mov	x1, x0
	str	w0, [x19, #4]
	mov	x0, x20
	mov	x2, x21
	bl	_read_in_full
	cmp	x0, x21
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_10:
	mov	w8, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_close
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x21
	mov	x4, x20
	mov	w5, #0
	bl	_xmmap
	str	w0, [x19, #4]
	mov	w8, #1
LBB0_13:
	str	w8, [x19]
	mov	x0, x20
	bl	_close
	ldrsw	x8, [x19, #4]
	str	w8, [x19, #16]
	add	x8, x21, x8
	str	x8, [x19, #8]
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't read %s"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't stat %s"

	.comm	_mmap_strategy,8,3              ; @mmap_strategy
	.comm	_MMAP_NONE,8,3                  ; @MMAP_NONE
	.comm	_SMALL_FILE_SIZE,8,3            ; @SMALL_FILE_SIZE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.no_dead_strip	_load_contents
.subsections_via_symbols
