	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mailbox_oam_rx_handler
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mailbox_oam_rx_handler:                ## @mailbox_oam_rx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RX_DMA_CH_OAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WRX_DMA_CHANNEL_CONFIG
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.1:
	movq	_g_atm_priv_data@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	16(%r13)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_RX_DMA_CH_OAM_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	shlq	$5, %rcx
	movl	$1, (%rdx,%rcx)
	movl	%r15d, 4(%rdx,%rcx)
	movq	%rax, 8(%rdx,%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rdx,%rcx)
	movq	(%r13), %rax
	incq	%rax
	movq	_RX_DMA_CH_OAM_DESC_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, (%r13)
	movq	_CELL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_cache_inv
	movq	_RX_DMA_CH_OAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_mailbox_signal
	incl	%r14d
	cmpl	%r12d, %r14d
	je	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r13), %r9
	movq	8(%r13), %rdx
	movq	%r9, %rsi
	shlq	$5, %rsi
	leaq	(%rdx,%rsi), %rdi
	movl	(%rdx,%rsi), %ecx
	movq	16(%rdx,%rsi), %r8
	testl	%ecx, %ecx
	sete	%dl
	testq	%r8, %r8
	setne	%bl
	andb	%dl, %bl
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
                                        ## kill: def $edx killed $edx def $rdx
	cmpl	$999, %edx                      ## imm = 0x3E7
	leal	1(%rdx), %edx
	sete	%al
	orb	%bl, %al
	cmpb	$1, %al
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rdi), %r15d
	xorl	%edi, %edi
	cmpl	$1, %edx
	sete	%dil
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_ASSERT
	movq	32(%r13), %rax
	movq	_RX_DMA_CH_OAM_BUF_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	imulq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rbx
	movq	(%rax,%rcx,4), %rax
	movq	_ATM_PTI_SEGF5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATM_PTI_E2EF5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %eax
	addl	$-3, %eax
	cmpl	$1, %eax
	ja	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edi
	callq	_find_vpi
	testl	%eax, %eax
	jns	LBB0_10
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_find_vpivci
	testl	%eax, %eax
	js	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	callq	*%rax
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_ifx_push_oam
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	20(%r13)
	xorl	%eax, %eax
	callq	_adsl_led_flash
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DMA_CH_OAM,4,2              ## @RX_DMA_CH_OAM
	.comm	_g_atm_priv_data,40,3           ## @g_atm_priv_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loop_count = %u, own = %d, c = %d, oam_desc_pos = %u"

	.comm	_RX_DMA_CH_OAM_BUF_SIZE,8,3     ## @RX_DMA_CH_OAM_BUF_SIZE
	.comm	_ATM_PTI_SEGF5,8,3              ## @ATM_PTI_SEGF5
	.comm	_ATM_PTI_E2EF5,8,3              ## @ATM_PTI_E2EF5
	.comm	_RX_DMA_CH_OAM_DESC_LEN,8,3     ## @RX_DMA_CH_OAM_DESC_LEN
	.comm	_CELL_SIZE,4,2                  ## @CELL_SIZE
	.no_dead_strip	_mailbox_oam_rx_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mailbox_oam_rx_handler
_mailbox_oam_rx_handler:                ; @mailbox_oam_rx_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _RX_DMA_CH_OAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_DMA_CH_OAM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_WRX_DMA_CHANNEL_CONFIG
	ldr	w22, [x0]
	cbz	w22, LBB0_15
; %bb.1:
	mov	w23, #0
Lloh3:
	adrp	x24, _g_atm_priv_data@GOTPAGE
Lloh4:
	ldr	x24, [x24, _g_atm_priv_data@GOTPAGEOFF]
Lloh5:
	adrp	x25, _RX_DMA_CH_OAM_BUF_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RX_DMA_CH_OAM_BUF_SIZE@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	mov	w28, #1
Lloh9:
	adrp	x21, _RX_DMA_CH_OAM_DESC_LEN@GOTPAGE
Lloh10:
	ldr	x21, [x21, _RX_DMA_CH_OAM_DESC_LEN@GOTPAGEOFF]
Lloh11:
	adrp	x26, _CELL_SIZE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _CELL_SIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #16]
	add	w8, w8, #1
	str	w8, [x24, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	ldp	x10, x9, [x24]
	add	x9, x9, x10, lsl #5
	stp	w28, w27, [x9]
	stp	xzr, xzr, [x9, #16]
	str	x8, [x9, #8]
	ldr	x8, [x24]
	add	x9, x8, #1
	ldr	x10, [x21]
	cmp	x9, x10
	csinc	x8, xzr, x8, eq
	str	x8, [x24]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_dma_cache_inv
Lloh13:
	adrp	x8, _RX_DMA_CH_OAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RX_DMA_CH_OAM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_mailbox_signal
	add	w23, w23, #1
	cmp	w23, w22
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	w2, #0
	ldp	x5, x8, [x24]
	add	x8, x8, x5, lsl #5
	ldr	w3, [x8]
	ldr	x4, [x8, #16]
	cmp	w3, #0
	ccmp	x4, #0, #4, eq
	cset	w9, ne
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w2, #999
	add	w2, w2, #1
	cset	w10, eq
	orr	w10, w10, w9
	cmp	w10, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w27, [x8, #4]
	cmp	w2, #1
	cset	w0, eq
	mov	x1, x19
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_ASSERT
	ldr	x8, [x24, #32]
	ldr	x9, [x24]
	ldr	x10, [x25]
	mul	x9, x10, x9
	add	x20, x8, x9, lsl #2
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _ATM_PTI_SEGF5@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATM_PTI_SEGF5@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _ATM_PTI_E2EF5@GOTPAGE
Lloh20:
	ldr	x10, [x10, _ATM_PTI_E2EF5@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x20, #8]
	bl	_find_vpivci
	tbz	w0, #31, LBB0_10
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
	sub	w8, w8, #3
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #12]
	bl	_find_vpi
	tbnz	w0, #31, LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24, #24]
	ldr	x0, [x8, w0, uxtw #3]
	cbz	x0, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x20
	blr	x8
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ifx_push_oam
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #20]
	add	w8, w8, #1
	str	w8, [x24, #20]
	bl	_adsl_led_flash
	b	LBB0_3
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DMA_CH_OAM,4,2              ; @RX_DMA_CH_OAM
	.comm	_g_atm_priv_data,40,3           ; @g_atm_priv_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loop_count = %u, own = %d, c = %d, oam_desc_pos = %u"

	.comm	_RX_DMA_CH_OAM_BUF_SIZE,8,3     ; @RX_DMA_CH_OAM_BUF_SIZE
	.comm	_ATM_PTI_SEGF5,8,3              ; @ATM_PTI_SEGF5
	.comm	_ATM_PTI_E2EF5,8,3              ; @ATM_PTI_E2EF5
	.comm	_RX_DMA_CH_OAM_DESC_LEN,8,3     ; @RX_DMA_CH_OAM_DESC_LEN
	.comm	_CELL_SIZE,4,2                  ; @CELL_SIZE
	.no_dead_strip	_mailbox_oam_rx_handler
.subsections_via_symbols
