	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_mbox_isr
_rockchip_mbox_isr:                     ## @rockchip_mbox_isr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	16(%rsi), %rcx
	shlq	$2, %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rcx,%rbx,4)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	incl	%r12d
	cmpq	%rbx, %rax
	jne	LBB0_2
	jmp	LBB0_7
LBB0_3:
	movq	8(%rcx,%rbx,4), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mbox_chan_received_data
	movq	16(%r14), %rax
	movq	$0, 8(%rax,%rbx,4)
	movl	4(%r14), %edi
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	jmp	LBB0_7
LBB0_4:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chan[%d]: B2A message is NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"Chan[%d]: B2A message, cmd 0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rockchip_mbox_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_mbox_isr
_rockchip_mbox_isr:                     ; @rockchip_mbox_isr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w10, [x1]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x1
	mov	w19, #0
	mov	x8, #0
	ldr	x9, [x1, #16]
	lsl	x10, x10, #2
	mov	w22, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8, lsl #2]
	cmp	w11, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #4
	add	x22, x22, #16
	add	w19, w19, #1
	cmp	x10, x8
	b.ne	LBB0_2
	b	LBB0_7
LBB0_4:
	ldr	x21, [x9, x22]
	cbz	x21, LBB0_6
; %bb.5:
	ldr	x9, [x20, #8]
	add	x0, x9, x8
	mov	x1, x21
	bl	_mbox_chan_received_data
	ldr	x8, [x20, #16]
	str	xzr, [x8, x22]
	ldr	w0, [x20, #4]
	ldr	w3, [x21]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_7:
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chan[%d]: B2A message is NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"Chan[%d]: B2A message, cmd 0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rockchip_mbox_isr
.subsections_via_symbols
