	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_get_link_ksettings
_bnad_get_link_ksettings:               ## @bnad_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rax
	movq	_ADVERTISED_FIBRE@GOTPCREL(%rip), %rcx
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %r14d
	orl	(%rax), %r15d
	movl	%edx, 24(%rsi)
	movq	$0, 16(%rsi)
	callq	_netif_carrier_ok
	testq	%rax, %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	cmoveq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmoveq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ## @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_bnad_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 bnad_get_link_ksettings
_bnad_get_link_ksettings:               ; @bnad_get_link_ksettings
	.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, x1
Lloh0:
	adrp	x8, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SUPPORTED_FIBRE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x9]
Lloh12:
	adrp	x9, _ADVERTISED_FIBRE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ADVERTISED_FIBRE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x9]
Lloh15:
	adrp	x9, _PORT_FIBRE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PORT_FIBRE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x1, #24]
	str	xzr, [x1, #16]
	bl	_netif_carrier_ok
Lloh18:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SPEED_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh24:
	adrp	x10, _SPEED_10000@GOTPAGE
Lloh25:
	ldr	x10, [x10, _SPEED_10000@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	orr	w20, w23, w20
	orr	w1, w22, w21
	ldr	w0, [x19, #4]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	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	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	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	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_ADVERTISED_FIBRE,4,2           ; @ADVERTISED_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_bnad_get_link_ksettings
.subsections_via_symbols
