	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_get_link_ksettings
_b44_get_link_ksettings:                ## @b44_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
	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
	movq	%rdi, %r14
	callq	_netdev_priv
	movl	(%rax), %ecx
	movq	_B44_FLAG_EXTERNAL_PHY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, (%r14)
	sete	%dil
	callq	_BUG_ON
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_phy_ethtool_ksettings_get
	jmp	LBB0_22
LBB0_2:
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rdx
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movq	_B44_FLAG_ADV_10HALF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	andl	%ecx, %r8d
	je	LBB0_4
## %bb.3:
	movq	_ADVERTISED_10baseT_Half@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
LBB0_4:
	orl	(%rdx), %esi
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rdx
	movq	_B44_FLAG_ADV_10FULL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	andl	%ecx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_ADVERTISED_10baseT_Full@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
LBB0_6:
	orl	(%rdx), %esi
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rdx
	movq	_B44_FLAG_ADV_100HALF@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
	andl	%ecx, %r13d
	je	LBB0_8
## %bb.7:
	movq	_ADVERTISED_100baseT_Half@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
LBB0_8:
	orl	(%rdx), %esi
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %r9
	movq	_B44_FLAG_ADV_100FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_10
## %bb.9:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_10:
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %r11
	orl	(%r9), %esi
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %r10
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %r9
	movq	_B44_FLAG_100_BASE_T@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%ecx, %edi
	jne	LBB0_11
## %bb.12:
	movq	_SPEED_10@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_11:
	movq	_SPEED_100@GOTPCREL(%rip), %r12
LBB0_13:
	orl	(%r11), %esi
	orl	%r8d, %ebx
	orl	%r13d, %ebx
	orl	(%r10), %ebx
	movq	(%r12), %rdi
	orl	%edx, %ebx
	orl	(%r9), %ebx
	movq	%rdi, 16(%r15)
	movq	_B44_FLAG_FULL_DUPLEX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	jne	LBB0_14
## %bb.15:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rdx
	jmp	LBB0_16
