	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_otx2_mbox_init                 ## -- Begin function otx2_mbox_init
	.p2align	4, 0x90
_otx2_mbox_init:                        ## @otx2_mbox_init
	.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
	addl	$-128, %r8d
	cmpl	$8, %r8d
	jae	LBB0_1
## %bb.3:
	movl	%r9d, %r14d
	movq	%rdi, %r12
	movslq	%r8d, %rax
	leaq	l_switch.table.otx2_mbox_init(%rip), %rdi
	movq	(%rdi,%rax,8), %r8
	leaq	l_switch.table.otx2_mbox_init.1(%rip), %rbx
	movq	(%rbx,%rax,8), %rbx
	leaq	l_switch.table.otx2_mbox_init.2(%rip), %rdi
	movq	(%rdi,%rax,8), %r9
	leaq	l_switch.table.otx2_mbox_init.3(%rip), %rdi
	movq	(%rdi,%rax,8), %r10
	movq	(%r8), %rdi
	movq	%rdi, 72(%r12)
	movq	(%rbx), %rdi
	movq	%rdi, 64(%r12)
	movq	(%r9), %rdi
	movq	%rdi, 56(%r12)
	movq	(%r10), %rdi
	movq	%rdi, 48(%r12)
	jae	LBB0_1
## %bb.4:
	leaq	l_switch.table.otx2_mbox_init.4(%rip), %rdi
	movq	(%rdi,%rax,8), %rdi
	leaq	l_switch.table.otx2_mbox_init.5(%rip), %rbx
	movl	(%rbx,%rax,4), %eax
	movl	(%rdi), %edi
	movl	%edi, 40(%r12)
	movl	%eax, (%r12)
	movq	%rcx, 32(%r12)
	movq	%rsi, 8(%r12)
	movq	%rdx, 24(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$16, %esi
	callq	_kcalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%r14d, 4(%r12)
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.8:
	movq	8(%r12), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, %rdi
	callq	_spin_lock_init
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_otx2_mbox_reset
	cmpl	$1, %r14d
	je	LBB0_11
## %bb.9:
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	movl	$16, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	movq	_MBOX_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%ebx, %r13
	imulq	%r13, %rax
	addq	8(%r12), %rax
	movq	%rax, 8(%rdi,%r14)
	addq	%r14, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_otx2_mbox_reset
	incq	%rbx
	addq	$16, %r14
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_otx2_mbox_destroy
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MBOX_DOWN_TX_START,8,3         ## @MBOX_DOWN_TX_START
	.comm	_MBOX_DOWN_RX_START,8,3         ## @MBOX_DOWN_RX_START
	.comm	_MBOX_DOWN_TX_SIZE,8,3          ## @MBOX_DOWN_TX_SIZE
	.comm	_MBOX_DOWN_RX_SIZE,8,3          ## @MBOX_DOWN_RX_SIZE
	.comm	_MBOX_UP_TX_START,8,3           ## @MBOX_UP_TX_START
	.comm	_MBOX_UP_RX_START,8,3           ## @MBOX_UP_RX_START
	.comm	_MBOX_UP_TX_SIZE,8,3            ## @MBOX_UP_TX_SIZE
	.comm	_MBOX_UP_RX_SIZE,8,3            ## @MBOX_UP_RX_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RVU_AF_AFPF_MBOX0,4,2          ## @RVU_AF_AFPF_MBOX0
	.comm	_RVU_PF_PFAF_MBOX1,4,2          ## @RVU_PF_PFAF_MBOX1
	.comm	_RVU_PF_VFX_PFVF_MBOX0,4,2      ## @RVU_PF_VFX_PFVF_MBOX0
	.comm	_RVU_VF_VFPF_MBOX1,4,2          ## @RVU_VF_VFPF_MBOX1
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MBOX_SIZE,4,2                  ## @MBOX_SIZE
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.otx2_mbox_init
l_switch.table.otx2_mbox_init:
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START

	.p2align	3                               ## @switch.table.otx2_mbox_init.1
l_switch.table.otx2_mbox_init.1:
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START

	.p2align	3                               ## @switch.table.otx2_mbox_init.2
l_switch.table.otx2_mbox_init.2:
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE

	.p2align	3                               ## @switch.table.otx2_mbox_init.3
l_switch.table.otx2_mbox_init.3:
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE

	.p2align	3                               ## @switch.table.otx2_mbox_init.4
l_switch.table.otx2_mbox_init.4:
	.quad	_RVU_VF_VFPF_MBOX1
	.quad	_RVU_VF_VFPF_MBOX1
	.quad	_RVU_PF_VFX_PFVF_MBOX0
	.quad	_RVU_PF_VFX_PFVF_MBOX0
	.quad	_RVU_PF_PFAF_MBOX1
	.quad	_RVU_PF_PFAF_MBOX1
	.quad	_RVU_AF_AFPF_MBOX0
	.quad	_RVU_AF_AFPF_MBOX0

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.otx2_mbox_init.5
l_switch.table.otx2_mbox_init.5:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	4                               ## 0x4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_otx2_mbox_init                 ; -- Begin function otx2_mbox_init
	.p2align	2
_otx2_mbox_init:                        ; @otx2_mbox_init
	.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
	sub	w8, w4, #128
	cmp	w8, #8
	b.hs	LBB0_8
; %bb.1:
	mov	x19, x0
	sbfiz	x9, x8, #3, #32
Lloh0:
	adrp	x10, l_switch.table.otx2_mbox_init@PAGE
Lloh1:
	add	x10, x10, l_switch.table.otx2_mbox_init@PAGEOFF
	ldr	x10, [x10, x9]
Lloh2:
	adrp	x11, l_switch.table.otx2_mbox_init.1@PAGE
Lloh3:
	add	x11, x11, l_switch.table.otx2_mbox_init.1@PAGEOFF
	ldr	x11, [x11, x9]
Lloh4:
	adrp	x12, l_switch.table.otx2_mbox_init.2@PAGE
Lloh5:
	add	x12, x12, l_switch.table.otx2_mbox_init.2@PAGEOFF
	ldr	x12, [x12, x9]
Lloh6:
	adrp	x13, l_switch.table.otx2_mbox_init.3@PAGE
Lloh7:
	add	x13, x13, l_switch.table.otx2_mbox_init.3@PAGEOFF
	ldr	x9, [x13, x9]
	ldr	x10, [x10]
	str	x10, [x0, #72]
	ldr	x10, [x11]
	str	x10, [x0, #64]
	ldr	x10, [x12]
	str	x10, [x0, #56]
	ldr	x9, [x9]
	str	x9, [x0, #48]
	cmp	w8, #8
	b.hs	LBB0_8
; %bb.2:
	mov	x20, x5
Lloh8:
	adrp	x9, l_switch.table.otx2_mbox_init.4@PAGE
Lloh9:
	add	x9, x9, l_switch.table.otx2_mbox_init.4@PAGEOFF
	ldr	x9, [x9, w8, sxtw #3]
Lloh10:
	adrp	x10, l_switch.table.otx2_mbox_init.5@PAGE
Lloh11:
	add	x10, x10, l_switch.table.otx2_mbox_init.5@PAGEOFF
	ldr	w8, [x10, w8, sxtw #2]
	ldr	w9, [x9]
	str	w9, [x19, #40]
	str	w8, [x19]
	str	x1, [x19, #8]
	stp	x2, x3, [x19, #24]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x5
	mov	w1, #16
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.3:
	str	w20, [x19, #4]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x19, #8]
	str	x8, [x0, #8]
	bl	_spin_lock_init
	mov	x0, x19
	mov	w1, #0
	bl	_otx2_mbox_reset
	mov	w0, #0
	cmp	w20, #1
	b.eq	LBB0_10
; %bb.5:
	mov	w21, #1
	mov	w22, #24
Lloh15:
	adrp	x23, _MBOX_SIZE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MBOX_SIZE@GOTPAGEOFF]
	mov	w20, w20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #8]
	ldrsw	x10, [x23]
	sxtw	x11, w21
	madd	x9, x10, x11, x9
	add	x0, x8, x22
	str	x9, [x0], #-8
	bl	_spin_lock_init
	mov	x0, x19
	mov	x1, x21
	bl	_otx2_mbox_reset
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x20, x21
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ret
LBB0_11:
	mov	x0, x19
	bl	_otx2_mbox_destroy
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MBOX_DOWN_TX_START,8,3         ; @MBOX_DOWN_TX_START
	.comm	_MBOX_DOWN_RX_START,8,3         ; @MBOX_DOWN_RX_START
	.comm	_MBOX_DOWN_TX_SIZE,8,3          ; @MBOX_DOWN_TX_SIZE
	.comm	_MBOX_DOWN_RX_SIZE,8,3          ; @MBOX_DOWN_RX_SIZE
	.comm	_MBOX_UP_TX_START,8,3           ; @MBOX_UP_TX_START
	.comm	_MBOX_UP_RX_START,8,3           ; @MBOX_UP_RX_START
	.comm	_MBOX_UP_TX_SIZE,8,3            ; @MBOX_UP_TX_SIZE
	.comm	_MBOX_UP_RX_SIZE,8,3            ; @MBOX_UP_RX_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RVU_AF_AFPF_MBOX0,4,2          ; @RVU_AF_AFPF_MBOX0
	.comm	_RVU_PF_PFAF_MBOX1,4,2          ; @RVU_PF_PFAF_MBOX1
	.comm	_RVU_PF_VFX_PFVF_MBOX0,4,2      ; @RVU_PF_VFX_PFVF_MBOX0
	.comm	_RVU_VF_VFPF_MBOX1,4,2          ; @RVU_VF_VFPF_MBOX1
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MBOX_SIZE,4,2                  ; @MBOX_SIZE
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.otx2_mbox_init
l_switch.table.otx2_mbox_init:
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START

	.p2align	3                               ; @switch.table.otx2_mbox_init.1
l_switch.table.otx2_mbox_init.1:
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START
	.quad	_MBOX_UP_TX_START
	.quad	_MBOX_DOWN_TX_START
	.quad	_MBOX_UP_RX_START
	.quad	_MBOX_DOWN_RX_START

	.p2align	3                               ; @switch.table.otx2_mbox_init.2
l_switch.table.otx2_mbox_init.2:
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE

	.p2align	3                               ; @switch.table.otx2_mbox_init.3
l_switch.table.otx2_mbox_init.3:
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE
	.quad	_MBOX_UP_TX_SIZE
	.quad	_MBOX_DOWN_TX_SIZE
	.quad	_MBOX_UP_RX_SIZE
	.quad	_MBOX_DOWN_RX_SIZE

	.p2align	3                               ; @switch.table.otx2_mbox_init.4
l_switch.table.otx2_mbox_init.4:
	.quad	_RVU_VF_VFPF_MBOX1
	.quad	_RVU_VF_VFPF_MBOX1
	.quad	_RVU_PF_VFX_PFVF_MBOX0
	.quad	_RVU_PF_VFX_PFVF_MBOX0
	.quad	_RVU_PF_PFAF_MBOX1
	.quad	_RVU_PF_PFAF_MBOX1
	.quad	_RVU_AF_AFPF_MBOX0
	.quad	_RVU_AF_AFPF_MBOX0

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.otx2_mbox_init.5
l_switch.table.otx2_mbox_init.5:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	12                              ; 0xc
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	4                               ; 0x4

.subsections_via_symbols
