	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexrm_cmpl_desc_to_error
_flexrm_cmpl_desc_to_error:             ## @flexrm_cmpl_desc_to_error
	.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	%edi, %ebx
	movq	_CMPL_DME_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMPL_DME_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_DESC_DEC
	movq	_DME_STATUS_ERROR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_CMPL_RM_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CMPL_RM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_DESC_DEC
	movl	%eax, %ecx
	movq	_RM_STATUS_CODE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_RM_STATUS_CODE_AE_TIMEOUT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMPL_DME_STATUS_SHIFT,4,2      ## @CMPL_DME_STATUS_SHIFT
	.comm	_CMPL_DME_STATUS_MASK,4,2       ## @CMPL_DME_STATUS_MASK
	.comm	_DME_STATUS_ERROR_MASK,4,2      ## @DME_STATUS_ERROR_MASK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CMPL_RM_STATUS_SHIFT,4,2       ## @CMPL_RM_STATUS_SHIFT
	.comm	_CMPL_RM_STATUS_MASK,4,2        ## @CMPL_RM_STATUS_MASK
	.comm	_RM_STATUS_CODE_MASK,4,2        ## @RM_STATUS_CODE_MASK
	.comm	_RM_STATUS_CODE_AE_TIMEOUT,4,2  ## @RM_STATUS_CODE_AE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_flexrm_cmpl_desc_to_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexrm_cmpl_desc_to_error
_flexrm_cmpl_desc_to_error:             ; @flexrm_cmpl_desc_to_error
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CMPL_DME_STATUS_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMPL_DME_STATUS_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CMPL_DME_STATUS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMPL_DME_STATUS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_DESC_DEC
Lloh6:
	adrp	x8, _DME_STATUS_ERROR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DME_STATUS_ERROR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x8, _CMPL_RM_STATUS_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMPL_RM_STATUS_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _CMPL_RM_STATUS_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMPL_RM_STATUS_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_DESC_DEC
Lloh17:
	adrp	x8, _RM_STATUS_CODE_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RM_STATUS_CODE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh20:
	adrp	x9, _RM_STATUS_CODE_AE_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RM_STATUS_CODE_AE_TIMEOUT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CMPL_DME_STATUS_SHIFT,4,2      ; @CMPL_DME_STATUS_SHIFT
	.comm	_CMPL_DME_STATUS_MASK,4,2       ; @CMPL_DME_STATUS_MASK
	.comm	_DME_STATUS_ERROR_MASK,4,2      ; @DME_STATUS_ERROR_MASK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CMPL_RM_STATUS_SHIFT,4,2       ; @CMPL_RM_STATUS_SHIFT
	.comm	_CMPL_RM_STATUS_MASK,4,2        ; @CMPL_RM_STATUS_MASK
	.comm	_RM_STATUS_CODE_MASK,4,2        ; @RM_STATUS_CODE_MASK
	.comm	_RM_STATUS_CODE_AE_TIMEOUT,4,2  ; @RM_STATUS_CODE_AE_TIMEOUT
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_flexrm_cmpl_desc_to_error
.subsections_via_symbols
