	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_link
_s2io_link:                             ## @s2io_link
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	24(%rbx), %r15
	movq	16(%rbx), %r12
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_init_tti
	movq	_LINK_DOWN@GOTPCREL(%rip), %rax
	movq	_ERR_DBG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r15), %edx
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rsi
	callq	_DBG_PRINT
	movq	%rbx, %rdi
	callq	_s2io_stop_all_tx_queue
	movq	%r15, %rdi
	callq	_netif_carrier_off
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	8(%rbx), %rax
	movq	%rax, 24(%r12)
LBB0_4:
	incq	16(%r12)
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	callq	_DBG_PRINT
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.6:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	8(%rbx), %rax
	movq	%rax, 8(%r12)
LBB0_7:
	incq	(%r12)
	movq	%r15, %rdi
	callq	_netif_carrier_on
	movq	%rbx, %rdi
	callq	_s2io_wake_all_tx_queue
LBB0_8:
	movl	%r14d, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_DOWN,4,2                  ## @LINK_DOWN
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Link down\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"%s: Link Up\n"

	.no_dead_strip	_s2io_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_link
_s2io_link:                             ; @s2io_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	cmp	w8, w1
	b.eq	LBB0_8
; %bb.1:
	ldp	x23, x21, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_init_tti
Lloh2:
	adrp	x8, _LINK_DOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LINK_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ERR_DBG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ERR_DBG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	ldr	w2, [x21]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.2:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
	mov	x0, x19
	bl	_s2io_stop_all_tx_queue
	mov	x0, x21
	bl	_netif_carrier_off
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [x23, #24]
LBB0_4:
	ldr	x8, [x23, #16]
	add	x8, x8, #1
	str	x8, [x23, #16]
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DBG_PRINT
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x22]
	ldr	x9, [x19, #8]
	sub	x8, x8, x9
	str	x8, [x23, #8]
LBB0_7:
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	mov	x0, x21
	bl	_netif_carrier_on
	mov	x0, x19
	bl	_s2io_wake_all_tx_queue
LBB0_8:
	str	w20, [x19]
	ldr	x8, [x22]
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_DOWN,4,2                  ; @LINK_DOWN
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Link down\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"%s: Link Up\n"

	.no_dead_strip	_s2io_link
.subsections_via_symbols
