	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_set_loopback
_enetc_set_loopback:                    ## @enetc_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	(%rax), %r14
	movq	_ENETC_PM0_IF_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_enetc_port_rd
	movq	_ENETC_PMO_IFM_RG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_ENETC_PM0_IFM_RLP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	testl	%r15d, %r15d
	cmovel	%r15d, %ebx
	orl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_ENETC_PM0_CMD_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_enetc_port_rd
	movq	_ENETC_PM0_CMD_XGLP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	testl	%r15d, %r15d
	cmovel	%r15d, %ebx
	movq	_ENETC_PM0_CMD_PHY_TX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	cmovel	%r15d, %eax
	orl	%ecx, %ebx
	andl	%edx, %ebx
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_enetc_port_wr
	movq	_ENETC_PM1_CMD_CFG@GOTPCREL(%rip), %r12
LBB0_3:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_port_wr                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_PM0_IF_MODE,4,2          ## @ENETC_PM0_IF_MODE
	.comm	_ENETC_PMO_IFM_RG,4,2           ## @ENETC_PMO_IFM_RG
	.comm	_ENETC_PM0_IFM_RLP,4,2          ## @ENETC_PM0_IFM_RLP
	.comm	_ENETC_PM0_CMD_CFG,4,2          ## @ENETC_PM0_CMD_CFG
	.comm	_ENETC_PM0_CMD_XGLP,4,2         ## @ENETC_PM0_CMD_XGLP
	.comm	_ENETC_PM0_CMD_PHY_TX_EN,4,2    ## @ENETC_PM0_CMD_PHY_TX_EN
	.comm	_ENETC_PM1_CMD_CFG,4,2          ## @ENETC_PM1_CMD_CFG
	.no_dead_strip	_enetc_set_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_set_loopback
_enetc_set_loopback:                    ; @enetc_set_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
	mov	x20, x1
	bl	_netdev_priv
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _ENETC_PM0_IF_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_PM0_IF_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_enetc_port_rd
Lloh3:
	adrp	x8, _ENETC_PMO_IFM_RG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_PMO_IFM_RG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENETC_PM0_IFM_RLP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENETC_PM0_IFM_RLP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w9, w0, w8
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	orr	w20, w9, w8
Lloh9:
	adrp	x8, _ENETC_PM0_IF_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENETC_PM0_IF_MODE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x21, _ENETC_PM0_CMD_CFG@GOTPAGE
Lloh12:
	ldr	x21, [x21, _ENETC_PM0_CMD_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_enetc_port_rd
Lloh13:
	adrp	x8, _ENETC_PM0_CMD_XGLP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENETC_PM0_CMD_XGLP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w9, w0, w8
	cmp	w20, #0
	csel	w8, wzr, w8, eq
Lloh16:
	adrp	x10, _ENETC_PM0_CMD_PHY_TX_EN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _ENETC_PM0_CMD_PHY_TX_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh18:
	ldr	w9, [x10]
	bic	w8, w8, w9
	csel	w9, wzr, w9, eq
	orr	w20, w8, w9
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_enetc_port_wr
Lloh19:
	adrp	x8, _ENETC_PM1_CMD_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENETC_PM1_CMD_CFG@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	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
	b	_enetc_port_wr
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_PM0_IF_MODE,4,2          ; @ENETC_PM0_IF_MODE
	.comm	_ENETC_PMO_IFM_RG,4,2           ; @ENETC_PMO_IFM_RG
	.comm	_ENETC_PM0_IFM_RLP,4,2          ; @ENETC_PM0_IFM_RLP
	.comm	_ENETC_PM0_CMD_CFG,4,2          ; @ENETC_PM0_CMD_CFG
	.comm	_ENETC_PM0_CMD_XGLP,4,2         ; @ENETC_PM0_CMD_XGLP
	.comm	_ENETC_PM0_CMD_PHY_TX_EN,4,2    ; @ENETC_PM0_CMD_PHY_TX_EN
	.comm	_ENETC_PM1_CMD_CFG,4,2          ; @ENETC_PM1_CMD_CFG
	.no_dead_strip	_enetc_set_loopback
.subsections_via_symbols
