	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_get_link_ksettings
_bnxt_get_link_ksettings:               ## @bnxt_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, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	leaq	8(%rax), %r12
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_fw_to_ethtool_support_spds
	movq	_advertising@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	cmpq	$0, 48(%r14)
	je	LBB0_7
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_fw_to_ethtool_advertised_spds
	movl	(%r13), %esi
	movq	_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	(%r12), %rax
	movq	_BNXT_LINK_LINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_fw_to_ethtool_lp_adv
LBB0_3:
	movl	40(%r14), %edi
	callq	_bnxt_fw_to_ethtool_speed
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_BNXT_LINK_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	jne	LBB0_8
## %bb.6:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	36(%r14), %edi
	callq	_bnxt_fw_to_ethtool_speed
	movl	%eax, %r12d
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	20(%r14), %eax
	movq	_BNXT_LINK_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
LBB0_8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_10:
	movl	%r12d, 8(%rbx)
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	24(%r14), %rax
	movq	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	jmp	LBB0_17
LBB0_12:
	movq	_supported@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIBRE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movq	24(%r14), %rax
	movq	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_PORT_DA@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_17:
	movl	32(%r14), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_supported,4,2                  ## @supported
	.comm	_advertising,4,2                ## @advertising
	.comm	_Autoneg,4,2                    ## @Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_BNXT_LINK_LINK,8,3             ## @BNXT_LINK_LINK
	.comm	_DUPLEX_UNKNOWN,8,3             ## @DUPLEX_UNKNOWN
	.comm	_BNXT_LINK_DUPLEX_FULL,4,2      ## @BNXT_LINK_DUPLEX_FULL
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ## @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP,8,3 ## @PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_TP,4,2                         ## @TP
	.comm	_FIBRE,4,2                      ## @FIBRE
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC,8,3 ## @PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC
	.comm	_PORT_DA,4,2                    ## @PORT_DA
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE,8,3 ## @PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE
	.comm	_PORT_FIBRE,4,2                 ## @PORT_FIBRE
	.no_dead_strip	_bnxt_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 bnxt_get_link_ksettings
_bnxt_get_link_ksettings:               ; @bnxt_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
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x22, x0, #8
Lloh0:
	adrp	x24, _supported@GOTPAGE
Lloh1:
	ldr	x24, [x24, _supported@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x22
	mov	x1, x19
	bl	_bnxt_fw_to_ethtool_support_spds
Lloh2:
	adrp	x23, _advertising@GOTPAGE
Lloh3:
	ldr	x23, [x23, _advertising@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x0, x22
	mov	x1, x19
	bl	_bnxt_fw_to_ethtool_advertised_spds
	ldr	w1, [x23]
Lloh4:
	adrp	x8, _Autoneg@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Autoneg@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
Lloh7:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x8, [x22]
Lloh10:
	adrp	x9, _BNXT_LINK_LINK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BNXT_LINK_LINK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x19
	bl	_bnxt_fw_to_ethtool_lp_adv
LBB0_3:
	ldr	w0, [x20, #40]
	bl	_bnxt_fw_to_ethtool_speed
	mov	x22, x0
	mov	x0, x21
	bl	_netif_carrier_ok
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x20, #16]
Lloh13:
	adrp	x9, _BNXT_LINK_DUPLEX_FULL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BNXT_LINK_DUPLEX_FULL@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
Lloh16:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w0, [x20, #36]
	bl	_bnxt_fw_to_ethtool_speed
	mov	x22, x0
Lloh21:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w8, [x20, #20]
Lloh24:
	adrp	x9, _BNXT_LINK_DUPLEX_FULL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BNXT_LINK_DUPLEX_FULL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_7:
Lloh27:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh29:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_10:
Lloh31:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	stp	w8, w22, [x19, #4]
	ldr	x8, [x20, #24]
Lloh34:
	adrp	x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh37:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w1, [x24]
Lloh40:
	adrp	x21, _TP@GOTPAGE
Lloh41:
	ldr	x21, [x21, _TP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	b	LBB0_17
LBB0_12:
	ldr	w1, [x24]
Lloh42:
	adrp	x21, _FIBRE@GOTPAGE
Lloh43:
	ldr	x21, [x21, _FIBRE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	ldr	x8, [x20, #24]
Lloh44:
	adrp	x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh47:
	adrp	x8, _PORT_DA@GOTPAGE
Lloh48:
	ldr	x8, [x8, _PORT_DA@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
Lloh49:
	adrp	x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh52:
	adrp	x8, _PORT_FIBRE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PORT_FIBRE@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_17:
	ldr	w8, [x20, #32]
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_supported,4,2                  ; @supported
	.comm	_advertising,4,2                ; @advertising
	.comm	_Autoneg,4,2                    ; @Autoneg
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_BNXT_LINK_LINK,8,3             ; @BNXT_LINK_LINK
	.comm	_DUPLEX_UNKNOWN,8,3             ; @DUPLEX_UNKNOWN
	.comm	_BNXT_LINK_DUPLEX_FULL,4,2      ; @BNXT_LINK_DUPLEX_FULL
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,8,3                ; @DUPLEX_HALF
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP,8,3 ; @PORT_PHY_QCFG_RESP_MEDIA_TYPE_TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_TP,4,2                         ; @TP
	.comm	_FIBRE,4,2                      ; @FIBRE
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC,8,3 ; @PORT_PHY_QCFG_RESP_MEDIA_TYPE_DAC
	.comm	_PORT_DA,4,2                    ; @PORT_DA
	.comm	_PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE,8,3 ; @PORT_PHY_QCFG_RESP_MEDIA_TYPE_FIBRE
	.comm	_PORT_FIBRE,4,2                 ; @PORT_FIBRE
	.no_dead_strip	_bnxt_get_link_ksettings
.subsections_via_symbols
