	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bna_bfi_ethport_lpbk_up
_bna_bfi_ethport_lpbk_up:               ## @bna_bfi_ethport_lpbk_up
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movq	_BFI_MC_ENET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BFI_ENET_H2I_DIAG_LOOPBACK_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%rdi), %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bfi_msgq_mhdr_set
	movl	$12, %edi
	callq	_bfi_msgq_num_cmd_entries
	movl	%eax, %edi
	callq	_htons
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movq	_BNA_ENET_T_LOOPBACK_INTERNAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_BFI_ENET_DIAG_LB_OPMODE_EXT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BFI_ENET_DIAG_LB_OPMODE_CBL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_BNA_STATUS_T_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$12, %ecx
	movq	%r14, %r8
	callq	_bfa_msgq_cmd_set
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bfa_msgq_cmd_post              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BFI_MC_ENET,4,2                ## @BFI_MC_ENET
	.comm	_BFI_ENET_H2I_DIAG_LOOPBACK_REQ,4,2 ## @BFI_ENET_H2I_DIAG_LOOPBACK_REQ
	.comm	_BNA_ENET_T_LOOPBACK_INTERNAL,8,3 ## @BNA_ENET_T_LOOPBACK_INTERNAL
	.comm	_BFI_ENET_DIAG_LB_OPMODE_EXT,4,2 ## @BFI_ENET_DIAG_LB_OPMODE_EXT
	.comm	_BFI_ENET_DIAG_LB_OPMODE_CBL,4,2 ## @BFI_ENET_DIAG_LB_OPMODE_CBL
	.comm	_BNA_STATUS_T_ENABLED,4,2       ## @BNA_STATUS_T_ENABLED
	.no_dead_strip	_bna_bfi_ethport_lpbk_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bna_bfi_ethport_lpbk_up
_bna_bfi_ethport_lpbk_up:               ; @bna_bfi_ethport_lpbk_up
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _BFI_MC_ENET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BFI_MC_ENET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BFI_ENET_H2I_DIAG_LOOPBACK_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BFI_ENET_H2I_DIAG_LOOPBACK_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x20, x0
	ldr	w0, [x20, #16]!
	mov	w3, #0
	mov	w4, #0
	bl	_bfi_msgq_mhdr_set
	mov	w0, #12
	bl	_bfi_msgq_num_cmd_entries
	bl	_htons
	str	w0, [x20]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _BNA_ENET_T_LOOPBACK_INTERNAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNA_ENET_T_LOOPBACK_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _BFI_ENET_DIAG_LB_OPMODE_EXT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BFI_ENET_DIAG_LB_OPMODE_EXT@GOTPAGEOFF]
Lloh11:
	adrp	x11, _BFI_ENET_DIAG_LB_OPMODE_CBL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _BFI_ENET_DIAG_LB_OPMODE_CBL@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _BNA_STATUS_T_ENABLED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BNA_STATUS_T_ENABLED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	w3, #12
	mov	x4, x20
	bl	_bfa_msgq_cmd_set
	ldr	x0, [x19, #8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bfa_msgq_cmd_post
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BFI_MC_ENET,4,2                ; @BFI_MC_ENET
	.comm	_BFI_ENET_H2I_DIAG_LOOPBACK_REQ,4,2 ; @BFI_ENET_H2I_DIAG_LOOPBACK_REQ
	.comm	_BNA_ENET_T_LOOPBACK_INTERNAL,8,3 ; @BNA_ENET_T_LOOPBACK_INTERNAL
	.comm	_BFI_ENET_DIAG_LB_OPMODE_EXT,4,2 ; @BFI_ENET_DIAG_LB_OPMODE_EXT
	.comm	_BFI_ENET_DIAG_LB_OPMODE_CBL,4,2 ; @BFI_ENET_DIAG_LB_OPMODE_CBL
	.comm	_BNA_STATUS_T_ENABLED,4,2       ; @BNA_STATUS_T_ENABLED
	.no_dead_strip	_bna_bfi_ethport_lpbk_up
.subsections_via_symbols
