	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_check_media_subtask
_ice_check_media_subtask:               ## @ice_check_media_subtask
	.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
	movq	%rdi, %r14
	callq	_ice_get_main_vsi
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_ICE_FLAG_NO_MEDIA@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	___ICE_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %r15
	movq	%r15, %rdi
	callq	_ice_update_link_info
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ICE_AQ_MEDIA_AVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ice_force_phys_link_state
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movl	(%r12), %edi
	movl	(%r14), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_FLAG_NO_MEDIA,4,2          ## @ICE_FLAG_NO_MEDIA
	.comm	___ICE_DOWN,4,2                 ## @__ICE_DOWN
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ## @ICE_AQ_MEDIA_AVAILABLE
	.no_dead_strip	_ice_check_media_subtask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_check_media_subtask
_ice_check_media_subtask:               ; @ice_check_media_subtask
	.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
	mov	x19, x0
	bl	_ice_get_main_vsi
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x22, _ICE_FLAG_NO_MEDIA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ICE_FLAG_NO_MEDIA@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, ___ICE_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___ICE_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	x21, [x20]
	mov	x0, x21
	bl	_ice_update_link_info
	cbz	w0, LBB0_5
LBB0_4:
	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_5:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ICE_AQ_MEDIA_AVAILABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.6:
	mov	x0, x20
	mov	w1, #1
	bl	_ice_force_phys_link_state
	cbnz	w0, LBB0_4
; %bb.7:
	ldr	w0, [x22]
	ldr	w1, [x19]
	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
	b	_clear_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_FLAG_NO_MEDIA,4,2          ; @ICE_FLAG_NO_MEDIA
	.comm	___ICE_DOWN,4,2                 ; @__ICE_DOWN
	.comm	_ICE_AQ_MEDIA_AVAILABLE,4,2     ; @ICE_AQ_MEDIA_AVAILABLE
	.no_dead_strip	_ice_check_media_subtask
.subsections_via_symbols
