	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bnxt_run_loopback
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_3:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
LCPI0_4:
	.quad	6                               ## 0x6
	.quad	6                               ## 0x6
LCPI0_5:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bnxt_run_loopback:                     ## @bnxt_run_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	%rdi, %r12
	movq	32(%rdi), %rax
	movq	(%rax), %r14
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	_BNXT_RX_HDL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
LBB0_2:
	movq	40(%r12), %r15
	movq	16(%r12), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	movl	24(%r12), %esi
	callq	_min
	movl	%eax, %ebx
	movq	16(%r12), %rdi
	movl	%eax, %esi
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_eth_broadcast_addr
	movq	_ETH_ALEN@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movslq	%r14d, %rax
	leaq	(,%rax,8), %rdi
	addq	%r13, %rdi
	movq	16(%r12), %rax
	movl	(%rax), %esi
	callq	_ether_addr_copy
	addq	(%r15), %r14
	movl	%ebx, %r15d
	cmpl	%r14d, %ebx
	jle	LBB0_16
## %bb.6:
	movslq	%r14d, %rax
	movslq	%r15d, %rcx
	movq	%rcx, %r10
	subq	%rax, %r10
	cmpq	$4, %r10
	jb	LBB0_15
## %bb.7:
	movq	%r10, %r8
	andq	$-4, %r8
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	paddq	LCPI0_0(%rip), %xmm0
	leaq	-4(%r8), %rdx
	movq	%rdx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.9:
	movq	%r9, %rsi
	andq	$-2, %rsi
	leaq	48(,%rax,8), %rdx
	addq	%r13, %rdx
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,2]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0]
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = [4,4]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [6,6]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [8,8]
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm6
	paddq	%xmm1, %xmm6
	movdqa	%xmm0, %xmm7
	pand	%xmm2, %xmm7
	pand	%xmm2, %xmm6
	movdqu	%xmm7, -48(%rdx,%rdi,8)
	movdqu	%xmm6, -32(%rdx,%rdi,8)
	movdqa	%xmm0, %xmm6
	paddq	%xmm3, %xmm6
	movdqa	%xmm0, %xmm7
	paddq	%xmm4, %xmm7
	pand	%xmm2, %xmm6
	pand	%xmm2, %xmm7
	movdqu	%xmm6, -16(%rdx,%rdi,8)
	movdqu	%xmm7, (%rdx,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm5, %xmm0
	addq	$-2, %rsi
	jne	LBB0_10
## %bb.11:
	testb	$1, %r9b
	je	LBB0_13
LBB0_12:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [2,2]
	paddq	%xmm0, %xmm1
	addq	%rax, %rdi
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0]
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm1
	movdqu	%xmm0, (%r13,%rdi,8)
	movdqu	%xmm1, 16(%r13,%rdi,8)
LBB0_13:
	cmpq	%r8, %r10
	je	LBB0_16
## %bb.14:
	addq	%r8, %rax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edx
	movq	%rdx, (%r13,%rax,8)
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_15
LBB0_16:
	movq	8(%r12), %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edx
	callq	_dma_map_single
	movl	%eax, %r13d
	movq	8(%r12), %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_bnxt_xmit_bd
	xorl	%eax, %eax
	callq	_wmb
	movl	(%rbx), %edx
	addq	$4, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_db_write
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_bnxt_poll_loopback
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %esi
	movl	%r15d, %edx
	callq	_dma_unmap_single
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movl	%ebx, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
	testb	$1, %r9b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_RX_HDL,8,3                ## @BNXT_RX_HDL
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bnxt_run_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bnxt_run_loopback
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bnxt_run_loopback:                     ; @bnxt_run_loopback
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x20, [x8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _BNXT_RX_HDL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNXT_RX_HDL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
LBB0_2:
	ldr	x23, [x19, #40]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [x19, #24]
	bl	_min
	mov	x22, x0
	ldr	x0, [x19, #16]
	mov	x1, x22
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	mov	x1, x22
	bl	_skb_put
	mov	x24, x0
	bl	_eth_broadcast_addr
Lloh9:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	ldr	x26, [x25]
	lsl	x8, x26, #32
	add	x0, x24, x8, asr #29
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_ether_addr_copy
	ldr	x8, [x25]
	add	x8, x8, x26
	cmp	w22, w8
	b.le	LBB0_9
; %bb.4:
	sxtw	x12, w8
	sxtw	x8, w22
	sub	x10, x8, x12
	mov	x9, x12
	cmp	x10, #8
	b.lo	LBB0_8
; %bb.5:
	and	x11, x10, #0xfffffffffffffff8
	add	x9, x12, x11
	dup.2d	v0, x12
Lloh11:
	adrp	x13, lCPI0_0@PAGE
Lloh12:
	ldr	q1, [x13, lCPI0_0@PAGEOFF]
	add.2d	v0, v0, v1
	add	x12, x24, x12, lsl #3
	mov	w13, #2
	dup.2d	v1, x13
	mov	w13, #4
	dup.2d	v2, x13
	mov	w13, #6
	dup.2d	v3, x13
	add	x12, x12, #32
	movi.2d	v4, #0x000000000000ff
	mov	w13, #8
	dup.2d	v5, x13
	mov	x13, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v6, v0, v1
	add.2d	v7, v0, v2
	add.2d	v16, v0, v3
	and.16b	v17, v0, v4
	and.16b	v6, v6, v4
	and.16b	v7, v7, v4
	and.16b	v16, v16, v4
	stp	q17, q6, [x12, #-32]
	stp	q7, q16, [x12], #64
	add.2d	v0, v0, v5
	subs	x13, x13, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	and	x10, x9, #0xff
	str	x10, [x24, x9, lsl #3]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	w1, [x21]
Lloh13:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x2, x22
	bl	_dma_map_single
	mov	x24, x0
	ldr	x0, [x19, #8]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_dev_kfree_skb
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_bnxt_xmit_bd
	bl	_wmb
	ldr	w2, [x23], #4
	mov	x0, x19
	mov	x1, x23
	bl	_bnxt_db_write
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_bnxt_poll_loopback
	mov	x20, x0
	ldr	x0, [x19, #8]
	ldr	w3, [x25]
	mov	x1, x24
	mov	x2, x22
	bl	_dma_unmap_single
	mov	x0, x21
	bl	_dev_kfree_skb
	mov	x0, x20
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_RX_HDL,8,3                ; @BNXT_RX_HDL
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bnxt_run_loopback
.subsections_via_symbols
