	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_mac_disable                 ## -- Begin function t3_mac_disable
	.p2align	4, 0x90
_t3_mac_disable:                        ## @t3_mac_disable
	.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, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_MAC_DIRECTION_TX@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_A_XGM_TX_CTRL@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	$0, 16(%r15)
LBB0_2:
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_F_MAC_RESET_@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r15), %rsi
	movq	8(%r15), %rdi
	movq	_A_XGM_RESET_CTRL@GOTPCREL(%rip), %r12
	addq	(%r12), %rsi
	movq	_F_PCS_RESET_@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_t3_set_reg_field
	movl	$100, %edi
	callq	_msleep
	movq	_A_XGM_RX_CTRL@GOTPCREL(%rip), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_t3_write_reg
	movq	%r14, %rdi
	callq	_is_10G
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %edx
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_uses_xaui
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_F_XG2G_RESET_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	jmp	LBB0_8
LBB0_7:
	movq	_F_RGMII_RESET_@GOTPCREL(%rip), %rax
	movq	_F_XG2G_RESET_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
LBB0_8:
	orl	%ebx, %edx
	movq	(%r15), %rsi
	movq	8(%r15), %rdi
	addq	(%r12), %rsi
	callq	_t3_write_reg
LBB0_9:
	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_XGM_TX_CTRL,8,3              ## @A_XGM_TX_CTRL
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_F_MAC_RESET_,4,2               ## @F_MAC_RESET_
	.comm	_A_XGM_RESET_CTRL,8,3           ## @A_XGM_RESET_CTRL
	.comm	_F_PCS_RESET_,4,2               ## @F_PCS_RESET_
	.comm	_A_XGM_RX_CTRL,8,3              ## @A_XGM_RX_CTRL
	.comm	_F_XG2G_RESET_,4,2              ## @F_XG2G_RESET_
	.comm	_F_RGMII_RESET_,4,2             ## @F_RGMII_RESET_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_mac_disable                 ; -- Begin function t3_mac_disable
	.p2align	2
_t3_mac_disable:                        ; @t3_mac_disable
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _MAC_DIRECTION_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_DIRECTION_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _A_XGM_TX_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_XGM_TX_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	mov	w2, #0
	bl	_t3_write_reg
	str	xzr, [x19, #16]
LBB0_2:
Lloh6:
	adrp	x8, _MAC_DIRECTION_RX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_DIRECTION_RX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _F_MAC_RESET_@GOTPAGE
Lloh10:
	ldr	x8, [x8, _F_MAC_RESET_@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x22, _A_XGM_RESET_CTRL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _A_XGM_RESET_CTRL@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	x9, x0, [x19]
	add	x1, x9, x8
Lloh14:
	adrp	x23, _F_PCS_RESET_@GOTPAGE
Lloh15:
	ldr	x23, [x23, _F_PCS_RESET_@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_t3_set_reg_field
	mov	w0, #100
	bl	_msleep
Lloh16:
	adrp	x8, _A_XGM_RX_CTRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _A_XGM_RX_CTRL@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x1, x9, x8
	mov	x0, x20
	mov	w2, #0
	bl	_t3_write_reg
	mov	x0, x20
	bl	_is_10G
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x23]
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_uses_xaui
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x23]
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _F_RGMII_RESET_@GOTPAGE
Lloh20:
	ldr	x8, [x8, _F_RGMII_RESET_@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
LBB0_8:
Lloh22:
	adrp	x9, _F_XG2G_RESET_@GOTPAGE
Lloh23:
	ldr	x9, [x9, _F_XG2G_RESET_@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_9:
	orr	w2, w8, w21
	ldr	x8, [x22]
	ldp	x9, x0, [x19]
	add	x1, x9, x8
	bl	_t3_write_reg
LBB0_10:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_DIRECTION_TX,4,2           ; @MAC_DIRECTION_TX
	.comm	_A_XGM_TX_CTRL,8,3              ; @A_XGM_TX_CTRL
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_F_MAC_RESET_,4,2               ; @F_MAC_RESET_
	.comm	_A_XGM_RESET_CTRL,8,3           ; @A_XGM_RESET_CTRL
	.comm	_F_PCS_RESET_,4,2               ; @F_PCS_RESET_
	.comm	_A_XGM_RX_CTRL,8,3              ; @A_XGM_RX_CTRL
	.comm	_F_XG2G_RESET_,4,2              ; @F_XG2G_RESET_
	.comm	_F_RGMII_RESET_,4,2             ; @F_RGMII_RESET_
.subsections_via_symbols
