	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_link_up
_skge_link_up:                          ## @skge_link_up
	.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, %rbx
	movl	20(%rdi), %edi
	movl	24(%rbx), %r14d
	movq	_LNK_LED_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SK_REG
	movq	_LED_BLK_OFF@GOTPCREL(%rip), %rcx
	movq	_LED_SYNC_OFF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_LED_REG_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_skge_write8
	movl	16(%rbx), %edi
	callq	_netif_carrier_on
	movl	16(%rbx), %edi
	callq	_netif_wake_queue
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rbx), %r15d
	movl	12(%rbx), %r12d
	movq	(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r13
	cmoveq	%rax, %r13
	movl	8(%rbx), %edi
	callq	_skge_pause
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	movq	%r13, %r9
	callq	_netif_info
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LNK_LED_REG,4,2                ## @LNK_LED_REG
	.comm	_LED_BLK_OFF,4,2                ## @LED_BLK_OFF
	.comm	_LED_SYNC_OFF,4,2               ## @LED_SYNC_OFF
	.comm	_LED_REG_ON,4,2                 ## @LED_REG_ON
	.comm	_link,4,2                       ## @link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link is up at %d Mbps, %s duplex, flow control %s\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
L_.str.1:                               ## @.str.1
	.asciz	"full"

L_.str.2:                               ## @.str.2
	.asciz	"half"

	.no_dead_strip	_skge_link_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_link_up
_skge_link_up:                          ; @skge_link_up
	.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	x19, x0
	ldp	w0, w20, [x0, #20]
Lloh0:
	adrp	x8, _LNK_LED_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LNK_LED_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SK_REG
	mov	x1, x0
Lloh3:
	adrp	x8, _LED_BLK_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LED_BLK_OFF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _LED_SYNC_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LED_SYNC_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _LED_REG_ON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LED_REG_ON@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_skge_write8
	ldr	w0, [x19, #16]
	bl	_netif_carrier_on
	ldr	w0, [x19, #16]
	bl	_netif_wake_queue
Lloh12:
	adrp	x8, _link@GOTPAGE
Lloh13:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldp	w23, w21, [x19, #12]
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, l_.str.2@PAGE
Lloh19:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh20:
	adrp	x11, l_.str.1@PAGE
Lloh21:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x22, x11, x10, eq
	ldr	w0, [x19, #8]
	bl	_skge_pause
	mov	x6, x0
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x23
	mov	x5, x22
	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
	b	_netif_info
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LNK_LED_REG,4,2                ; @LNK_LED_REG
	.comm	_LED_BLK_OFF,4,2                ; @LED_BLK_OFF
	.comm	_LED_SYNC_OFF,4,2               ; @LED_SYNC_OFF
	.comm	_LED_REG_ON,4,2                 ; @LED_REG_ON
	.comm	_link,4,2                       ; @link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link is up at %d Mbps, %s duplex, flow control %s\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
l_.str.1:                               ; @.str.1
	.asciz	"full"

l_.str.2:                               ; @.str.2
	.asciz	"half"

	.no_dead_strip	_skge_link_up
.subsections_via_symbols
