	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slurp
_slurp:                                 ## @slurp
	.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	%rdx, %r15
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.2:
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	xorl	%edi, %edi
	callq	_opencore
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	(%rax), %r13
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_r_io_open
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_r_io_size
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movl	%eax, %ebx
	movq	_ST32_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_13
## %bb.9:
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	callq	_r_io_read_at
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	testq	%r15, %r15
	je	LBB0_14
## %bb.11:
	movl	%ebx, (%r15)
	jmp	LBB0_14
LBB0_15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_r_file_slurp
	movq	%rax, %r12
LBB0_16:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	callq	_eprintf
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_eprintf
	movq	%r12, %rdi
	callq	_R_FREE
LBB0_14:
	movq	%r14, %rdi
	callq	_r_io_desc_close
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"://"

L_.str.1:                               ## @.str.1
	.asciz	"opencore failed\n"

	.comm	_ST32_MAX,4,2                   ## @ST32_MAX
L_.str.2:                               ## @.str.2
	.asciz	"slurp: read error\n"

L_.str.3:                               ## @.str.3
	.asciz	"slurp: Invalid file size\n"

	.no_dead_strip	_slurp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slurp
_slurp:                                 ; @slurp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x20, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x21]
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_opencore
	str	x0, [x21]
	cbz	x0, LBB0_14
LBB0_5:
	ldr	x22, [x0]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_r_io_open
	cbz	x0, LBB0_10
; %bb.6:
	mov	x20, x0
	mov	x0, x22
	bl	_r_io_size
Lloh2:
	adrp	x8, _ST32_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST32_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #1
	ccmp	w0, w8, #0, ge
	b.lt	LBB0_11
; %bb.7:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
	mov	x21, #0
	b	LBB0_16
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_r_file_slurp
	mov	x21, x0
LBB0_9:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x21, #0
	b	LBB0_9
LBB0_11:
	mov	x23, x0
	mov	w0, #1
	mov	x1, x23
	bl	_calloc
	mov	x21, x0
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	mov	x3, x23
	bl	_r_io_read_at
	cbz	x0, LBB0_15
; %bb.12:
	cbz	x19, LBB0_16
; %bb.13:
	str	w23, [x19]
	b	LBB0_16
LBB0_14:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	mov	x21, #0
	b	LBB0_9
LBB0_15:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
	mov	x0, x21
	bl	_R_FREE
LBB0_16:
	mov	x0, x20
	bl	_r_io_desc_close
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

l_.str.1:                               ; @.str.1
	.asciz	"opencore failed\n"

	.comm	_ST32_MAX,4,2                   ; @ST32_MAX
l_.str.2:                               ; @.str.2
	.asciz	"slurp: read error\n"

l_.str.3:                               ; @.str.3
	.asciz	"slurp: Invalid file size\n"

	.no_dead_strip	_slurp
.subsections_via_symbols
