	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_configure_port_mac
_enetc_configure_port_mac:              ## @enetc_configure_port_mac
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ENETC_PM0_MAXFRM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ENETC_RX_MAXFRM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ENETC_SET_MAXFRM
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_enetc_port_wr
	xorl	%edi, %edi
	callq	_ENETC_PTCMSDUR
	movq	_ENETC_MAC_MAXFRM_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_enetc_port_wr
	movq	_ENETC_PTXMBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	addl	%edx, %edx
	movq	%rbx, %rdi
	callq	_enetc_port_wr
	movq	_ENETC_PM0_CMD_PHY_TX_EN@GOTPCREL(%rip), %rax
	movq	_ENETC_PM0_CMD_TXP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rax), %edx
	movq	_ENETC_PM0_PROMISC@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movq	_ENETC_PM0_CMD_CFG@GOTPCREL(%rip), %rax
	movq	_ENETC_PM0_TX_EN@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movl	(%rax), %esi
	movq	_ENETC_PM0_RX_EN@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_enetc_port_wr
	movq	_ENETC_PM1_CMD_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	_ENETC_PM0_CMD_PHY_TX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r12), %edx
	orl	(%r13), %edx
	orl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_enetc_port_wr
	movq	_ENETC_PM0_IF_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_enetc_port_rd
	movq	_ENETC_PMO_IFM_RG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	_ENETC_PM0_IFM_RGAUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_enetc_port_wr
LBB0_2:
	movl	$1, %edi
	callq	_ENETC_G_EPFBLPR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_enetc_global_rd
	movq	_ENETC_G_EPFBLPR1_XGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	(%r14), %esi
	movq	_ENETC_PM0_IFM_XGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_enetc_port_wr                  ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENETC_PM0_MAXFRM,4,2           ## @ENETC_PM0_MAXFRM
	.comm	_ENETC_RX_MAXFRM_SIZE,4,2       ## @ENETC_RX_MAXFRM_SIZE
	.comm	_ENETC_MAC_MAXFRM_SIZE,4,2      ## @ENETC_MAC_MAXFRM_SIZE
	.comm	_ENETC_PTXMBAR,4,2              ## @ENETC_PTXMBAR
	.comm	_ENETC_PM0_CMD_CFG,4,2          ## @ENETC_PM0_CMD_CFG
	.comm	_ENETC_PM0_CMD_PHY_TX_EN,4,2    ## @ENETC_PM0_CMD_PHY_TX_EN
	.comm	_ENETC_PM0_CMD_TXP,4,2          ## @ENETC_PM0_CMD_TXP
	.comm	_ENETC_PM0_PROMISC,4,2          ## @ENETC_PM0_PROMISC
	.comm	_ENETC_PM0_TX_EN,4,2            ## @ENETC_PM0_TX_EN
	.comm	_ENETC_PM0_RX_EN,4,2            ## @ENETC_PM0_RX_EN
	.comm	_ENETC_PM1_CMD_CFG,4,2          ## @ENETC_PM1_CMD_CFG
	.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_RGAUTO,4,2       ## @ENETC_PM0_IFM_RGAUTO
	.comm	_ENETC_G_EPFBLPR1_XGMII,8,3     ## @ENETC_G_EPFBLPR1_XGMII
	.comm	_ENETC_PM0_IFM_XGMII,4,2        ## @ENETC_PM0_IFM_XGMII
	.no_dead_strip	_enetc_configure_port_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_configure_port_mac
_enetc_configure_port_mac:              ; @enetc_configure_port_mac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ENETC_PM0_MAXFRM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENETC_PM0_MAXFRM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ENETC_RX_MAXFRM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_RX_MAXFRM_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ENETC_SET_MAXFRM
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_enetc_port_wr
	mov	w0, #0
	bl	_ENETC_PTCMSDUR
	mov	x1, x0
Lloh6:
	adrp	x20, _ENETC_MAC_MAXFRM_SIZE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ENETC_MAC_MAXFRM_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_enetc_port_wr
