	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_set_link_ksettings
_ehea_set_link_ksettings:               ## @ehea_set_link_ksettings
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EHEA_SPEED_AUTONEG@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ehea_set_portspeed
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	4(%r15), %edx
	cmpl	$1, (%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_2:
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_17
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movl	12(%rbx), %eax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.13:
	movq	_H_SPEED_10G_F@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	movl	12(%rbx), %eax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.9:
	movq	_H_SPEED_100M_F@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movl	12(%rbx), %eax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_H_SPEED_10M_F@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movl	12(%rbx), %eax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.11:
	movq	_H_SPEED_1G_F@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_H_SPEED_100M_H@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_H_SPEED_10M_H@GOTPCREL(%rip), %rax
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_EHEA_SPEED_AUTONEG,4,2         ## @EHEA_SPEED_AUTONEG
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_H_SPEED_10M_F,4,2              ## @H_SPEED_10M_F
	.comm	_H_SPEED_10M_H,4,2              ## @H_SPEED_10M_H
	.comm	_H_SPEED_100M_F,4,2             ## @H_SPEED_100M_F
	.comm	_H_SPEED_100M_H,4,2             ## @H_SPEED_100M_H
	.comm	_H_SPEED_1G_F,4,2               ## @H_SPEED_1G_F
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_H_SPEED_10G_F,4,2              ## @H_SPEED_10G_F
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port speed successfully set: %dMbps %s Duplex\n"

L_.str.1:                               ## @.str.1
	.asciz	"Full"

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

	.no_dead_strip	_ehea_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_set_link_ksettings
_ehea_set_link_ksettings:               ; @ehea_set_link_ksettings
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EHEA_SPEED_AUTONEG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EHEA_SPEED_AUTONEG@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x21, #12]
Lloh7:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.5:
Lloh10:
	adrp	x8, _H_SPEED_10G_F@GOTPAGE
Lloh11:
	ldr	x8, [x8, _H_SPEED_10G_F@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	ldr	w8, [x21, #12]
Lloh12:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _H_SPEED_100M_H@GOTPAGE
Lloh16:
	ldr	x10, [x10, _H_SPEED_100M_H@GOTPAGEOFF]
Lloh17:
	adrp	x11, _H_SPEED_100M_F@GOTPAGE
Lloh18:
	ldr	x11, [x11, _H_SPEED_100M_F@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x21, #12]
Lloh19:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _H_SPEED_10M_H@GOTPAGE
Lloh23:
	ldr	x10, [x10, _H_SPEED_10M_H@GOTPAGEOFF]
Lloh24:
	adrp	x11, _H_SPEED_10M_F@GOTPAGE
Lloh25:
	ldr	x11, [x11, _H_SPEED_10M_F@GOTPAGEOFF]
LBB0_8:
	cmp	w8, w9
	csel	x8, x11, x10, eq
	b	LBB0_11
LBB0_9:
	ldr	w8, [x21, #12]
Lloh26:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:
Lloh29:
	adrp	x8, _H_SPEED_1G_F@GOTPAGE
Lloh30:
	ldr	x8, [x8, _H_SPEED_1G_F@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ehea_set_portspeed
	cbnz	w0, LBB0_14
; %bb.12:
	ldp	w8, w2, [x20]
Lloh31:
	adrp	x9, l_.str.2@PAGE
Lloh32:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh33:
	adrp	x10, l_.str.1@PAGE
Lloh34:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #1
	csel	x3, x10, x9, eq
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	mov	w0, #0
	b	LBB0_14
LBB0_13:
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_EHEA_SPEED_AUTONEG,4,2         ; @EHEA_SPEED_AUTONEG
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_H_SPEED_10M_F,4,2              ; @H_SPEED_10M_F
	.comm	_H_SPEED_10M_H,4,2              ; @H_SPEED_10M_H
	.comm	_H_SPEED_100M_F,4,2             ; @H_SPEED_100M_F
	.comm	_H_SPEED_100M_H,4,2             ; @H_SPEED_100M_H
	.comm	_H_SPEED_1G_F,4,2               ; @H_SPEED_1G_F
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_H_SPEED_10G_F,4,2              ; @H_SPEED_10G_F
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port speed successfully set: %dMbps %s Duplex\n"

l_.str.1:                               ; @.str.1
	.asciz	"Full"

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

	.no_dead_strip	_ehea_set_link_ksettings
.subsections_via_symbols
