	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_update_link_info           ## -- Begin function ice_update_link_info
	.p2align	4, 0x90
_ice_update_link_info:                  ## @ice_update_link_info
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ice_aq_get_link_info
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_ICE_AQ_MEDIA_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, %ebx
	testl	%eax, 8(%r15)
	je	LBB0_9
## %bb.3:
	movq	(%r15), %r14
	movq	%r14, %rdi
	callq	_ice_hw_to_dev
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r12
	movq	_ICE_AQC_REPORT_TOPO_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_ice_aq_get_phy_caps
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	movq	%r14, %rdi
	callq	_ice_hw_to_dev
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_devm_kfree
	jmp	LBB0_9
LBB0_7:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ICE_ERR_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ## @ICE_AQ_MEDIA_AVAILABLE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ## @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ## @ICE_AQC_REPORT_TOPO_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_update_link_info           ; -- Begin function ice_update_link_info
	.p2align	2
_ice_update_link_info:                  ; @ice_update_link_info
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w1, #1
	mov	x2, #0
	mov	x3, #0
	bl	_ice_aq_get_link_info
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	ldr	x20, [x19]
	mov	x0, x20
	bl	_ice_hw_to_dev
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
Lloh6:
	adrp	x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_AQC_REPORT_TOPO_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	mov	x4, #0
	bl	_ice_aq_get_phy_caps
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
	mov	x1, x22
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	mov	x0, x20
	bl	_ice_hw_to_dev
	mov	x1, x22
	bl	_devm_kfree
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w21, #0
	b	LBB0_9
LBB0_11:
Lloh11:
	adrp	x8, _ICE_ERR_NO_MEMORY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICE_ERR_NO_MEMORY@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ; @ICE_AQ_MEDIA_AVAILABLE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ICE_ERR_NO_MEMORY,4,2          ; @ICE_ERR_NO_MEMORY
	.comm	_ICE_AQC_REPORT_TOPO_CAP,4,2    ; @ICE_AQC_REPORT_TOPO_CAP
.subsections_via_symbols
