	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_get_link_ksettings
_bnx2_get_link_ksettings:               ## @bnx2_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, %r14
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %r15
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %ecx
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %edx
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	movq	_PORT_FIBRE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_5
LBB0_2:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rsi
	orl	%eax, %ebx
	orl	(%rsi), %ebx
	movq	_BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	_SUPPORTED_2500baseX_Full@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ebx
	testl	%ecx, %edx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	testl	%ecx, %edx
	je	LBB0_7
LBB0_5:
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rdx
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rsi
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rdi
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	(%rdi), %ebx
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	(%rcx), %ebx
LBB0_7:
	addq	$28, %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	8(%r15), %rax
	movq	%rax, 8(%r14)
	movq	_AUTONEG_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	20(%r15), %eax
	jne	LBB0_8
## %bb.9:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%r13, %rdi
	movl	16(%r15), %r13d
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	callq	_netif_carrier_ok
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movl	36(%r15), %eax
	movl	%eax, 24(%r14)
	movl	32(%r15), %eax
	movl	%eax, 20(%r14)
	movl	(%r15), %eax
	movq	_BNX2_PHY_FLAG_SERDES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.12:
	movq	_BNX2_PHY_FLAG_MDIX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	_ETH_TP_MDI_X@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_17
LBB0_15:
	movq	_ETH_TP_MDI@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
LBB0_17:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	24(%r15), %eax
	movl	%eax, 16(%r14)
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_ethtool_convert_legacy_u32_to_link_mode
	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_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ## @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_PORT_FIBRE,8,3                 ## @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
	.comm	_BNX2_PHY_FLAG_2_5G_CAPABLE,4,2 ## @BNX2_PHY_FLAG_2_5G_CAPABLE
	.comm	_SUPPORTED_2500baseX_Full,4,2   ## @SUPPORTED_2500baseX_Full
	.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_TP,4,2               ## @SUPPORTED_TP
	.comm	_AUTONEG_SPEED,4,2              ## @AUTONEG_SPEED
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ## @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_PHY_FLAG_MDIX,4,2         ## @BNX2_PHY_FLAG_MDIX
	.comm	_ETH_TP_MDI_X,4,2               ## @ETH_TP_MDI_X
	.comm	_ETH_TP_MDI,4,2                 ## @ETH_TP_MDI
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.no_dead_strip	_bnx2_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 bnx2_get_link_ksettings
_bnx2_get_link_ksettings:               ; @bnx2_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	x22, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w11, [x0]
Lloh3:
	adrp	x8, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
	ands	w9, w8, w11
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x12, _PORT_FIBRE@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PORT_FIBRE@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
	cmp	x8, x12
	b.ne	LBB0_5
LBB0_2:
	ldr	w8, [x10]
Lloh11:
	adrp	x12, _SUPPORTED_FIBRE@GOTPAGE
Lloh12:
	ldr	x12, [x12, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w13, w8, w21
	orr	w21, w13, w12
Lloh14:
	adrp	x12, _BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPAGE
Lloh15:
	ldr	x12, [x12, _BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_4
; %bb.3:
Lloh17:
	adrp	x10, _SUPPORTED_2500baseX_Full@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SUPPORTED_2500baseX_Full@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w21, w10, w21
	cbnz	w9, LBB0_6
	b	LBB0_7
LBB0_4:
	cbz	w9, LBB0_7
LBB0_5:
	ldr	w8, [x10]
LBB0_6:
Lloh20:
	adrp	x9, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh24:
	ldr	x10, [x10, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh27:
	ldr	x11, [x11, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
Lloh29:
	adrp	x12, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh30:
	ldr	x12, [x12, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
Lloh32:
	adrp	x13, _SUPPORTED_TP@GOTPAGE
Lloh33:
	ldr	x13, [x13, _SUPPORTED_TP@GOTPAGEOFF]
Lloh34:
	ldr	w13, [x13]
	orr	w9, w9, w21
	orr	w9, w9, w10
	orr	w9, w9, w11
	orr	w9, w9, w12
	orr	w8, w9, w8
	orr	w21, w8, w13
LBB0_7:
	add	x24, x20, #28
	mov	x0, x24
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldp	w23, w8, [x20, #16]
Lloh35:
	adrp	x9, _AUTONEG_SPEED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AUTONEG_SPEED@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh40:
	adrp	x11, _AUTONEG_ENABLE@GOTPAGE
Lloh41:
	ldr	x11, [x11, _AUTONEG_ENABLE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	x0, LBB0_11
; %bb.8:
	ldr	d0, [x20, #32]
	stur	d0, [x19, #20]
	ldr	w8, [x20]
Lloh42:
	adrp	x9, _BNX2_PHY_FLAG_SERDES@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BNX2_PHY_FLAG_SERDES@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.9:
Lloh45:
	adrp	x9, _BNX2_PHY_FLAG_MDIX@GOTPAGE
Lloh46:
	ldr	x9, [x9, _BNX2_PHY_FLAG_MDIX@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
Lloh48:
	adrp	x8, _ETH_TP_MDI_X@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ETH_TP_MDI_X@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh50:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh54:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	b	LBB0_14
LBB0_12:
Lloh56:
	adrp	x8, _ETH_TP_MDI@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ETH_TP_MDI@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_14:
	mov	x0, x24
	bl	_spin_unlock_bh
	ldr	w8, [x20, #24]
	str	w8, [x19, #16]
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_ethtool_convert_legacy_u32_to_link_mode
	ldr	w0, [x19]
	mov	x1, x23
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ; @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_PORT_FIBRE,8,3                 ; @PORT_FIBRE
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
	.comm	_BNX2_PHY_FLAG_2_5G_CAPABLE,4,2 ; @BNX2_PHY_FLAG_2_5G_CAPABLE
	.comm	_SUPPORTED_2500baseX_Full,4,2   ; @SUPPORTED_2500baseX_Full
	.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_TP,4,2               ; @SUPPORTED_TP
	.comm	_AUTONEG_SPEED,4,2              ; @AUTONEG_SPEED
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_BNX2_PHY_FLAG_SERDES,4,2       ; @BNX2_PHY_FLAG_SERDES
	.comm	_BNX2_PHY_FLAG_MDIX,4,2         ; @BNX2_PHY_FLAG_MDIX
	.comm	_ETH_TP_MDI_X,4,2               ; @ETH_TP_MDI_X
	.comm	_ETH_TP_MDI,4,2                 ; @ETH_TP_MDI
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.no_dead_strip	_bnx2_get_link_ksettings
.subsections_via_symbols
