	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_poll_loopback
_bnxt_poll_loopback:                    ## @bnxt_poll_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	$200, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$5, %edi
	callq	_udelay
	decl	%r14d
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	_RING_CMP
	movl	%eax, %ebx
	movq	8(%r15), %r12
	movl	%eax, %edi
	callq	_CP_RING
	movq	(%r12,%rax,8), %r12
	movl	%ebx, %edi
	callq	_CP_IDX
	leaq	(%r12,%rax,4), %r12
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_TX_CMP_VALID
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	%r12, %rdi
	callq	_TX_CMP_TYPE
	movq	_CMP_TYPE_RX_L2_CMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %edi
	callq	_NEXT_RAW_CMP
	movl	%eax, %r13d
	decl	%r14d
	jne	LBB0_1
LBB0_7:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_bnxt_rx_loopback
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_NEXT_RAW_CMP
	movl	%eax, %edi
	callq	_NEXT_RAW_CMP
	movl	%eax, %r13d
LBB0_8:
	movl	%r13d, (%r15)
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_CMP_TYPE_RX_L2_CMP,8,3         ## @CMP_TYPE_RX_L2_CMP
	.no_dead_strip	_bnxt_poll_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_poll_loopback
_bnxt_poll_loopback:                    ; @bnxt_poll_loopback
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w21, [x1]
	mov	w25, #200
Lloh3:
	adrp	x26, _CMP_TYPE_RX_L2_CMP@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CMP_TYPE_RX_L2_CMP@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #5
	bl	_udelay
	subs	w25, w25, #1
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_RING_CMP
	mov	x24, x0
	ldr	x27, [x19, #8]
	bl	_CP_RING
	ldr	x27, [x27, x0, lsl #3]
	mov	x0, x24
	bl	_CP_IDX
	add	x24, x27, x0, lsl #2
	mov	x0, x24
	mov	x1, x21
	bl	_TX_CMP_VALID
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_dma_rmb
	mov	x0, x24
	bl	_TX_CMP_TYPE
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_NEXT_RAW_CMP
	mov	x21, x0
	subs	w25, w25, #1
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_bnxt_rx_loopback
	mov	x20, x0
	mov	x0, x21
	bl	_NEXT_RAW_CMP
	bl	_NEXT_RAW_CMP
	mov	x21, x0
LBB0_6:
	str	w21, [x19]
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_CMP_TYPE_RX_L2_CMP,8,3         ; @CMP_TYPE_RX_L2_CMP
	.no_dead_strip	_bnxt_poll_loopback
.subsections_via_symbols
