	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_get_link_status            ## -- Begin function ice_get_link_status
	.p2align	4, 0x90
_ice_get_link_status:                   ## @ice_get_link_status
	.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_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rdi)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movq	_ICE_DBG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	callq	_ice_debug
	movl	%r12d, %r15d
LBB0_6:
	movq	_ICE_AQ_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_2:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ICE_DBG_LINK,4,2               ## @ICE_DBG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get link status error, status = %d\n"

	.comm	_ICE_AQ_LINK_UP,4,2             ## @ICE_AQ_LINK_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ice_get_link_status            ; -- Begin function ice_get_link_status
	.p2align	2
_ice_get_link_status:                   ; @ice_get_link_status
	.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_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_ice_update_link_info
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _ICE_DBG_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_DBG_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_ice_debug
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_8
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _ICE_AQ_LINK_UP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ICE_AQ_LINK_UP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19]
LBB0_8:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ICE_DBG_LINK,4,2               ; @ICE_DBG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get link status error, status = %d\n"

	.comm	_ICE_AQ_LINK_UP,4,2             ; @ICE_AQ_LINK_UP
.subsections_via_symbols
