	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_config_loopback
_nic_config_loopback:                   ## @nic_config_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rcx
	movl	$-1, %eax
	cmpq	(%rdi), %rcx
	jae	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movl	(%rax,%rcx,4), %edi
	callq	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	movl	%eax, %r15d
	movq	16(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	movl	8(%r14), %edi
	movl	8(%rbx), %ecx
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_bgx_lmac_internal_loopback
	movq	_NIC_PF_CQ_AVG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$20, %edi
	callq	_BIT_ULL
	orl	$32769, %eax                    ## imm = 0x8001
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nic_reg_write
	movq	_NIC_PF_RRM_AVG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$20, %edi
	callq	_BIT_ULL
	orl	$49153, %eax                    ## imm = 0xC001
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_nic_reg_write
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_PF_CQ_AVG_CFG,4,2          ## @NIC_PF_CQ_AVG_CFG
	.comm	_NIC_PF_RRM_AVG_CFG,4,2         ## @NIC_PF_RRM_AVG_CFG
	.no_dead_strip	_nic_config_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_config_loopback
_nic_config_loopback:                   ; @nic_config_loopback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x0, #16]
	ldr	w0, [x9, x8, lsl #2]
	bl	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	mov	x2, x0
	ldr	w0, [x19, #8]
	ldr	w3, [x20, #8]
	mov	x1, x21
	bl	_bgx_lmac_internal_loopback
Lloh0:
	adrp	x8, _NIC_PF_CQ_AVG_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_PF_CQ_AVG_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w0, #20
	bl	_BIT_ULL
	mov	w8, #32769
	orr	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_nic_reg_write
Lloh3:
	adrp	x8, _NIC_PF_RRM_AVG_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIC_PF_RRM_AVG_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	w0, #20
	bl	_BIT_ULL
	mov	w8, #49153
	orr	w2, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_nic_reg_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_PF_CQ_AVG_CFG,4,2          ; @NIC_PF_CQ_AVG_CFG
	.comm	_NIC_PF_RRM_AVG_CFG,4,2         ; @NIC_PF_RRM_AVG_CFG
	.no_dead_strip	_nic_config_loopback
.subsections_via_symbols
