	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbefifo_check_sbe_state
_sbefifo_check_sbe_state:               ## @sbefifo_check_sbe_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_CFAM_GP_MBOX_SBM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_slave_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	-12(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %edx
	movq	_CFAM_SBM_SBE_BOOTED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.4:
	movq	_CFAM_SBM_SBE_STATE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_CFAM_SBM_SBE_STATE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_7
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	_CFAM_SBM_SBE_ASYNC_FFDC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	$1, (%rbx)
	jmp	LBB0_9
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_CFAM_GP_MBOX_SBM_ADDR,4,2      ## @CFAM_GP_MBOX_SBM_ADDR
	.comm	_CFAM_SBM_SBE_BOOTED,4,2        ## @CFAM_SBM_SBE_BOOTED
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.comm	_CFAM_SBM_SBE_STATE_MASK,4,2    ## @CFAM_SBM_SBE_STATE_MASK
	.comm	_CFAM_SBM_SBE_STATE_SHIFT,4,2   ## @CFAM_SBM_SBE_STATE_SHIFT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CFAM_SBM_SBE_ASYNC_FFDC,4,2    ## @CFAM_SBM_SBE_ASYNC_FFDC
	.no_dead_strip	_sbefifo_check_sbe_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbefifo_check_sbe_state
_sbefifo_check_sbe_state:               ; @sbefifo_check_sbe_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _CFAM_GP_MBOX_SBM_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFAM_GP_MBOX_SBM_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_slave_read
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
Lloh3:
	adrp	x8, _CFAM_SBM_SBE_BOOTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFAM_SBM_SBE_BOOTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _CFAM_SBM_SBE_STATE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFAM_SBM_SBE_STATE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _CFAM_SBM_SBE_STATE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CFAM_SBM_SBE_STATE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_7
; %bb.3:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh14:
	adrp	x8, _ESHUTDOWN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESHUTDOWN@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh16:
	adrp	x8, _CFAM_SBM_SBE_ASYNC_FFDC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CFAM_SBM_SBE_ASYNC_FFDC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_6
LBB0_9:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_CFAM_GP_MBOX_SBM_ADDR,4,2      ; @CFAM_GP_MBOX_SBM_ADDR
	.comm	_CFAM_SBM_SBE_BOOTED,4,2        ; @CFAM_SBM_SBE_BOOTED
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.comm	_CFAM_SBM_SBE_STATE_MASK,4,2    ; @CFAM_SBM_SBE_STATE_MASK
	.comm	_CFAM_SBM_SBE_STATE_SHIFT,4,2   ; @CFAM_SBM_SBE_STATE_SHIFT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CFAM_SBM_SBE_ASYNC_FFDC,4,2    ; @CFAM_SBM_SBE_ASYNC_FFDC
	.no_dead_strip	_sbefifo_check_sbe_state
.subsections_via_symbols
