	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_rx_loopback
_bnxt_rx_loopback:                      ## @bnxt_rx_loopback
	.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
	movl	%ecx, %r12d
	movl	%edx, %edi
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	callq	_RING_CMP
	movq	%rax, %r15
	movq	(%rbx), %rbx
	movq	%rax, %rdi
	callq	_CP_RING
	movq	(%rbx,%rax,8), %r14
	movq	%r15, %rdi
	callq	_CP_IDX
	movq	(%r14,%rax,4), %rcx
	movq	(%r13), %rdx
	movq	(%rdx,%rcx,8), %rbx
	movl	8(%r14,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_RX_CMP_LEN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	%r12d, %eax
	jne	LBB0_6
## %bb.1:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movslq	(%r13), %r15
	leaq	(%rbx,%r15,8), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	addl	(%r13), %r15d
	xorl	%eax, %eax
	cmpl	%r12d, %r15d
	jge	LBB0_7
## %bb.3:
	movslq	%r15d, %rcx
	movslq	%r12d, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%cl, %esi
	cmpq	%rsi, (%rbx,%rcx,8)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rdx, %rcx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CMP_LEN_SHIFT,4,2           ## @RX_CMP_LEN_SHIFT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_bnxt_rx_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_rx_loopback
_bnxt_rx_loopback:                      ; @bnxt_rx_loopback
	.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
	mov	x19, x3
	mov	x0, x2
	mov	x20, x1
	ldr	x22, [x1, #8]
	ldr	x23, [x22, #8]
	bl	_RING_CMP
	mov	x21, x0
	ldr	x20, [x20]
	bl	_CP_RING
	ldr	x20, [x20, x0, lsl #3]
	mov	x0, x21
	bl	_CP_IDX
	add	x8, x20, x0, lsl #2
	ldr	x9, [x8]
	ldr	x10, [x23]
	ldr	x20, [x10, x9, lsl #3]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _RX_CMP_LEN_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_CMP_LEN_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w0, w8
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.1:
Lloh3:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	ldrsw	x23, [x21]
	add	x0, x20, x23, lsl #3
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_ether_addr_equal
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x21]
	add	w8, w8, w23
	cmp	w8, w19
	b.ge	LBB0_6
; %bb.3:
	sxtw	x8, w8
	sxtw	x9, w19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, x8, lsl #3]
	cmp	x10, w8, uxtb
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CMP_LEN_SHIFT,4,2           ; @RX_CMP_LEN_SHIFT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_bnxt_rx_loopback
.subsections_via_symbols
