	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scheme_bootcode                ## -- Begin function scheme_bootcode
	.p2align	4, 0x90
_scheme_bootcode:                       ## @scheme_bootcode
	.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	_scheme@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movl	%edi, %r15d
	leaq	-48(%rbp), %rsi
	callq	_fstat
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:
	movq	-48(%rbp), %r14
	movq	(%rbx), %rax
	movq	(%rax), %r12
	cmpq	%r12, %r14
	jle	LBB0_6
## %bb.5:
	movq	_EFBIG@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movq	%r12, %rdi
	callq	_malloc
	movq	_bootcode@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	movq	(%r13), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_read
	cmpq	%r14, %rax
	je	LBB0_12
## %bb.9:
	movq	(%r13), %rdi
	callq	_free
	movq	$0, (%r13)
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scheme,8,3                     ## @scheme
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_errno,4,2                      ## @errno
	.comm	_EFBIG,4,2                      ## @EFBIG
	.comm	_bootcode,8,3                   ## @bootcode
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scheme_bootcode                ; -- Begin function scheme_bootcode
	.p2align	2
_scheme_bootcode:                       ; @scheme_bootcode
	.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
Lloh0:
	adrp	x21, _scheme@GOTPAGE
Lloh1:
	ldr	x21, [x21, _scheme@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x19, x0
	add	x1, sp, #8
	bl	_fstat
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	ldr	x20, [sp, #8]
	ldr	x8, [x21]
	ldr	x21, [x8]
	cmp	x20, x21
	b.le	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _EFBIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFBIG@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_malloc
Lloh6:
	adrp	x22, _bootcode@GOTPAGE
Lloh7:
	ldr	x22, [x22, _bootcode@GOTPAGEOFF]
	str	x0, [x22]
	cbz	x0, LBB0_10
; %bb.7:
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	ldr	x1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_read
	mov	x8, x0
	mov	w0, #0
	cmp	x8, x20
	b.eq	LBB0_12
; %bb.8:
	ldr	x0, [x22]
	bl	_free
	str	xzr, [x22]
LBB0_9:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_scheme,8,3                     ; @scheme
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_errno,4,2                      ; @errno
	.comm	_EFBIG,4,2                      ; @EFBIG
	.comm	_bootcode,8,3                   ; @bootcode
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
