	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_vf_link_ksettings
_bnx2x_get_vf_link_ksettings:           ## @bnx2x_get_vf_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	28(%rbx), %esi
	leaq	-24(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movl	24(%rbx), %esi
	leaq	-20(%rbp), %rdi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	(%r14), %rax
	movq	_BNX2X_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	_BNX2X_LINK_REPORT_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, 12(%rbx)
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %r14
	jmp	LBB0_6
LBB0_2:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_4:
	addq	$8, %r14
	movl	(%rax), %r10d
	movl	%r10d, 12(%rbx)
LBB0_6:
	movl	(%r14), %r9d
	movl	%r9d, 16(%rbx)
	movq	_PORT_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movl	%r11d, 8(%rbx)
	movl	$0, 4(%rbx)
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	20(%rbx), %edx
	movl	-24(%rbp), %ecx
	movl	-20(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	$0
	pushq	%r11
	pushq	%r10
	callq	_DP
	addq	$32, %rsp
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ## @BNX2X_STATE_OPEN
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ## @BNX2X_LINK_REPORT_FD
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_PORT_OTHER,4,2                 ## @PORT_OTHER
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethtool_cmd: cmd %d\n  supported 0x%x  advertising 0x%x  speed %u\n  duplex %d  port %d  phy_address %d\n  autoneg %d\n"

	.no_dead_strip	_bnx2x_get_vf_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_get_vf_link_ksettings
_bnx2x_get_vf_link_ksettings:           ; @bnx2x_get_vf_link_ksettings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	w1, [x19, #28]
	add	x0, sp, #12
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	w1, [x19, #24]
	add	x0, sp, #8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _BNX2X_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2X_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BNX2X_LINK_REPORT_FD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_FD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x20, #8
	add	x1, x20, #12
	bl	_test_bit
Lloh6:
	adrp	x8, _DUPLEX_HALF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DUPLEX_HALF@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w6, [x8]
	str	w6, [x19, #12]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _DUPLEX_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh12:
	ldr	w6, [x8]
	str	w6, [x19, #12]
Lloh13:
	adrp	x21, _SPEED_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_3:
	ldr	w5, [x21]
	str	w5, [x19, #16]
Lloh15:
	adrp	x8, _PORT_OTHER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORT_OTHER@GOTPAGEOFF]
Lloh17:
	ldr	w7, [x8]
	str	w7, [x19, #8]
Lloh18:
	adrp	x8, _AUTONEG_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, wzr, [x19]
Lloh21:
	adrp	x9, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x9]
	ldr	w2, [x19, #20]
	ldp	w4, w3, [sp, #8]
	stp	wzr, w8, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_STATE_OPEN,8,3           ; @BNX2X_STATE_OPEN
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ; @BNX2X_LINK_REPORT_FD
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_PORT_OTHER,4,2                 ; @PORT_OTHER
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethtool_cmd: cmd %d\n  supported 0x%x  advertising 0x%x  speed %u\n  duplex %d  port %d  phy_address %d\n  autoneg %d\n"

	.no_dead_strip	_bnx2x_get_vf_link_ksettings
.subsections_via_symbols
