	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_link_status_check
_ionic_link_status_check:               ## @ionic_link_status_check
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	movq	_IONIC_PORT_OPER_STATUS_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%ebx, %ebx
	cmpq	%r13, %r12
	sete	%bl
	movq	%r14, %rdi
	callq	_netif_carrier_ok
	cmpl	%ebx, %eax
	je	LBB0_6
## %bb.1:
	cmpq	%r13, %r12
	jne	LBB0_4
## %bb.2:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	cltq
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_netdev_info
	movq	_IONIC_LIF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	8(%r15), %rdi
	callq	_netif_tx_wake_all_queues
	movq	%r14, %rdi
	callq	_netif_carrier_on
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	_IONIC_LIF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_tx_stop_all_queues
LBB0_6:
	movq	_IONIC_LIF_LINK_CHECK_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IONIC_PORT_OPER_STATUS_UP,8,3  ## @IONIC_PORT_OPER_STATUS_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link up - %d Gbps\n"

	.comm	_IONIC_LIF_UP,4,2               ## @IONIC_LIF_UP
L_.str.1:                               ## @.str.1
	.asciz	"Link down\n"

	.comm	_IONIC_LIF_LINK_CHECK_REQUESTED,4,2 ## @IONIC_LIF_LINK_CHECK_REQUESTED
	.no_dead_strip	_ionic_link_status_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_link_status_check
_ionic_link_status_check:               ; @ionic_link_status_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	x20, x8, [x0, #8]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _IONIC_PORT_OPER_STATUS_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IONIC_PORT_OPER_STATUS_UP@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cmp	x0, x22
	cset	w23, eq
	mov	x0, x20
	bl	_netif_carrier_ok
	cmp	w0, w23
	b.eq	LBB0_6
; %bb.1:
	cmp	x21, x22
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
Lloh5:
	adrp	x8, _IONIC_LIF_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IONIC_LIF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_netif_tx_wake_all_queues
	mov	x0, x20
	bl	_netif_carrier_on
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	mov	x0, x20
	bl	_netif_carrier_off
Lloh10:
	adrp	x8, _IONIC_LIF_UP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IONIC_LIF_UP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_netif_tx_stop_all_queues
LBB0_6:
Lloh13:
	adrp	x8, _IONIC_LIF_LINK_CHECK_REQUESTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IONIC_LIF_LINK_CHECK_REQUESTED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IONIC_PORT_OPER_STATUS_UP,8,3  ; @IONIC_PORT_OPER_STATUS_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link up - %d Gbps\n"

	.comm	_IONIC_LIF_UP,4,2               ; @IONIC_LIF_UP
l_.str.1:                               ; @.str.1
	.asciz	"Link down\n"

	.comm	_IONIC_LIF_LINK_CHECK_REQUESTED,4,2 ; @IONIC_LIF_LINK_CHECK_REQUESTED
	.no_dead_strip	_ionic_link_status_check
.subsections_via_symbols
