	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_init_portinfo               ## -- Begin function t4_init_portinfo
	.p2align	4, 0x90
_t4_init_portinfo:                      ## @t4_init_portinfo
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -144(%rbp)                 ## 8-byte Spill
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	48(%rdi), %rbx
	movl	(%rbx), %r13d
	movq	$0, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	_FW_CAPS_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_5
## %bb.1:
	movl	%r14d, %r12d
	movq	_FW_PARAMS_MNEM_PFVF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_MNEM_V
	movl	%eax, %r14d
	movq	_FW_PARAMS_PARAM_PFVF_PORT_CAPS32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_PARAMS_PARAM_X_V
	orl	%r14d, %eax
	movl	%eax, -136(%rbp)
	movl	$1, -52(%rbp)
	subq	$8, %rsp
	leaq	-52(%rbp), %rax
	leaq	-136(%rbp), %r9
	movq	%rbx, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	pushq	%rax
	callq	_t4_set_params
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_FW_CAPS32@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_FW_CAPS16@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movl	%r13d, (%rbx)
	movl	%r12d, %r14d
LBB0_5:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	-136(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %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_READ_F@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_FW_PORT_CMD_PORTID_V
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -104(%rbp)
	movq	_FW_CAPS16@GOTPCREL(%rip), %r14
	cmpl	(%r14), %r13d
	jne	LBB0_6
## %bb.7:
	movq	_FW_PORT_ACTION_GET_PORT_INFO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_FW_PORT_ACTION_GET_PORT_INFO32@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_FW_PORT_CMD_ACTION_V
	movl	%eax, %ebx
	subq	$48, %rsp
	movq	-104(%rbp), %rax
	movq	%rax, 32(%rsp)
	movups	-136(%rbp), %xmm0
	movups	-120(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	addq	$48, %rsp
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -112(%rbp)
	movq	48(%r15), %rdi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	$40, %ecx
	movq	%r12, %r8
	callq	_t4_wr_mbox
	testl	%eax, %eax
	jne	LBB0_23
## %bb.9:
	cmpl	(%r14), %r13d
	jne	LBB0_14
## %bb.10:
	movl	-116(%rbp), %edi
	callq	_be32_to_cpu
	movq	%rax, %r12
	movl	%r12d, %edi
	callq	_FW_PORT_CMD_PTYPE_G
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FW_PORT_CMD_MDIOCAP_F@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.12:
	movl	%r12d, %edi
	callq	_FW_PORT_CMD_MDIOADDR_G
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_14:
	movl	-128(%rbp), %edi
	callq	_be32_to_cpu
	movq	%rax, %r12
	movl	%r12d, %edi
	callq	_FW_PORT_CMD_PORTTYPE32_G
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FW_PORT_CMD_MDIOCAP32_F@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_15
## %bb.16:
	movl	%r12d, %edi
	callq	_FW_PORT_CMD_MDIOADDR32_G
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
LBB0_11:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_13:
	movl	-120(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_fwcaps16_to_caps32
	movq	%rax, %r13
	movl	-124(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_fwcaps16_to_caps32
	jmp	LBB0_18
LBB0_15:
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_17:
	movl	-132(%rbp), %edi
	callq	_be32_to_cpu
	movq	%rax, %r13
	movl	-136(%rbp), %edi
	callq	_be32_to_cpu
LBB0_18:
	movq	%rax, %r12
	movq	48(%r15), %rdi
	leaq	-88(%rbp), %rax
	leaq	-96(%rbp), %r11
	leaq	-52(%rbp), %r10
	movl	%ebx, %esi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	$1, %r9d
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	-144(%rbp)                      ## 8-byte Folded Reload
	callq	_t4_alloc_vi
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_23
## %bb.19:
	movl	%eax, (%r15)
	movl	%ebx, 4(%r15)
	movl	%ebx, 8(%r15)
	movl	-52(%rbp), %eax
	movl	%eax, 12(%r15)
	movq	48(%r15), %rdi
	movl	%ebx, %esi
	callq	_t4_get_tp_e2c_map
	movl	%eax, 56(%r15)
	cmpq	$0, 8(%r14)
	je	LBB0_21
## %bb.20:
	movq	-96(%rbp), %rax
	movq	%rax, 40(%r15)
	movq	-88(%rbp), %rax
	jmp	LBB0_22
LBB0_21:
	movl	(%r15), %edi
	callq	_FW_VIID_VIVLD_G
	movq	%rax, 40(%r15)
	movl	(%r15), %edi
	callq	_FW_VIID_VIN_G
LBB0_22:
	movq	%r13, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, 32(%r15)
	movl	%ecx, 16(%r15)
	movl	%edi, 20(%r15)
	movq	_FW_PORT_MOD_TYPE_NA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_init_link_config
	xorl	%eax, %eax
LBB0_23:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CAPS_UNKNOWN,4,2            ## @FW_CAPS_UNKNOWN
	.comm	_FW_PARAMS_MNEM_PFVF,4,2        ## @FW_PARAMS_MNEM_PFVF
	.comm	_FW_PARAMS_PARAM_PFVF_PORT_CAPS32,4,2 ## @FW_PARAMS_PARAM_PFVF_PORT_CAPS32
	.comm	_FW_CAPS32,4,2                  ## @FW_CAPS32
	.comm	_FW_CAPS16,4,2                  ## @FW_CAPS16
	.comm	_FW_PORT_CMD,4,2                ## @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ## @FW_CMD_READ_F
	.comm	_FW_PORT_ACTION_GET_PORT_INFO,4,2 ## @FW_PORT_ACTION_GET_PORT_INFO
	.comm	_FW_PORT_ACTION_GET_PORT_INFO32,4,2 ## @FW_PORT_ACTION_GET_PORT_INFO32
	.comm	_FW_PORT_CMD_MDIOCAP_F,4,2      ## @FW_PORT_CMD_MDIOCAP_F
	.comm	_FW_PORT_CMD_MDIOCAP32_F,4,2    ## @FW_PORT_CMD_MDIOCAP32_F
	.comm	_FW_PORT_MOD_TYPE_NA,4,2        ## @FW_PORT_MOD_TYPE_NA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_init_portinfo               ; -- Begin function t4_init_portinfo
	.p2align	2
_t4_init_portinfo:                      ; @t4_init_portinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x20, [x0, #48]
	ldr	w28, [x20]
	stp	xzr, xzr, [sp, #72]
Lloh0:
	adrp	x8, _FW_CAPS_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CAPS_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x27, _FW_CAPS16@GOTPAGE
Lloh4:
	ldr	x27, [x27, _FW_CAPS16@GOTPAGEOFF]
	cmp	w28, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _FW_PARAMS_MNEM_PFVF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FW_PARAMS_MNEM_PFVF@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_FW_PARAMS_MNEM_V
	mov	x26, x0
Lloh8:
	adrp	x8, _FW_PARAMS_PARAM_PFVF_PORT_CAPS32@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FW_PARAMS_PARAM_PFVF_PORT_CAPS32@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_FW_PARAMS_PARAM_X_V
	orr	w8, w0, w26
	str	w8, [sp, #88]
	mov	w8, #1
	str	w8, [sp, #32]
	add	x5, sp, #88
	add	x6, sp, #32
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	w4, #1
	bl	_t4_set_params
Lloh11:
	adrp	x8, _FW_CAPS32@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FW_CAPS32@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x27, eq
	ldr	w28, [x8]
	str	w28, [x20]
LBB0_2:
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh13:
	adrp	x8, _FW_PORT_CMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FW_PORT_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh16:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh19:
	adrp	x9, _FW_CMD_READ_F@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FW_CMD_READ_F@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w26, w8, w9
	mov	x0, x21
	bl	_FW_PORT_CMD_PORTID_V
	orr	w0, w26, w0
	bl	_cpu_to_be32
	str	x0, [sp, #120]
Lloh22:
	adrp	x8, _FW_PORT_ACTION_GET_PORT_INFO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FW_PORT_ACTION_GET_PORT_INFO@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh24:
	adrp	x10, _FW_PORT_ACTION_GET_PORT_INFO32@GOTPAGE
Lloh25:
	ldr	x10, [x10, _FW_PORT_ACTION_GET_PORT_INFO32@GOTPAGEOFF]
	cmp	w28, w9
	csel	x8, x8, x10, eq
	ldr	w0, [x8]
	bl	_FW_PORT_CMD_ACTION_V
	mov	x26, x0
	ldur	q0, [sp, #88]
	ldur	q1, [sp, #104]
	stp	q0, q1, [sp, #32]
	ldr	x8, [sp, #120]
	str	x8, [sp, #64]
	add	x0, sp, #32
	bl	_FW_LEN16
	orr	w0, w0, w26
	bl	_cpu_to_be32
	str	x0, [sp, #112]
	ldr	x0, [x19, #48]
	add	x2, sp, #88
	add	x4, sp, #88
	mov	x1, x25
	mov	w3, #40
	bl	_t4_wr_mbox
	cbnz	w0, LBB0_17
; %bb.3:
	ldr	w8, [x27]
	cmp	w28, w8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [sp, #108]
	bl	_be32_to_cpu
	mov	x26, x0
	bl	_FW_PORT_CMD_PTYPE_G
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh26:
	adrp	x8, _FW_PORT_CMD_MDIOCAP_F@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FW_PORT_CMD_MDIOCAP_F@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_8
; %bb.5:
	mov	x0, x26
	bl	_FW_PORT_CMD_MDIOADDR_G
	mov	x27, x0
	b	LBB0_9
LBB0_6:
	ldr	w0, [sp, #96]
	bl	_be32_to_cpu
	mov	x26, x0
	bl	_FW_PORT_CMD_PORTTYPE32_G
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh29:
	adrp	x8, _FW_PORT_CMD_MDIOCAP32_F@GOTPAGE
Lloh30:
	ldr	x8, [x8, _FW_PORT_CMD_MDIOCAP32_F@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x26
	bl	_FW_PORT_CMD_MDIOADDR32_G
	mov	x27, x0
	b	LBB0_11
LBB0_8:
	mov	w27, #-1
LBB0_9:
	ldr	w0, [sp, #104]
	bl	_be16_to_cpu
	bl	_fwcaps16_to_caps32
	mov	x28, x0
	ldr	w0, [sp, #100]
	bl	_be16_to_cpu
	bl	_fwcaps16_to_caps32
	b	LBB0_12
LBB0_10:
	mov	w27, #-1
LBB0_11:
	ldr	w0, [sp, #92]
	bl	_be32_to_cpu
	mov	x28, x0
	ldr	w0, [sp, #88]
	bl	_be32_to_cpu
LBB0_12:
	mov	x26, x0
	ldr	x0, [x19, #48]
	add	x8, sp, #72
	add	x9, sp, #80
	stp	x9, x8, [sp]
	add	x7, sp, #32
	mov	x1, x25
	mov	x2, x21
	mov	x3, x24
	mov	x4, x23
	mov	w5, #1
	mov	x6, x22
	bl	_t4_alloc_vi
	tbnz	w0, #31, LBB0_17
; %bb.13:
	stp	w0, w21, [x19]
	ldr	w8, [sp, #32]
	stp	w21, w8, [x19, #8]
	ldr	x0, [x19, #48]
	mov	x1, x21
	bl	_t4_get_tp_e2c_map
	str	w0, [x19, #56]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_15
; %bb.14:
	ldp	x0, x8, [sp, #72]
	str	x8, [x19, #40]
	b	LBB0_16
LBB0_15:
	ldr	w0, [x19]
	bl	_FW_VIID_VIVLD_G
	str	x0, [x19, #40]
	ldr	w0, [x19]
	bl	_FW_VIID_VIN_G
LBB0_16:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	x0, [x19, #32]
	stp	w8, w27, [x19, #16]
Lloh32:
	adrp	x8, _FW_PORT_MOD_TYPE_NA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FW_PORT_MOD_TYPE_NA@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	add	x0, x19, #24
	mov	x1, x28
	mov	x2, x26
	bl	_init_link_config
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CAPS_UNKNOWN,4,2            ; @FW_CAPS_UNKNOWN
	.comm	_FW_PARAMS_MNEM_PFVF,4,2        ; @FW_PARAMS_MNEM_PFVF
	.comm	_FW_PARAMS_PARAM_PFVF_PORT_CAPS32,4,2 ; @FW_PARAMS_PARAM_PFVF_PORT_CAPS32
	.comm	_FW_CAPS32,4,2                  ; @FW_CAPS32
	.comm	_FW_CAPS16,4,2                  ; @FW_CAPS16
	.comm	_FW_PORT_CMD,4,2                ; @FW_PORT_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_READ_F,4,2              ; @FW_CMD_READ_F
	.comm	_FW_PORT_ACTION_GET_PORT_INFO,4,2 ; @FW_PORT_ACTION_GET_PORT_INFO
	.comm	_FW_PORT_ACTION_GET_PORT_INFO32,4,2 ; @FW_PORT_ACTION_GET_PORT_INFO32
	.comm	_FW_PORT_CMD_MDIOCAP_F,4,2      ; @FW_PORT_CMD_MDIOCAP_F
	.comm	_FW_PORT_CMD_MDIOCAP32_F,4,2    ; @FW_PORT_CMD_MDIOCAP32_F
	.comm	_FW_PORT_MOD_TYPE_NA,4,2        ; @FW_PORT_MOD_TYPE_NA
.subsections_via_symbols
