	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_pf_mbox_thread
_cn23xx_pf_mbox_thread:                 ## @cn23xx_pf_mbox_thread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	movq	8(%r15), %r12
	movq	(%r12), %rax
	movq	_OCTEON_CN23XX_REV_1_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movl	4(%r15), %edi
	callq	_readq
	movl	4(%r15), %esi
	movq	%rax, %rdi
	callq	_writeq
	cmpq	$0, 16(%r12)
	je	LBB0_8
## %bb.2:
	xorl	%ebx, %ebx
	movq	_OCTEON_PFVFACK@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	16(%r12), %rbx
	jae	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %r13
	imulq	%rbx, %r13
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %edi
	callq	_readq
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_octeon_mbox_read
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_octeon_mbox_process_message
	jmp	LBB0_7
LBB0_9:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_octeon_mbox_process_message    ## TAILCALL
LBB0_8:
	movl	$10, %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_delayed_work          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_CN23XX_REV_1_1,8,3      ## @OCTEON_CN23XX_REV_1_1
	.comm	_OCTEON_PFVFACK,8,3             ## @OCTEON_PFVFACK
	.no_dead_strip	_cn23xx_pf_mbox_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn23xx_pf_mbox_thread
_cn23xx_pf_mbox_thread:                 ; @cn23xx_pf_mbox_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0, #8]
	ldr	x21, [x20, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _OCTEON_CN23XX_REV_1_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCTEON_CN23XX_REV_1_1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #4]
	bl	_readq
	ldr	w1, [x20, #4]
	bl	_writeq
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x20, #0
Lloh3:
	adrp	x22, _OCTEON_PFVFACK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _OCTEON_PFVFACK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	ldr	x8, [x21, #16]
	cmp	x20, x8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	mul	x23, x8, x20
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w0, [x8]
	bl	_readq
	ldr	x8, [x22]
	cmp	x0, #0
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x23, lsl #3]
	bl	_octeon_mbox_read
	cbz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x23, lsl #3]
	bl	_octeon_mbox_process_message
	b	LBB0_3
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_octeon_mbox_process_message
LBB0_8:
	mov	w0, #10
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_schedule_delayed_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_CN23XX_REV_1_1,8,3      ; @OCTEON_CN23XX_REV_1_1
	.comm	_OCTEON_PFVFACK,8,3             ; @OCTEON_PFVFACK
	.no_dead_strip	_cn23xx_pf_mbox_thread
.subsections_via_symbols
