	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_link_l1cfg_core             ## -- Begin function t4_link_l1cfg_core
	.p2align	4, 0x90
_t4_link_l1cfg_core:                    ## @t4_link_l1cfg_core
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r12
	movl	4(%rdi), %r13d
	movq	_FW_PORT_CAP32_ANEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	8(%rcx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rcx, %rdx
	callq	_t4_link_acaps
	movl	%eax, %r15d
	leaq	-88(%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	%r14d, %edi
	callq	_FW_PORT_CMD_PORTID_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -64(%rbp)
	movq	_FW_CAPS16@GOTPCREL(%rip), %r14
	cmpl	(%r14), %r13d
	jne	LBB0_4
## %bb.5:
	movq	_FW_PORT_ACTION_L1_CFG@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_FW_PORT_ACTION_L1_CFG32@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	callq	_FW_PORT_CMD_ACTION_V
	movl	%eax, %ebx
	movups	-88(%rbp), %xmm0
	movups	-72(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -72(%rbp)
	cmpl	(%r14), %r13d
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	callq	_fwcaps32_to_caps16
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, -80(%rbp)
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, -88(%rbp)
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	xorl	%r14d, %r14d
	leaq	-88(%rbp), %rdx
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	$32, %ecx
	xorl	%r8d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_t4_wr_mbox_meat_timeout
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	(%r12), %edi
	movl	%eax, %ecx
	negl	%ecx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movl	%ebx, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_PORT_CAP32_ANEG,4,2         ## @FW_PORT_CAP32_ANEG
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested Port Capabilities %#x rejected, error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_link_l1cfg_core             ; -- Begin function t4_link_l1cfg_core
	.p2align	2
_t4_link_l1cfg_core:                    ; @t4_link_l1cfg_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x21, x4
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w25, [x0, #4]
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _FW_PORT_CAP32_ANEG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FW_PORT_CAP32_ANEG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x3, #8]
Lloh3:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_3:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x3
	bl	_t4_link_acaps
	mov	x23, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh9:
	adrp	x8, _FW_PORT_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_PORT_CMD@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh12:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh15:
	adrp	x9, _FW_CMD_EXEC_F@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FW_CMD_EXEC_F@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w26, w8, w9
	mov	x0, x24
	bl	_FW_PORT_CMD_PORTID_V
	orr	w0, w26, w0
	bl	_cpu_to_be32
	str	x0, [sp, #56]
Lloh18:
	adrp	x26, _FW_CAPS16@GOTPAGE
Lloh19:
	ldr	x26, [x26, _FW_CAPS16@GOTPAGEOFF]
Lloh20:
	adrp	x8, _FW_PORT_ACTION_L1_CFG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FW_PORT_ACTION_L1_CFG@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh22:
	adrp	x10, _FW_PORT_ACTION_L1_CFG32@GOTPAGE
Lloh23:
	ldr	x10, [x10, _FW_PORT_ACTION_L1_CFG32@GOTPAGEOFF]
	cmp	w25, w9
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_FW_PORT_CMD_ACTION_V
	mov	x24, x0
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_FW_LEN16
	orr	w0, w0, w24
	bl	_cpu_to_be32
	str	x0, [sp, #48]
	ldr	w8, [x26]
	mov	x0, x23
	cmp	w25, w8
	b.ne	LBB0_5
; %bb.4:
	bl	_fwcaps32_to_caps16
	bl	_cpu_to_be32
	str	x0, [sp, #40]
	b	LBB0_6
LBB0_5:
	bl	_cpu_to_be32
	str	x0, [sp, #32]
LBB0_6:
	add	x2, sp, #32
	mov	x0, x19
	mov	x1, x22
	mov	w3, #32
	mov	x4, #0
	mov	x5, x21
	mov	x6, x20
	bl	_t4_wr_mbox_meat_timeout
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	neg	w3, w20
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_PORT_CAP32_ANEG,4,2         ; @FW_PORT_CAP32_ANEG
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested Port Capabilities %#x rejected, error %d\n"

.subsections_via_symbols
