	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ULi_ethtool_get_link_ksettings
_ULi_ethtool_get_link_ksettings:        ## @ULi_ethtool_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	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_ADVERTISED_MII@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	24(%rsi), %edi
	movl	%eax, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	20(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	_PORT_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	24(%r14), %eax
	movl	%eax, 12(%r15)
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	(%r14), %rax
	movq	_ULI526X_100MHF@GOTPCREL(%rip), %rdx
	movq	_ULI526X_100MFD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rcx, %rax
	jne	LBB0_3
LBB0_2:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%r15)
LBB0_3:
	movq	_ULI526X_10MFD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_5:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_6:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.7:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_8:
	movq	_ULI526X_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_10
## %bb.9:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.comm	_ADVERTISED_MII,4,2             ## @ADVERTISED_MII
	.comm	_PORT_MII,4,2                   ## @PORT_MII
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_ULI526X_100MHF,8,3             ## @ULI526X_100MHF
	.comm	_ULI526X_100MFD,8,3             ## @ULI526X_100MFD
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_ULI526X_10MFD,8,3              ## @ULI526X_10MFD
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_ULI526X_AUTO,4,2               ## @ULI526X_AUTO
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.no_dead_strip	_ULi_ethtool_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 ULi_ethtool_get_link_ksettings
_ULi_ethtool_get_link_ksettings:        ; @ULi_ethtool_get_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SUPPORTED_Autoneg@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SUPPORTED_MII@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SUPPORTED_MII@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh18:
	adrp	x8, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh29:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh30:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _ADVERTISED_MII@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ADVERTISED_MII@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	w0, [x19, #24]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #20]
	mov	x1, x21
	bl	_ethtool_convert_legacy_u32_to_link_mode
Lloh36:
	adrp	x8, _PORT_MII@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PORT_MII@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	stp	w9, w8, [x19, #12]
Lloh39:
	adrp	x8, _SPEED_10@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SPEED_10@GOTPAGEOFF]
Lloh41:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh42:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
Lloh45:
	adrp	x9, _ULI526X_100MHF@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ULI526X_100MHF@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh47:
	ldr	x10, [x9]
Lloh48:
	adrp	x9, _ULI526X_100MFD@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ULI526X_100MFD@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x10
	b.eq	LBB0_2
; %bb.1:
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh51:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh52:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh53:
	ldr	w10, [x10]
	str	w10, [x19, #8]
LBB0_3:
Lloh54:
	adrp	x10, _ULI526X_10MFD@GOTPAGE
Lloh55:
	ldr	x10, [x10, _ULI526X_10MFD@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_5
; %bb.4:
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
Lloh57:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh60:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh64:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
LBB0_8:
	ldr	w8, [x20, #8]
Lloh66:
	adrp	x9, _ULI526X_AUTO@GOTPAGE
Lloh67:
	ldr	x9, [x9, _ULI526X_AUTO@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh69:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	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	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.comm	_ADVERTISED_MII,4,2             ; @ADVERTISED_MII
	.comm	_PORT_MII,4,2                   ; @PORT_MII
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_ULI526X_100MHF,8,3             ; @ULI526X_100MHF
	.comm	_ULI526X_100MFD,8,3             ; @ULI526X_100MFD
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_ULI526X_10MFD,8,3              ; @ULI526X_10MFD
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_ULI526X_AUTO,4,2               ; @ULI526X_AUTO
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.no_dead_strip	_ULi_ethtool_get_link_ksettings
.subsections_via_symbols