LBB0_14:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
LBB0_16:
	movl	(%rdx), %edx
	movl	%edx, (%r15)
	movq	$0, 32(%r15)
	movl	4(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_B44_FLAG_FORCE_LINK@GOTPCREL(%rip), %rdi
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	andl	(%rdi), %ecx
	je	LBB0_18
## %bb.17:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
LBB0_18:
	movq	%rdx, 8(%r15)
	xorl	%ecx, %ecx
	cmpq	%rax, %rdx
	jne	LBB0_20
## %bb.19:
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_20:
	orl	%ecx, %ebx
	movl	44(%r15), %edi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	40(%r15), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movq	%r14, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movq	$0, 16(%r15)
	movl	$255, (%r15)
LBB0_22:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ## @B44_FLAG_EXTERNAL_PHY
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
	.comm	_B44_FLAG_ADV_10HALF,4,2        ## @B44_FLAG_ADV_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ## @ADVERTISED_10baseT_Half
	.comm	_B44_FLAG_ADV_10FULL,4,2        ## @B44_FLAG_ADV_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ## @ADVERTISED_10baseT_Full
	.comm	_B44_FLAG_ADV_100HALF,4,2       ## @B44_FLAG_ADV_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ## @ADVERTISED_100baseT_Half
	.comm	_B44_FLAG_ADV_100FULL,4,2       ## @B44_FLAG_ADV_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.comm	_B44_FLAG_100_BASE_T,4,2        ## @B44_FLAG_100_BASE_T
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ## @B44_FLAG_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_B44_FLAG_FORCE_LINK,4,2        ## @B44_FLAG_FORCE_LINK
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.no_dead_strip	_b44_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 b44_get_link_ksettings
_b44_get_link_ksettings:                ; @b44_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
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B44_FLAG_EXTERNAL_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x20]
	mov	x1, x19
	bl	_phy_ethtool_ksettings_get
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x9, _SUPPORTED_Autoneg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh13:
	ldr	x12, [x12, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
Lloh15:
	adrp	x13, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh16:
	ldr	x13, [x13, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh17:
	ldr	w13, [x13]
Lloh18:
	adrp	x14, _SUPPORTED_MII@GOTPAGE
Lloh19:
	ldr	x14, [x14, _SUPPORTED_MII@GOTPAGEOFF]
Lloh20:
	ldr	w14, [x14]
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w9, w9, w12
	orr	w9, w9, w13
	orr	w1, w9, w14
Lloh21:
	adrp	x9, _B44_FLAG_ADV_10HALF@GOTPAGE
Lloh22:
	ldr	x9, [x9, _B44_FLAG_ADV_10HALF@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _ADVERTISED_10baseT_Half@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ADVERTISED_10baseT_Half@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w8
Lloh27:
	adrp	x9, _B44_FLAG_ADV_10FULL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _B44_FLAG_ADV_10FULL@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x11, _ADVERTISED_10baseT_Full@GOTPAGE
Lloh31:
	ldr	x11, [x11, _ADVERTISED_10baseT_Full@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	tst	w9, w8
	csel	w9, wzr, w11, eq
Lloh33:
	adrp	x11, _B44_FLAG_ADV_100HALF@GOTPAGE
Lloh34:
	ldr	x11, [x11, _B44_FLAG_ADV_100HALF@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
Lloh36:
	adrp	x12, _ADVERTISED_100baseT_Half@GOTPAGE
Lloh37:
	ldr	x12, [x12, _ADVERTISED_100baseT_Half@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
	tst	w11, w8
	csel	w11, wzr, w12, eq
Lloh39:
	adrp	x12, _B44_FLAG_ADV_100FULL@GOTPAGE
Lloh40:
	ldr	x12, [x12, _B44_FLAG_ADV_100FULL@GOTPAGEOFF]
Lloh41:
	ldr	w12, [x12]
Lloh42:
	adrp	x13, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh43:
	ldr	x13, [x13, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh44:
	ldr	w13, [x13]
	tst	w12, w8
Lloh45:
	adrp	x12, _ADVERTISED_Pause@GOTPAGE
Lloh46:
	ldr	x12, [x12, _ADVERTISED_Pause@GOTPAGEOFF]
	csel	w13, wzr, w13, eq
Lloh47:
	ldr	w12, [x12]
Lloh48:
	adrp	x14, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh49:
	ldr	x14, [x14, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh50:
	adrp	x15, _B44_FLAG_100_BASE_T@GOTPAGE
Lloh51:
	ldr	x15, [x15, _B44_FLAG_100_BASE_T@GOTPAGEOFF]
Lloh52:
	ldr	w14, [x14]
Lloh53:
	ldr	w15, [x15]
Lloh54:
	adrp	x16, _SPEED_100@GOTPAGE
Lloh55:
	ldr	x16, [x16, _SPEED_100@GOTPAGEOFF]
Lloh56:
	adrp	x17, _SPEED_10@GOTPAGE
Lloh57:
	ldr	x17, [x17, _SPEED_10@GOTPAGEOFF]
	tst	w15, w8
	csel	x15, x17, x16, eq
	ldr	x15, [x15]
	str	x15, [x19, #16]
Lloh58:
	adrp	x15, _B44_FLAG_FULL_DUPLEX@GOTPAGE
Lloh59:
	ldr	x15, [x15, _B44_FLAG_FULL_DUPLEX@GOTPAGEOFF]
Lloh60:
	ldr	w15, [x15]
Lloh61:
	adrp	x16, _DUPLEX_FULL@GOTPAGE
Lloh62:
	ldr	x16, [x16, _DUPLEX_FULL@GOTPAGEOFF]
Lloh63:
	adrp	x17, _DUPLEX_HALF@GOTPAGE
Lloh64:
	ldr	x17, [x17, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w15, w8
	csel	x15, x17, x16, eq
	ldr	w15, [x15]
	str	w15, [x19]
	str	xzr, [x19, #32]
	ldr	w15, [x0, #4]
	str	w15, [x19, #24]
Lloh65:
	adrp	x15, _B44_FLAG_FORCE_LINK@GOTPAGE
Lloh66:
	ldr	x15, [x15, _B44_FLAG_FORCE_LINK@GOTPAGEOFF]
Lloh67:
	ldr	w15, [x15]
Lloh68:
	adrp	x16, _AUTONEG_DISABLE@GOTPAGE
Lloh69:
	ldr	x16, [x16, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh70:
	ldr	x16, [x16]
Lloh71:
	adrp	x17, _AUTONEG_ENABLE@GOTPAGE
Lloh72:
	ldr	x17, [x17, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh73:
	ldr	x17, [x17]
	tst	w15, w8
	csel	x8, x17, x16, eq
	str	x8, [x19, #8]
Lloh74:
	adrp	x15, _ADVERTISED_Autoneg@GOTPAGE
Lloh75:
	ldr	x15, [x15, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh76:
	ldr	w15, [x15]
	cmp	x8, x17
	csel	w8, w15, wzr, eq
	orr	w9, w9, w10
	orr	w9, w9, w11
	orr	w9, w9, w12
	orr	w9, w9, w13
	orr	w9, w9, w14
	orr	w21, w9, w8
	ldr	w0, [x19, #44]
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19, #40]
	mov	x1, x21
	bl	_ethtool_convert_legacy_u32_to_link_mode
	mov	x0, x20
	bl	_netif_running
	cbnz	w0, LBB0_4
; %bb.3:
	str	xzr, [x19, #16]
	mov	w8, #255
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_FLAG_EXTERNAL_PHY,4,2      ; @B44_FLAG_EXTERNAL_PHY
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
	.comm	_B44_FLAG_ADV_10HALF,4,2        ; @B44_FLAG_ADV_10HALF
	.comm	_ADVERTISED_10baseT_Half,4,2    ; @ADVERTISED_10baseT_Half
	.comm	_B44_FLAG_ADV_10FULL,4,2        ; @B44_FLAG_ADV_10FULL
	.comm	_ADVERTISED_10baseT_Full,4,2    ; @ADVERTISED_10baseT_Full
	.comm	_B44_FLAG_ADV_100HALF,4,2       ; @B44_FLAG_ADV_100HALF
	.comm	_ADVERTISED_100baseT_Half,4,2   ; @ADVERTISED_100baseT_Half
	.comm	_B44_FLAG_ADV_100FULL,4,2       ; @B44_FLAG_ADV_100FULL
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.comm	_B44_FLAG_100_BASE_T,4,2        ; @B44_FLAG_100_BASE_T
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_B44_FLAG_FULL_DUPLEX,4,2       ; @B44_FLAG_FULL_DUPLEX
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_B44_FLAG_FORCE_LINK,4,2        ; @B44_FLAG_FORCE_LINK
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.no_dead_strip	_b44_get_link_ksettings
.subsections_via_symbols
