	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slurp_file
_slurp_file:                            ## @slurp_file
	.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	%rsi, %r14
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	%eax, %r15d
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_7
## %bb.2:
	movq	-40(%rbp), %r12
	movq	%r12, (%r14)
	movq	%r12, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_read
	cmpq	(%r14), %rax
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	xorl	%ebx, %ebx
LBB0_5:
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	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	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.no_dead_strip	_slurp_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slurp_file
_slurp_file:                            ; @slurp_file
	.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	x20, x1
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_fstat
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	x22, [sp, #8]
	str	x22, [x20]
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_read
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_free
	mov	x21, #0
LBB0_5:
	mov	x0, x19
	bl	_close
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.no_dead_strip	_slurp_file
.subsections_via_symbols
