	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_fsi2pib_status
_handle_fsi2pib_status:                 ## @handle_fsi2pib_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$-1, -4(%rbp)
	movq	_SCOM_STATUS_PROTECTION@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_SCOM_STATUS_PARITY@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%rdi), %edi
	movq	_SCOM_FSI2PIB_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_write
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	_SCOM_STATUS_PIB_ABORT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SCOM_STATUS_PROTECTION,4,2     ## @SCOM_STATUS_PROTECTION
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SCOM_STATUS_PARITY,4,2         ## @SCOM_STATUS_PARITY
	.comm	_SCOM_FSI2PIB_RESET_REG,4,2     ## @SCOM_FSI2PIB_RESET_REG
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SCOM_STATUS_PIB_ABORT,4,2      ## @SCOM_STATUS_PIB_ABORT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_handle_fsi2pib_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_fsi2pib_status
_handle_fsi2pib_status:                 ; @handle_fsi2pib_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #-1
	stur	w8, [x29, #-4]
Lloh0:
	adrp	x8, _SCOM_STATUS_PROTECTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCOM_STATUS_PROTECTION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EPERM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _SCOM_STATUS_PARITY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCOM_STATUS_PARITY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _SCOM_FSI2PIB_RESET_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCOM_FSI2PIB_RESET_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	sub	x2, x29, #4
	mov	w3, #4
	bl	_fsi_device_write
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _SCOM_STATUS_PIB_ABORT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCOM_STATUS_PIB_ABORT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_8
; %bb.5:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SCOM_STATUS_PROTECTION,4,2     ; @SCOM_STATUS_PROTECTION
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SCOM_STATUS_PARITY,4,2         ; @SCOM_STATUS_PARITY
	.comm	_SCOM_FSI2PIB_RESET_REG,4,2     ; @SCOM_FSI2PIB_RESET_REG
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SCOM_STATUS_PIB_ABORT,4,2      ; @SCOM_STATUS_PIB_ABORT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_handle_fsi2pib_status
.subsections_via_symbols
