	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_foo
_read_foo:                              ## @read_foo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%edx, %eax
	movq	_bio@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	testq	%r8, %r8
	jne	LBB0_4
## %bb.3:
	movq	(%rdi), %r8
LBB0_4:
	movl	(%r8), %edi
	movq	_delta@GOTPCREL(%rip), %rdx
	shll	$9, %esi
	movslq	%esi, %rsi
	addq	(%rdx), %rsi
	shll	$9, %eax
	movq	%rcx, %rdx
	movl	%eax, %ecx
	callq	*8(%r8)
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_eprintf
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"oops. no disk\n"

	.comm	_bio,8,3                        ## @bio
	.comm	_delta,8,3                      ## @delta
	.no_dead_strip	_read_foo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_foo
_read_foo:                              ; @read_foo
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _bio@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bio@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _delta@GOTPAGE
Lloh4:
	ldr	x8, [x8, _delta@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	w10, w1, #9
	add	x1, x8, w10, sxtw
	lsl	w8, w2, #9
	mov	x2, x3
	mov	x3, x8
	blr	x9
	cmp	w0, #0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_eprintf
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"oops. no disk\n"

	.comm	_bio,8,3                        ; @bio
	.comm	_delta,8,3                      ; @delta
	.no_dead_strip	_read_foo
.subsections_via_symbols
