	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8150_get_link_ksettings
_rtl8150_get_link_ksettings:            ## @rtl8150_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	(%r15), %eax
	movl	%eax, 28(%r14)
	movq	_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-42(%rbp), %rcx
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_get_registers
	movq	_ANLP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_get_registers
	movzwl	-42(%rbp), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	testw	%ax, (%rcx)
	je	LBB0_7
## %bb.1:
	movzwl	-44(%rbp), %ecx
	movq	_LPA_100HALF@GOTPCREL(%rip), %rdx
	movq	_LPA_100FULL@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movzwl	(%rdx), %edi
	orw	%ax, %di
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rsi
	testw	%cx, %di
	jne	LBB0_3
## %bb.2:
	movq	_SPEED_10@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
LBB0_3:
	movq	%rsi, 16(%r14)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%edi, 24(%r14)
	cmpq	%rdx, %rsi
	jne	LBB0_6
## %bb.4:
	andl	%ecx, %eax
	jmp	LBB0_5
LBB0_7:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	andw	%ax, %cx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_8
## %bb.9:
	movq	_SPEED_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_LPA_10FULL@GOTPCREL(%rip), %rax
	andw	(%rax), %cx
	movl	%ecx, %eax
LBB0_5:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testw	%ax, %ax
	jne	LBB0_12
LBB0_13:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r14)
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testw	%ax, %ax
	je	LBB0_13
LBB0_12:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	orq	%r12, %rbx
	orq	%rcx, %rbx
	orq	%r13, %rbx
	orq	%rdx, %rbx
	orq	%rsi, %rbx
	orq	%rdi, %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_10baseT_Half,8,3     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,8,3     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,8,3    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,8,3    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,8,3          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,8,3               ## @SUPPORTED_TP
	.comm	_SUPPORTED_MII,8,3              ## @SUPPORTED_MII
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_BMCR,4,2                       ## @BMCR
	.comm	_ANLP,4,2                       ## @ANLP
	.comm	_BMCR_ANENABLE,2,1              ## @BMCR_ANENABLE
	.comm	_LPA_100HALF,2,1                ## @LPA_100HALF
	.comm	_LPA_100FULL,2,1                ## @LPA_100FULL
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_LPA_10FULL,2,1                 ## @LPA_10FULL
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_BMCR_SPEED100,2,1              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,2,1              ## @BMCR_FULLDPLX
	.no_dead_strip	_rtl8150_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 rtl8150_get_link_ksettings
_rtl8150_get_link_ksettings:            ; @rtl8150_get_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
Lloh6:
	adrp	x8, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
Lloh9:
	adrp	x8, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
Lloh12:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh14:
	ldr	x25, [x8]
Lloh15:
	adrp	x8, _SUPPORTED_TP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUPPORTED_TP@GOTPAGEOFF]
Lloh17:
	ldr	x26, [x8]
Lloh18:
	adrp	x8, _SUPPORTED_MII@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SUPPORTED_MII@GOTPAGEOFF]
Lloh20:
	ldr	x27, [x8]
Lloh21:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x0]
	stp	w9, w8, [x19, #28]
Lloh24:
	adrp	x8, _BMCR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BMCR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	w2, #2
	bl	_get_registers
Lloh27:
	adrp	x8, _ANLP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ANLP@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x3, sp, #14
	mov	x0, x20
	mov	w2, #2
	bl	_get_registers
	ldrh	w8, [sp, #12]
Lloh30:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldrh	w8, [sp, #14]
Lloh32:
	adrp	x9, _LPA_100HALF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _LPA_100HALF@GOTPAGEOFF]
	ldrh	w10, [x9]
Lloh34:
	adrp	x9, _LPA_100FULL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _LPA_100FULL@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w10, w9, w10
Lloh36:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh37:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
Lloh38:
	ldr	x11, [x11]
Lloh39:
	adrp	x12, _SPEED_10@GOTPAGE
Lloh40:
	ldr	x12, [x12, _SPEED_10@GOTPAGEOFF]
Lloh41:
	ldr	x12, [x12]
	tst	w10, w8
	csel	x10, x12, x11, eq
	str	x10, [x19, #16]
Lloh42:
	adrp	x12, _AUTONEG_ENABLE@GOTPAGE
Lloh43:
	ldr	x12, [x12, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh44:
	ldr	w12, [x12]
	str	w12, [x19, #24]
	cmp	x10, x11
	b.eq	LBB0_5
; %bb.2:
Lloh45:
	adrp	x9, _LPA_10FULL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _LPA_10FULL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh47:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh50:
	adrp	x9, _BMCR_SPEED100@GOTPAGE
Lloh51:
	ldr	x9, [x9, _BMCR_SPEED100@GOTPAGEOFF]
	ldrh	w9, [x9]
Lloh52:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh53:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh54:
	adrp	x11, _SPEED_10@GOTPAGE
Lloh55:
	ldr	x11, [x11, _SPEED_10@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x11, x10, eq
	ldr	x9, [x9]
	str	x9, [x19, #16]
Lloh56:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh57:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
LBB0_4:
	ldrh	w9, [x9]
LBB0_5:
	and	w8, w9, w8
Lloh58:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh59:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh60:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh61:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
	orr	x8, x22, x21
	orr	x8, x8, x23
	orr	x8, x8, x24
	orr	x8, x8, x25
	orr	x8, x8, x26
	orr	x1, x8, x27
	ldr	w0, [x19]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh30, Lloh31
	.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	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_10baseT_Half,8,3     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,8,3     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,8,3    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,8,3    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,8,3          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_TP,8,3               ; @SUPPORTED_TP
	.comm	_SUPPORTED_MII,8,3              ; @SUPPORTED_MII
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_BMCR,4,2                       ; @BMCR
	.comm	_ANLP,4,2                       ; @ANLP
	.comm	_BMCR_ANENABLE,2,1              ; @BMCR_ANENABLE
	.comm	_LPA_100HALF,2,1                ; @LPA_100HALF
	.comm	_LPA_100FULL,2,1                ; @LPA_100FULL
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_LPA_10FULL,2,1                 ; @LPA_10FULL
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_BMCR_SPEED100,2,1              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,2,1              ; @BMCR_FULLDPLX
	.no_dead_strip	_rtl8150_get_link_ksettings
.subsections_via_symbols
