	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_link_ksettings
_niu_get_link_ksettings:                ## @niu_get_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	4(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	24(%r14), %edi
	movl	24(%rbx), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	20(%r14), %edi
	movl	20(%rbx), %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	16(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 4(%r14)
	movq	_NIU_FLAGS_FIBER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_FLAGS_FIBER,4,2            ## @NIU_FLAGS_FIBER
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.no_dead_strip	_niu_get_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_get_link_ksettings
_niu_get_link_ksettings:                ; @niu_get_link_ksettings
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
	ldr	w0, [x19, #24]
	ldr	w1, [x20, #24]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #20]
	ldr	w1, [x20, #20]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w8, [x20, #16]
	str	w8, [x19, #12]
	ldr	d0, [x20, #8]
	stur	d0, [x19, #4]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NIU_FLAGS_FIBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIU_FLAGS_FIBER@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PORT_FIBRE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PORT_FIBRE@GOTPAGEOFF]
Lloh4:
	adrp	x11, _PORT_TP@GOTPAGE
Lloh5:
	ldr	x11, [x11, _PORT_TP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_FLAGS_FIBER,4,2            ; @NIU_FLAGS_FIBER
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.no_dead_strip	_niu_get_link_ksettings
.subsections_via_symbols
