	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bnxt_fw_to_ethtool_adv_spds   ## -- Begin function _bnxt_fw_to_ethtool_adv_spds
	.p2align	4, 0x90
__bnxt_fw_to_ethtool_adv_spds:          ## @_bnxt_fw_to_ethtool_adv_spds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BNXT_LINK_SPEED_MSK_100MB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%edi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movq	_BNXT_LINK_SPEED_MSK_1GB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_4
## %bb.3:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_BNXT_LINK_SPEED_MSK_2_5GB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%edi, %edx
	je	LBB0_6
## %bb.5:
	movq	_ADVERTISED_2500baseX_Full@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%ecx, %eax
	movq	_BNXT_LINK_SPEED_MSK_10GB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	je	LBB0_8
## %bb.7:
	movq	_ADVERTISED_10000baseT_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%ecx, %edx
	orl	%edx, %eax
	movq	_BNXT_LINK_SPEED_MSK_40GB@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	je	LBB0_10
## %bb.9:
	movq	_ADVERTISED_40000baseCR4_Full@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_10:
	orl	%edi, %eax
	movq	_BNXT_LINK_PAUSE_BOTH@GOTPCREL(%rip), %rcx
	movl	%esi, %edx
	notl	%edx
	testl	%edx, (%rcx)
	jne	LBB0_13
## %bb.11:
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_13:
	movq	_BNXT_LINK_PAUSE_TX@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rcx
LBB0_12:
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_15:
	movq	_BNXT_LINK_PAUSE_RX@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_ADVERTISED_Pause@GOTPCREL(%rip), %rcx
	movq	_ADVERTISED_Asym_Pause@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
LBB0_17:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_LINK_SPEED_MSK_100MB,4,2  ## @BNXT_LINK_SPEED_MSK_100MB
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_1GB,4,2    ## @BNXT_LINK_SPEED_MSK_1GB
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_2_5GB,4,2  ## @BNXT_LINK_SPEED_MSK_2_5GB
	.comm	_ADVERTISED_2500baseX_Full,4,2  ## @ADVERTISED_2500baseX_Full
	.comm	_BNXT_LINK_SPEED_MSK_10GB,4,2   ## @BNXT_LINK_SPEED_MSK_10GB
	.comm	_ADVERTISED_10000baseT_Full,4,2 ## @ADVERTISED_10000baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_40GB,4,2   ## @BNXT_LINK_SPEED_MSK_40GB
	.comm	_ADVERTISED_40000baseCR4_Full,4,2 ## @ADVERTISED_40000baseCR4_Full
	.comm	_BNXT_LINK_PAUSE_BOTH,4,2       ## @BNXT_LINK_PAUSE_BOTH
	.comm	_ADVERTISED_Pause,4,2           ## @ADVERTISED_Pause
	.comm	_BNXT_LINK_PAUSE_TX,4,2         ## @BNXT_LINK_PAUSE_TX
	.comm	_ADVERTISED_Asym_Pause,4,2      ## @ADVERTISED_Asym_Pause
	.comm	_BNXT_LINK_PAUSE_RX,4,2         ## @BNXT_LINK_PAUSE_RX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__bnxt_fw_to_ethtool_adv_spds   ; -- Begin function _bnxt_fw_to_ethtool_adv_spds
	.p2align	2
__bnxt_fw_to_ethtool_adv_spds:          ; @_bnxt_fw_to_ethtool_adv_spds
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BNXT_LINK_SPEED_MSK_100MB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_LINK_SPEED_MSK_100MB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _BNXT_LINK_SPEED_MSK_1GB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_1GB@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh12:
	adrp	x10, _BNXT_LINK_SPEED_MSK_2_5GB@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BNXT_LINK_SPEED_MSK_2_5GB@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	ldr	w9, [x10]
Lloh15:
	adrp	x10, _ADVERTISED_2500baseX_Full@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ADVERTISED_2500baseX_Full@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _BNXT_LINK_SPEED_MSK_10GB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BNXT_LINK_SPEED_MSK_10GB@GOTPAGEOFF]
Lloh20:
	adrp	x10, _ADVERTISED_10000baseT_Full@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADVERTISED_10000baseT_Full@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
Lloh24:
	adrp	x10, _BNXT_LINK_SPEED_MSK_40GB@GOTPAGE
Lloh25:
	ldr	x10, [x10, _BNXT_LINK_SPEED_MSK_40GB@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh26:
	ldr	w9, [x10]
Lloh27:
	adrp	x10, _ADVERTISED_40000baseCR4_Full@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ADVERTISED_40000baseCR4_Full@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
Lloh30:
	adrp	x8, _BNXT_LINK_PAUSE_BOTH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BNXT_LINK_PAUSE_BOTH@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	bics	wzr, w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh33:
	adrp	x8, _ADVERTISED_Pause@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADVERTISED_Pause@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh35:
	adrp	x8, _BNXT_LINK_PAUSE_TX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BNXT_LINK_PAUSE_TX@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.3:
Lloh38:
	adrp	x8, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ret
LBB0_5:
Lloh40:
	adrp	x8, _BNXT_LINK_PAUSE_RX@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BNXT_LINK_PAUSE_RX@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_7
; %bb.6:
Lloh43:
	adrp	x8, _ADVERTISED_Pause@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ADVERTISED_Pause@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _ADVERTISED_Asym_Pause@GOTPAGE
Lloh47:
	ldr	x9, [x9, _ADVERTISED_Asym_Pause@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_LINK_SPEED_MSK_100MB,4,2  ; @BNXT_LINK_SPEED_MSK_100MB
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_1GB,4,2    ; @BNXT_LINK_SPEED_MSK_1GB
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_2_5GB,4,2  ; @BNXT_LINK_SPEED_MSK_2_5GB
	.comm	_ADVERTISED_2500baseX_Full,4,2  ; @ADVERTISED_2500baseX_Full
	.comm	_BNXT_LINK_SPEED_MSK_10GB,4,2   ; @BNXT_LINK_SPEED_MSK_10GB
	.comm	_ADVERTISED_10000baseT_Full,4,2 ; @ADVERTISED_10000baseT_Full
	.comm	_BNXT_LINK_SPEED_MSK_40GB,4,2   ; @BNXT_LINK_SPEED_MSK_40GB
	.comm	_ADVERTISED_40000baseCR4_Full,4,2 ; @ADVERTISED_40000baseCR4_Full
	.comm	_BNXT_LINK_PAUSE_BOTH,4,2       ; @BNXT_LINK_PAUSE_BOTH
	.comm	_ADVERTISED_Pause,4,2           ; @ADVERTISED_Pause
	.comm	_BNXT_LINK_PAUSE_TX,4,2         ; @BNXT_LINK_PAUSE_TX
	.comm	_ADVERTISED_Asym_Pause,4,2      ; @ADVERTISED_Asym_Pause
	.comm	_BNXT_LINK_PAUSE_RX,4,2         ; @BNXT_LINK_PAUSE_RX
.subsections_via_symbols