Lloh8:
	adrp	x8, _ENETC_PTXMBAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENETC_PTXMBAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x20]
	lsl	w2, w8, #1
	mov	x0, x19
	bl	_enetc_port_wr
Lloh11:
	adrp	x8, _ENETC_PM0_CMD_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENETC_PM0_CMD_CFG@GOTPAGEOFF]
Lloh13:
	adrp	x20, _ENETC_PM0_CMD_PHY_TX_EN@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ENETC_PM0_CMD_PHY_TX_EN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh16:
	adrp	x21, _ENETC_PM0_CMD_TXP@GOTPAGE
Lloh17:
	ldr	x21, [x21, _ENETC_PM0_CMD_TXP@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh18:
	adrp	x22, _ENETC_PM0_PROMISC@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ENETC_PM0_PROMISC@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh20:
	adrp	x23, _ENETC_PM0_TX_EN@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ENETC_PM0_TX_EN@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh22:
	adrp	x24, _ENETC_PM0_RX_EN@GOTPAGE
Lloh23:
	ldr	x24, [x24, _ENETC_PM0_RX_EN@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_enetc_port_wr
Lloh24:
	adrp	x8, _ENETC_PM1_CMD_CFG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENETC_PM1_CMD_CFG@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w8, w8, w9
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_enetc_port_wr
Lloh27:
	adrp	x20, _ENETC_PM0_IF_MODE@GOTPAGE
Lloh28:
	ldr	x20, [x20, _ENETC_PM0_IF_MODE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_enetc_port_rd
Lloh29:
	adrp	x8, _ENETC_PMO_IFM_RG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENETC_PMO_IFM_RG@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh32:
	adrp	x8, _ENETC_PM0_IFM_RGAUTO@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENETC_PM0_IFM_RGAUTO@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_enetc_port_wr
LBB0_2:
	mov	w0, #1
	bl	_ENETC_G_EPFBLPR
	mov	x1, x0
	mov	x0, x19
	bl	_enetc_global_rd
Lloh35:
	adrp	x8, _ENETC_G_EPFBLPR1_XGMII@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENETC_G_EPFBLPR1_XGMII@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x20]
Lloh38:
	adrp	x8, _ENETC_PM0_IFM_XGMII@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ENETC_PM0_IFM_XGMII@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_enetc_port_wr
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ENETC_PM0_MAXFRM,4,2           ; @ENETC_PM0_MAXFRM
	.comm	_ENETC_RX_MAXFRM_SIZE,4,2       ; @ENETC_RX_MAXFRM_SIZE
	.comm	_ENETC_MAC_MAXFRM_SIZE,4,2      ; @ENETC_MAC_MAXFRM_SIZE
	.comm	_ENETC_PTXMBAR,4,2              ; @ENETC_PTXMBAR
	.comm	_ENETC_PM0_CMD_CFG,4,2          ; @ENETC_PM0_CMD_CFG
	.comm	_ENETC_PM0_CMD_PHY_TX_EN,4,2    ; @ENETC_PM0_CMD_PHY_TX_EN
	.comm	_ENETC_PM0_CMD_TXP,4,2          ; @ENETC_PM0_CMD_TXP
	.comm	_ENETC_PM0_PROMISC,4,2          ; @ENETC_PM0_PROMISC
	.comm	_ENETC_PM0_TX_EN,4,2            ; @ENETC_PM0_TX_EN
	.comm	_ENETC_PM0_RX_EN,4,2            ; @ENETC_PM0_RX_EN
	.comm	_ENETC_PM1_CMD_CFG,4,2          ; @ENETC_PM1_CMD_CFG
	.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_RGAUTO,4,2       ; @ENETC_PM0_IFM_RGAUTO
	.comm	_ENETC_G_EPFBLPR1_XGMII,8,3     ; @ENETC_G_EPFBLPR1_XGMII
	.comm	_ENETC_PM0_IFM_XGMII,4,2        ; @ENETC_PM0_IFM_XGMII
	.no_dead_strip	_enetc_configure_port_mac
.subsections_via_symbols
