	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_set_link_ksettings
_igc_set_link_ksettings:                ## @igc_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	%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	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r14
	addq	$24, %r14
	movq	%r14, %rdi
	callq	_igc_check_reset_block
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_3:
	movq	(%r15), %rax
	movq	_ETH_TP_MDI_AUTO@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	(%r13), %rax
	je	LBB0_7
## %bb.5:
	movq	8(%r15), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_7:
	movq	___IGC_RESETTING@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_9
LBB0_10:
	movl	16(%r15), %esi
	leaq	-44(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	8(%r15), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movl	$1, 44(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, 32(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_14
## %bb.12:
	movq	_igc_fc_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	jmp	LBB0_14
LBB0_13:
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
LBB0_14:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	cmpq	(%r13), %rax
	jne	LBB0_17
## %bb.16:
	movq	_AUTO_ALL_MODES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_17:
	movq	%rax, (%r14)
LBB0_18:
	movl	4(%rbx), %edi
	callq	_netif_running
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	callq	_igc_down
	movq	%rbx, %rdi
	callq	_igc_up
	jmp	LBB0_21
LBB0_20:
	callq	_igc_reset
LBB0_21:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot change link characteristics when reset is active.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETH_TP_MDI_AUTO,8,3            ## @ETH_TP_MDI_AUTO
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
L_.str.1:                               ## @.str.1
	.asciz	"forcing MDI/MDI-X state is not supported when link speed and/or duplex are forced\n"

	.comm	___IGC_RESETTING,4,2            ## @__IGC_RESETTING
	.comm	_igc_fc_default,4,2             ## @igc_fc_default
L_.str.2:                               ## @.str.2
	.asciz	"Force mode currently not supported\n"

	.comm	_AUTO_ALL_MODES,8,3             ## @AUTO_ALL_MODES
	.no_dead_strip	_igc_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 igc_set_link_ksettings
_igc_set_link_ksettings:                ; @igc_set_link_ksettings
	.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	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_igc_check_reset_block
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_3:
Lloh5:
	adrp	x23, _ETH_TP_MDI_AUTO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ETH_TP_MDI_AUTO@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
Lloh7:
	adrp	x24, _AUTONEG_ENABLE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _AUTONEG_ENABLE@GOTPAGEOFF]
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_19
LBB0_5:
Lloh9:
	adrp	x22, ___IGC_RESETTING@GOTPAGE
Lloh10:
	ldr	x22, [x22, ___IGC_RESETTING@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_6
LBB0_8:
	ldr	w1, [x21, #16]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #44]
	ldr	w8, [sp, #12]
	str	w8, [x19, #32]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.10:
Lloh11:
	adrp	x8, _igc_fc_default@GOTPAGE
Lloh12:
	ldr	x8, [x8, _igc_fc_default@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_12:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x9, [x23]
Lloh16:
	adrp	x10, _AUTO_ALL_MODES@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AUTO_ALL_MODES@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x8, x10, x8, eq
	str	x8, [x20]
LBB0_14:
	ldr	w0, [x19, #4]
	bl	_netif_running
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_igc_down
	mov	x0, x19
	bl	_igc_up
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_igc_reset
LBB0_17:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
	mov	w0, #0
LBB0_18:
	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
	ret
LBB0_19:
	ldr	x0, [x19, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot change link characteristics when reset is active.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETH_TP_MDI_AUTO,8,3            ; @ETH_TP_MDI_AUTO
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
l_.str.1:                               ; @.str.1
	.asciz	"forcing MDI/MDI-X state is not supported when link speed and/or duplex are forced\n"

	.comm	___IGC_RESETTING,4,2            ; @__IGC_RESETTING
	.comm	_igc_fc_default,4,2             ; @igc_fc_default
l_.str.2:                               ; @.str.2
	.asciz	"Force mode currently not supported\n"

	.comm	_AUTO_ALL_MODES,8,3             ; @AUTO_ALL_MODES
	.no_dead_strip	_igc_set_link_ksettings
.subsections_via_symbols
