	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pib_status
_handle_pib_status:                     ## @handle_pib_status
	.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
	movl	$-1, -12(%rbp)
	movq	_SCOM_PIB_SUCCESS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	je	LBB0_11
## %bb.1:
	movl	%esi, %ebx
	movq	_SCOM_PIB_BLOCKED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_3:
	movl	(%rdi), %edi
	movq	_SCOM_FSI2PIB_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movl	$4, %ecx
	callq	_fsi_device_write
	cmpl	$128, %ebx
	je	LBB0_8
## %bb.4:
	cmpl	$133, %ebx
	je	LBB0_7
## %bb.5:
	cmpl	$131, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCOM_PIB_SUCCESS,4,2           ## @SCOM_PIB_SUCCESS
	.comm	_SCOM_PIB_BLOCKED,4,2           ## @SCOM_PIB_BLOCKED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SCOM_FSI2PIB_RESET_REG,4,2     ## @SCOM_FSI2PIB_RESET_REG
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_handle_pib_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pib_status
_handle_pib_status:                     ; @handle_pib_status
	.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	w8, #-1
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _SCOM_PIB_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCOM_PIB_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	mov	x19, x1
Lloh3:
	adrp	x8, _SCOM_PIB_BLOCKED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCOM_PIB_BLOCKED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _SCOM_FSI2PIB_RESET_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCOM_FSI2PIB_RESET_REG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_fsi_device_write
	cmp	w19, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w19, #133
	b.eq	LBB0_9
; %bb.6:
	cmp	w19, #131
	b.ne	LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh13:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh15:
	adrp	x8, _ENXIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SCOM_PIB_SUCCESS,4,2           ; @SCOM_PIB_SUCCESS
	.comm	_SCOM_PIB_BLOCKED,4,2           ; @SCOM_PIB_BLOCKED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SCOM_FSI2PIB_RESET_REG,4,2     ; @SCOM_FSI2PIB_RESET_REG
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_handle_pib_status
.subsections_via_symbols
