	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rvu_mbox_handler
___rvu_mbox_handler:                    ## @__rvu_mbox_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rdx
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$129, %r13d
	jne	LBB0_20
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rcx
LBB0_4:
	subq	16(%rcx), %rdx
	shrq	$3, %rdx
	movq	8(%rcx), %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rdx
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rbx
	movslq	(%rcx), %r14
	movq	%r14, %rax
	shlq	$4, %rax
	cmpl	$0, (%rbx,%rax)
	je	LBB0_20
## %bb.5:
	addq	%rax, %rbx
	movq	_MBOX_MSG_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$16, %edi
	callq	_ALIGN
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rbx)
	jle	LBB0_19
## %bb.6:
	addl	%r14d, -48(%rbp)                ## 4-byte Folded Spill
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r12,%rbx), %eax
	addl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rsi
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	cmpl	(%rax), %r14d
	jge	LBB0_19
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r12
	movslq	-48(%rbp), %rbx                 ## 4-byte Folded Reload
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %rdx
	cmpl	$128, %r13d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %r13d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_RVU_PFVF_PF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RVU_PFVF_PF_SHIFT@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %ecx
	shll	%cl, %eax
	notl	%eax
	andl	4(%r12,%rbx), %eax
	movl	%eax, 4(%r12,%rbx)
	movzbl	(%rsi), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	shll	%cl, %esi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rsi), %eax
	movq	_RVU_PFVF_FUNC_SHIFT@GOTPCREL(%rip), %rsi
	movzbl	(%rsi), %ecx
	shll	%cl, %eax
	notl	%eax
	andl	4(%r12,%rbx), %eax
	movl	%eax, 4(%r12,%rbx)
	movzbl	(%rsi), %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	shll	%cl, %esi
	incl	%esi
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	orl	%eax, %esi
	movl	%esi, 4(%r12,%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_rvu_process_mbox_msg
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r13d
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	4(%r12,%rbx), %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	12(%r12,%rbx), %edi
	callq	_otx2_mbox_id2name
	movl	12(%r12,%rbx), %r8d
	testl	%r15d, %r15d
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%rbx), %rcx
	addq	$4, %rcx
	movq	_RVU_PFVF_FUNC_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	andl	(%rcx), %edx
	decl	%edx
	movl	%edx, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dev_warn
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, %rsi
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dev_warn
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_otx2_mbox_msg_send             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MBOX_MSG_ALIGN,4,2             ## @MBOX_MSG_ALIGN
	.comm	_RVU_PFVF_PF_MASK,4,2           ## @RVU_PFVF_PF_MASK
	.comm	_RVU_PFVF_PF_SHIFT,4,2          ## @RVU_PFVF_PF_SHIFT
	.comm	_RVU_PFVF_FUNC_MASK,4,2         ## @RVU_PFVF_FUNC_MASK
	.comm	_RVU_PFVF_FUNC_SHIFT,4,2        ## @RVU_PFVF_FUNC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d when processing message %s (0x%x) from PF%d:VF%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error %d when processing message %s (0x%x) from PF%d\n"

	.no_dead_strip	___rvu_mbox_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rvu_mbox_handler
___rvu_mbox_handler:                    ; @__rvu_mbox_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x0]
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_19
; %bb.2:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x20, x8, #32
	b	LBB0_4
LBB0_3:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x20, x8, #8
LBB0_4:
	ldp	x9, x8, [x20, #8]
	sub	x23, x0, x8
	lsr	x21, x23, #3
	str	x9, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x8, [x9, w21, sxtw #3]
	ldrsw	x24, [x20]
	add	x28, x8, x24, lsl #4
	ldr	w8, [x28]
	cbz	w8, LBB0_19
; %bb.5:
Lloh0:
	adrp	x8, _MBOX_MSG_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBOX_MSG_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_ALIGN
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.6:
	mov	w22, #0
	sbfx	x8, x23, #3, #32
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	w26, w0, w24
Lloh3:
	adrp	x23, _RVU_PFVF_FUNC_MASK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RVU_PFVF_FUNC_MASK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	add	x9, x25, x27, lsl #4
	ldr	w9, [x9, #8]
	add	w26, w9, w8
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w22, w22, #1
	ldr	w8, [x28]
	cmp	w22, w8
	b.ge	LBB0_20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [sp, #24]               ; 16-byte Folded Reload
	ldr	x25, [x8, x9, lsl #3]
	sxtw	x27, w26
	cmp	w19, #128
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w19, #129
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh5:
	adrp	x8, _RVU_PFVF_PF_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RVU_PFVF_PF_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x11, _RVU_PFVF_PF_SHIFT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _RVU_PFVF_PF_SHIFT@GOTPAGEOFF]
	ldr	w9, [x11]
	lsl	w8, w8, w9
	add	x9, x25, x27, lsl #4
	ldr	w10, [x9, #4]
	bic	w8, w10, w8
	str	w8, [x9, #4]
	ldr	w10, [x11]
	lsl	w10, w21, w10
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x23]
Lloh10:
	adrp	x11, _RVU_PFVF_FUNC_SHIFT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _RVU_PFVF_FUNC_SHIFT@GOTPAGEOFF]
	ldr	w9, [x11]
	lsl	w8, w8, w9
	add	x9, x25, x27, lsl #4
	ldr	w10, [x9, #4]
	bic	w8, w10, w8
	str	w8, [x9, #4]
	ldr	w10, [x11]
	lsl	w10, w21, w10
	add	w10, w10, #1
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x2, x25, w26, sxtw #4
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_process_mbox_msg
	cbz	w0, LBB0_7
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	str	x26, [sp, #40]                  ; 8-byte Folded Spill
	mov	x26, x19
	mov	x19, x20
	mov	x20, x28
	add	x27, x25, x27, lsl #4
	ldr	w8, [x27, #4]!
	ldr	w9, [x23]
	mov	x28, x23
	and	w23, w9, w8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w25, [x8]
	ldr	w0, [x27, #8]
	bl	_otx2_mbox_id2name
	mov	x3, x0
	ldr	w4, [x27, #8]
	cbz	w23, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x28]
	and	w8, w9, w8
	sub	w8, w8, #1
	str	x8, [sp]
	mov	x0, x25
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x24
	mov	x5, x21
	bl	_dev_warn
	mov	x23, x28
	mov	x28, x20
	mov	x20, x19
	mov	x19, x26
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_8
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_20:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_otx2_mbox_msg_send
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MBOX_MSG_ALIGN,4,2             ; @MBOX_MSG_ALIGN
	.comm	_RVU_PFVF_PF_MASK,4,2           ; @RVU_PFVF_PF_MASK
	.comm	_RVU_PFVF_PF_SHIFT,4,2          ; @RVU_PFVF_PF_SHIFT
	.comm	_RVU_PFVF_FUNC_MASK,4,2         ; @RVU_PFVF_FUNC_MASK
	.comm	_RVU_PFVF_FUNC_SHIFT,4,2        ; @RVU_PFVF_FUNC_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d when processing message %s (0x%x) from PF%d:VF%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error %d when processing message %s (0x%x) from PF%d\n"

	.no_dead_strip	___rvu_mbox_handler
.subsections_via_symbols
