	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_restart_aneg                ## -- Begin function t4_restart_aneg
	.p2align	4, 0x90
_t4_restart_aneg:                       ## @t4_restart_aneg
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %r13d
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_FW_PORT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %ebx
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_FW_CMD_EXEC_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_FW_PORT_CMD_PORTID_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -48(%rbp)
	movq	_FW_CAPS16@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r13d
	jne	LBB0_1
## %bb.2:
	movq	_FW_PORT_ACTION_L1_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FW_PORT_ACTION_L1_CFG32@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_FW_PORT_CMD_ACTION_V
	movl	%eax, %ebx
	movups	-72(%rbp), %xmm0
	movups	-56(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	cmpl	(%r12), %r13d
	jne	LBB0_5
## %bb.4:
	movq	_FW_PORT_CAP_ANEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	jmp	LBB0_6
LBB0_5:
	movq	_FW_PORT_CAP32_ANEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, -72(%rbp)
LBB0_6:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_t4_wr_mbox
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PORT_CMD,4,2                ## @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_EXEC_F,4,2              ## @FW_CMD_EXEC_F
	.comm	_FW_CAPS16,4,2                  ## @FW_CAPS16
	.comm	_FW_PORT_ACTION_L1_CFG,4,2      ## @FW_PORT_ACTION_L1_CFG
	.comm	_FW_PORT_ACTION_L1_CFG32,4,2    ## @FW_PORT_ACTION_L1_CFG32
	.comm	_FW_PORT_CAP_ANEG,4,2           ## @FW_PORT_CAP_ANEG
	.comm	_FW_PORT_CAP32_ANEG,4,2         ## @FW_PORT_CAP32_ANEG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_restart_aneg                ; -- Begin function t4_restart_aneg
	.p2align	2
_t4_restart_aneg:                       ; @t4_restart_aneg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x0]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _FW_PORT_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_PORT_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh3:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _FW_CMD_EXEC_F@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_CMD_EXEC_F@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w23, w8, w9
	mov	x0, x21
	bl	_FW_PORT_CMD_PORTID_V
	orr	w0, w23, w0
	bl	_cpu_to_be32
	str	x0, [sp, #56]
Lloh9:
	adrp	x23, _FW_CAPS16@GOTPAGE
Lloh10:
	ldr	x23, [x23, _FW_CAPS16@GOTPAGEOFF]
Lloh11:
	adrp	x8, _FW_PORT_ACTION_L1_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FW_PORT_ACTION_L1_CFG@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh13:
	adrp	x10, _FW_PORT_ACTION_L1_CFG32@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FW_PORT_ACTION_L1_CFG32@GOTPAGEOFF]
	cmp	w22, w9
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_FW_PORT_CMD_ACTION_V
	mov	x21, x0
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_FW_LEN16
	orr	w0, w0, w21
	bl	_cpu_to_be32
	str	x0, [sp, #48]
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _FW_PORT_CAP_ANEG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FW_PORT_CAP_ANEG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _FW_PORT_CAP32_ANEG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FW_PORT_CAP32_ANEG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [sp, #32]
LBB0_3:
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x19
	mov	w3, #32
	mov	x4, #0
	bl	_t4_wr_mbox
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PORT_CMD,4,2                ; @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_EXEC_F,4,2              ; @FW_CMD_EXEC_F
	.comm	_FW_CAPS16,4,2                  ; @FW_CAPS16
	.comm	_FW_PORT_ACTION_L1_CFG,4,2      ; @FW_PORT_ACTION_L1_CFG
	.comm	_FW_PORT_ACTION_L1_CFG32,4,2    ; @FW_PORT_ACTION_L1_CFG32
	.comm	_FW_PORT_CAP_ANEG,4,2           ; @FW_PORT_CAP_ANEG
	.comm	_FW_PORT_CAP32_ANEG,4,2         ; @FW_PORT_CAP32_ANEG
.subsections_via_symbols
