	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsi_slave_read                 ## -- Begin function fsi_slave_read
	.p2align	4, 0x90
_fsi_slave_read:                        ## @fsi_slave_read
	.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	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -48(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_fsi_slave_calc_addr
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	_slave_retries@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_fsi_master_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_fsi_slave_handle_error
	testl	%eax, %eax
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	movq	_slave_retries@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_4
	jmp	LBB0_1
LBB0_8:
	xorl	%ebx, %ebx
LBB0_1:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_slave_retries,4,2              ## @slave_retries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fsi_slave_read                 ; -- Begin function fsi_slave_read
	.p2align	2
_fsi_slave_read:                        ; @fsi_slave_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w8, [x0, #8]
	stp	w8, w1, [sp, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_fsi_slave_calc_addr
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh0:
	adrp	x23, _slave_retries@GOTPAGE
Lloh1:
	ldr	x23, [x23, _slave_retries@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x21]
	ldp	w2, w3, [sp, #8]
	mov	x4, x20
	mov	x5, x19
	bl	_fsi_master_read
	mov	x22, x0
	cbz	w0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	w1, #0
	mov	x3, x19
	bl	_fsi_slave_handle_error
	cbnz	w0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_4
	b	LBB0_1
LBB0_7:
	mov	w22, #0
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_slave_retries,4,2              ; @slave_retries
.subsections_via_symbols
