	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_mac_enable                  ## -- Begin function t3_mac_enable
	.p2align	4, 0x90
_t3_mac_enable:                         ## @t3_mac_enable
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_macidx
	movl	%eax, %r13d
	movq	72(%rbx), %r12
	movl	(%rbx), %r14d
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_A_TP_PIO_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_A_TP_TX_DROP_CFG_CH0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%r13d, %edx
	movq	%r12, %rdi
	callq	_t3_write_reg
	movq	_A_TP_PIO_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	movq	_T3_REV_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$-989855999, %eax               ## imm = 0xC4FFFF01
	movl	$-1058151423, %edx              ## imm = 0xC0EDE401
	cmovel	%eax, %edx
	movq	%r12, %rdi
	callq	_t3_write_reg
	movq	_A_TP_PIO_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_A_TP_TX_DROP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_t3_write_reg
	movl	$1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movq	_A_TP_PIO_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	xorl	%ecx, %ecx
	movq	_T3_REV_C@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	cmovnel	%edx, %ecx
	movq	%r12, %rdi
	callq	_t3_set_reg_field
	movq	_A_XGM_TX_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	_F_TXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_t3_write_reg
	movq	_A_TP_PIO_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_A_TP_TX_DROP_CNT_CH0@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_t3_write_reg
	movl	68(%rbx), %eax
	movl	%eax, 52(%rbx)
	movq	_A_TP_PIO_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_t3_read_reg
	movl	%eax, %edi
	callq	_G_TXDROPCNTCH0RCVD
	movl	%eax, 48(%rbx)
	movq	_A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	callq	_t3_read_reg
	movl	%eax, %edi
	callq	_G_TXSPI4SOPCNT
	movq	%rax, 40(%rbx)
	movq	60(%rbx), %rax
	movq	%rax, 32(%rbx)
	movq	_A_XGM_RX_SPI4_SOP_EOP_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	callq	_t3_read_reg
	movl	%eax, %edi
	callq	_G_TXSPI4SOPCNT
	movq	%rax, 24(%rbx)
	movl	56(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	_F_TXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	$0, 8(%rbx)
LBB0_2:
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_A_XGM_RX_CTRL@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_F_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_t3_write_reg
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_DIRECTION_TX,4,2           ## @MAC_DIRECTION_TX
	.comm	_A_TP_PIO_ADDR,8,3              ## @A_TP_PIO_ADDR
	.comm	_A_TP_TX_DROP_CFG_CH0,4,2       ## @A_TP_TX_DROP_CFG_CH0
	.comm	_A_TP_PIO_DATA,8,3              ## @A_TP_PIO_DATA
	.comm	_T3_REV_C,8,3                   ## @T3_REV_C
	.comm	_A_TP_TX_DROP_MODE,4,2          ## @A_TP_TX_DROP_MODE
	.comm	_A_XGM_TX_CTRL,8,3              ## @A_XGM_TX_CTRL
	.comm	_F_TXEN,4,2                     ## @F_TXEN
	.comm	_A_TP_TX_DROP_CNT_CH0,4,2       ## @A_TP_TX_DROP_CNT_CH0
	.comm	_A_XGM_TX_SPI4_SOP_EOP_CNT,8,3  ## @A_XGM_TX_SPI4_SOP_EOP_CNT
	.comm	_A_XGM_RX_SPI4_SOP_EOP_CNT,8,3  ## @A_XGM_RX_SPI4_SOP_EOP_CNT
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_A_XGM_RX_CTRL,8,3              ## @A_XGM_RX_CTRL
	.comm	_F_RXEN,4,2                     ## @F_RXEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_mac_enable                  ; -- Begin function t3_mac_enable
	.p2align	2
_t3_mac_enable:                         ; @t3_mac_enable
	.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	x20, x1
	mov	x21, x0
	bl	_macidx
	ldr	x19, [x21, #72]
	ldr	w23, [x21]
Lloh0:
	adrp	x8, _MAC_DIRECTION_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh3:
	adrp	x26, _A_TP_PIO_ADDR@GOTPAGE
Lloh4:
	ldr	x26, [x26, _A_TP_PIO_ADDR@GOTPAGEOFF]
	ldr	x1, [x26]
Lloh5:
	adrp	x8, _A_TP_TX_DROP_CFG_CH0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _A_TP_TX_DROP_CFG_CH0@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w2, w8, w0
	mov	x0, x19
	bl	_t3_write_reg
Lloh8:
	adrp	x25, _A_TP_PIO_DATA@GOTPAGE
Lloh9:
	ldr	x25, [x25, _A_TP_PIO_DATA@GOTPAGEOFF]
	ldr	x1, [x25]
Lloh10:
	adrp	x24, _T3_REV_C@GOTPAGE
Lloh11:
	ldr	x24, [x24, _T3_REV_C@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	mov	w8, #58369
	movk	w8, #49389, lsl #16
	mov	w9, #65281
	movk	w9, #50431, lsl #16
	csel	w2, w9, w8, eq
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x1, [x26]
Lloh12:
	adrp	x8, _A_TP_TX_DROP_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _A_TP_TX_DROP_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x1, [x25]
	mov	w8, #1
	lsl	w2, w8, w22
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	csel	w3, wzr, w2, eq
	mov	x0, x19
	bl	_t3_set_reg_field
Lloh15:
	adrp	x8, _A_XGM_TX_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _A_XGM_TX_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	add	x1, x8, x23
Lloh18:
	adrp	x24, _F_TXEN@GOTPAGE
Lloh19:
	ldr	x24, [x24, _F_TXEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_t3_write_reg
	ldr	x1, [x26]
Lloh20:
	adrp	x8, _A_TP_TX_DROP_CNT_CH0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _A_TP_TX_DROP_CNT_CH0@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w2, w8, w22
	mov	x0, x19
	bl	_t3_write_reg
	ldr	w8, [x21, #68]
	str	w8, [x21, #52]
	ldr	x1, [x25]
	mov	x0, x19
	bl	_t3_read_reg
	bl	_G_TXDROPCNTCH0RCVD
	str	w0, [x21, #48]
Lloh23:
	adrp	x8, _A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _A_XGM_TX_SPI4_SOP_EOP_CNT@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x19
	bl	_t3_read_reg
	bl	_G_TXSPI4SOPCNT
	str	x0, [x21, #40]
	ldur	d0, [x21, #60]
	str	d0, [x21, #32]
Lloh26:
	adrp	x8, _A_XGM_RX_SPI4_SOP_EOP_CNT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _A_XGM_RX_SPI4_SOP_EOP_CNT@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x19
	bl	_t3_read_reg
	bl	_G_TXSPI4SOPCNT
	str	x0, [x21, #24]
	ldr	w8, [x21, #56]
	str	w8, [x21, #16]
	ldr	w8, [x24]
	str	w8, [x21, #4]
	str	xzr, [x21, #8]
LBB0_2:
Lloh29:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh32:
	adrp	x8, _A_XGM_RX_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _A_XGM_RX_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	add	x1, x8, x23
Lloh35:
	adrp	x8, _F_RXEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _F_RXEN@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_t3_write_reg
LBB0_4:
	mov	w0, #0
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
	.comm	_A_TP_PIO_ADDR,8,3              ; @A_TP_PIO_ADDR
	.comm	_A_TP_TX_DROP_CFG_CH0,4,2       ; @A_TP_TX_DROP_CFG_CH0
	.comm	_A_TP_PIO_DATA,8,3              ; @A_TP_PIO_DATA
	.comm	_T3_REV_C,8,3                   ; @T3_REV_C
	.comm	_A_TP_TX_DROP_MODE,4,2          ; @A_TP_TX_DROP_MODE
	.comm	_A_XGM_TX_CTRL,8,3              ; @A_XGM_TX_CTRL
	.comm	_F_TXEN,4,2                     ; @F_TXEN
	.comm	_A_TP_TX_DROP_CNT_CH0,4,2       ; @A_TP_TX_DROP_CNT_CH0
	.comm	_A_XGM_TX_SPI4_SOP_EOP_CNT,8,3  ; @A_XGM_TX_SPI4_SOP_EOP_CNT
	.comm	_A_XGM_RX_SPI4_SOP_EOP_CNT,8,3  ; @A_XGM_RX_SPI4_SOP_EOP_CNT
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_A_XGM_RX_CTRL,8,3              ; @A_XGM_RX_CTRL
	.comm	_F_RXEN,4,2                     ; @F_RXEN
.subsections_via_symbols
