	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_slave_report_and_clear_errors
_fsi_slave_report_and_clear_errors:     ## @fsi_slave_report_and_clear_errors
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movl	(%rdi), %r14d
	movl	8(%rdi), %r15d
	movq	_FSI_SLAVE_BASE@GOTPCREL(%rip), %r13
	movq	_FSI_SISC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	(%r13), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$4, %r9d
	callq	_fsi_master_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_FSI_SSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	(%r13), %rcx
	leaq	-52(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$4, %r9d
	callq	_fsi_master_read
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	addq	$4, %rbx
	movl	-52(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	_FSI_SISC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	(%r13), %rcx
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$4, %r9d
	callq	_fsi_master_write
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSI_SLAVE_BASE,8,3             ## @FSI_SLAVE_BASE
	.comm	_FSI_SISC,8,3                   ## @FSI_SISC
	.comm	_FSI_SSTAT,8,3                  ## @FSI_SSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status: 0x%08x, sisc: 0x%08x\n"

	.no_dead_strip	_fsi_slave_report_and_clear_errors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_slave_report_and_clear_errors
_fsi_slave_report_and_clear_errors:     ; @fsi_slave_report_and_clear_errors
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	w20, [x0]
Lloh0:
	adrp	x24, _FSI_SLAVE_BASE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FSI_SLAVE_BASE@GOTPAGEOFF]
	ldr	w21, [x0, #8]
	ldr	x8, [x24]
Lloh2:
	adrp	x25, _FSI_SISC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FSI_SISC@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x3, x9, x8
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w5, #4
	bl	_fsi_master_read
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x24]
Lloh4:
	adrp	x9, _FSI_SSTAT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FSI_SSTAT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x3, x9, x8
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w5, #4
	bl	_fsi_master_read
	cbnz	w0, LBB0_3
; %bb.2:
	add	x22, x22, #4
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	bl	_dev_dbg
	ldr	x8, [x24]
	ldr	x9, [x25]
	add	x3, x9, x8
	add	x4, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	w5, #4
	bl	_fsi_master_write
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FSI_SLAVE_BASE,8,3             ; @FSI_SLAVE_BASE
	.comm	_FSI_SISC,8,3                   ; @FSI_SISC
	.comm	_FSI_SSTAT,8,3                  ; @FSI_SSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status: 0x%08x, sisc: 0x%08x\n"

	.no_dead_strip	_fsi_slave_report_and_clear_errors
.subsections_via_symbols
