	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexrm_mbox_of_xlate
_flexrm_mbox_of_xlate:                  ## @flexrm_mbox_of_xlate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, (%rsi)
	jg	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	8(%rsi), %rcx
	movq	(%rcx), %rdx
	cmpq	(%rdi), %rdx
	jae	LBB0_4
## %bb.5:
	movq	8(%rcx), %rsi
	movq	_MSI_COUNT_MASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	ja	LBB0_1
## %bb.6:
	movq	16(%rcx), %r8
	movq	_MSI_TIMER_VAL_MASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	ja	LBB0_1
## %bb.7:
	movq	8(%rdi), %rdi
	leaq	(%rdi,%rdx,8), %rax
	movq	(%rdi,%rdx,8), %rdx
	movq	%rsi, (%rdx)
	movq	16(%rcx), %rcx
	movq	%rcx, 8(%rdx)
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_MSI_COUNT_MASK,8,3             ## @MSI_COUNT_MASK
	.comm	_MSI_TIMER_VAL_MASK,8,3         ## @MSI_TIMER_VAL_MASK
	.no_dead_strip	_flexrm_mbox_of_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexrm_mbox_of_xlate
_flexrm_mbox_of_xlate:                  ; @flexrm_mbox_of_xlate
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	cmp	w8, #2
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x1, #8]
	ldr	x9, [x8]
	ldr	x10, [x0]
	cmp	x9, x10
	b.hs	LBB0_6
; %bb.3:
	ldr	x10, [x8, #8]
Lloh2:
	adrp	x11, _MSI_COUNT_MASK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _MSI_COUNT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.hi	LBB0_1
; %bb.4:
	ldr	x11, [x8, #16]
Lloh5:
	adrp	x12, _MSI_TIMER_VAL_MASK@GOTPAGE
Lloh6:
	ldr	x12, [x12, _MSI_TIMER_VAL_MASK@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	x11, x12
	b.hi	LBB0_1
; %bb.5:
	ldr	x11, [x0, #8]
	add	x0, x11, x9, lsl #3
	ldr	x9, [x0]
	str	x10, [x9]
	ldr	x8, [x8, #16]
	str	x8, [x9, #8]
	ret
LBB0_6:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_MSI_COUNT_MASK,8,3             ; @MSI_COUNT_MASK
	.comm	_MSI_TIMER_VAL_MASK,8,3         ; @MSI_TIMER_VAL_MASK
	.no_dead_strip	_flexrm_mbox_of_xlate
.subsections_via_symbols
