	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_ethtool_init              ## -- Begin function bnxt_ethtool_init
	.p2align	4, 0x90
_bnxt_ethtool_init:                     ## @bnxt_ethtool_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	movl	$0, -56(%rbp)
	movq	_BNXT_FW_CAP_PKG_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rdi
	callq	_bnxt_get_pkgver
LBB0_2:
	movl	$0, 4(%rbx)
	cmpl	$67332, 8(%rbx)                 ## imm = 0x10704
	jl	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_BNXT_SINGLE_PF
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_HWRM_SELFTEST_QLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	12(%rbx), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	__hwrm_send_message
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 16(%rbx)
	movq	_BNXT_DRV_TESTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%r12), %eax
	movq	_BNXT_MAX_TEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, 4(%rbx)
	movl	4(%r12), %eax
	movl	%eax, (%r15)
	movl	16(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
LBB0_11:
	cmpl	$0, 4(%rbx)
	jle	LBB0_5
## %bb.12:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %r13
	movq	_BNXT_MACLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_BNXT_PHYLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_BNXT_EXTLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_BNXT_IRQ_TEST_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	callq	_strcpy
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r15
	movslq	4(%rbx), %rax
	addq	$32, %r14
	cmpq	%rax, %r15
	jl	LBB0_16
	jmp	LBB0_5
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%r14d, %esi
	andl	$-32, %esi
	addq	8(%r12), %rsi
	movq	_ETH_GSTRING_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_strlcpy
	movq	_ETH_GSTRING_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r13, %rdi
	callq	_strlen
	subq	%rax, %r12
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_strncat
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_ETH_GSTRING_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r13, %rdi
	callq	_strlen
	subq	%rax, %r12
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movq	%r13, %rdi
	btl	%r15d, %eax
	jae	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	L_.str.6(%rip), %rsi
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdx
	callq	_strncat
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FW_CAP_PKG_VER,4,2        ## @BNXT_FW_CAP_PKG_VER
	.comm	_HWRM_SELFTEST_QLIST,4,2        ## @HWRM_SELFTEST_QLIST
	.comm	_HWRM_CMD_TIMEOUT,8,3           ## @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_BNXT_DRV_TESTS,4,2             ## @BNXT_DRV_TESTS
	.comm	_BNXT_MAX_TEST,4,2              ## @BNXT_MAX_TEST
	.comm	_BNXT_MACLPBK_TEST_IDX,4,2      ## @BNXT_MACLPBK_TEST_IDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mac loopback test (offline)"

	.comm	_BNXT_PHYLPBK_TEST_IDX,4,2      ## @BNXT_PHYLPBK_TEST_IDX
L_.str.1:                               ## @.str.1
	.asciz	"Phy loopback test (offline)"

	.comm	_BNXT_EXTLPBK_TEST_IDX,4,2      ## @BNXT_EXTLPBK_TEST_IDX
L_.str.2:                               ## @.str.2
	.asciz	"Ext loopback test (offline)"

	.comm	_BNXT_IRQ_TEST_IDX,4,2          ## @BNXT_IRQ_TEST_IDX
L_.str.3:                               ## @.str.3
	.asciz	"Interrupt_test (offline)"

	.comm	_ETH_GSTRING_LEN,8,3            ## @ETH_GSTRING_LEN
L_.str.4:                               ## @.str.4
	.asciz	" test"

L_.str.5:                               ## @.str.5
	.asciz	" (offline)"

L_.str.6:                               ## @.str.6
	.asciz	" (online)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_ethtool_init              ; -- Begin function bnxt_ethtool_init
	.p2align	2
_bnxt_ethtool_init:                     ; @bnxt_ethtool_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x28, [x0, #32]
	str	wzr, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_FW_CAP_PKG_VER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FW_CAP_PKG_VER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #24]
	bl	_bnxt_get_pkgver
LBB0_2:
	str	wzr, [x19, #4]
	ldr	w8, [x19, #8]
	mov	w9, #1796
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_BNXT_SINGLE_PF
	cbz	w0, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _HWRM_SELFTEST_QLIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_SELFTEST_QLIST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x20, x19, #12
	mov	x0, x20
	bl	_mutex_lock
Lloh6:
	adrp	x22, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
	ldr	x3, [x22]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #4
	bl	__hwrm_send_message
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	x21, [x19, #16]
	cbnz	x21, LBB0_9
; %bb.8:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_5
LBB0_9:
	str	x21, [x19, #16]
Lloh11:
	adrp	x8, _BNXT_DRV_TESTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNXT_DRV_TESTS@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x10, _BNXT_MAX_TEST@GOTPAGE
Lloh15:
	ldr	x10, [x10, _BNXT_MAX_TEST@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	csel	w8, w8, w10, lt
	str	w8, [x19, #4]
	ldr	w8, [x28, #4]
	str	w8, [x21]
	ldr	w0, [x28, #16]
	bl	_le16_to_cpu
	str	x0, [x21, #16]
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x22]
	str	x8, [x21, #16]
LBB0_11:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.12:
	mov	x25, #0
	mov	x26, #0
Lloh17:
	adrp	x24, _BNXT_MACLPBK_TEST_IDX@GOTPAGE
Lloh18:
	ldr	x24, [x24, _BNXT_MACLPBK_TEST_IDX@GOTPAGEOFF]
Lloh19:
	adrp	x22, l_.str@PAGE
Lloh20:
	add	x22, x22, l_.str@PAGEOFF
Lloh21:
	adrp	x23, _BNXT_PHYLPBK_TEST_IDX@GOTPAGE
Lloh22:
	ldr	x23, [x23, _BNXT_PHYLPBK_TEST_IDX@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	x27, [x8, x26, lsl #3]
	ldr	w8, [x24]
	cmp	x26, x8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
	mov	x1, x22
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x23]
	cmp	x26, x8
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh25:
	adrp	x8, _BNXT_EXTLPBK_TEST_IDX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNXT_EXTLPBK_TEST_IDX@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	x26, x8
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh30:
	adrp	x8, _BNXT_IRQ_TEST_IDX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BNXT_IRQ_TEST_IDX@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	x26, x8
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_strcpy
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19, #4]
	add	x25, x25, #32
	cmp	x26, x8
	b.lt	LBB0_13
	b	LBB0_5
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x28, #8]
	and	x9, x25, #0xffffffe0
	add	x1, x8, x9
Lloh35:
	adrp	x22, _ETH_GSTRING_LEN@GOTPAGE
Lloh36:
	ldr	x22, [x22, _ETH_GSTRING_LEN@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x0, x27
	bl	_strlcpy
	ldr	x23, [x22]
	mov	x0, x27
	bl	_strlen
	sub	x2, x23, x0
	mov	x0, x27
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strncat
	ldr	w23, [x21]
	ldr	x22, [x22]
	mov	x0, x27
	bl	_strlen
	sub	x2, x22, x0
	mov	x0, x27
	lsr	w8, w23, w26
	tbz	w8, #0, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_26:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_strncat
Lloh43:
	adrp	x22, l_.str@PAGE
Lloh44:
	add	x22, x22, l_.str@PAGEOFF
Lloh45:
	adrp	x23, _BNXT_PHYLPBK_TEST_IDX@GOTPAGE
Lloh46:
	ldr	x23, [x23, _BNXT_PHYLPBK_TEST_IDX@GOTPAGEOFF]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FW_CAP_PKG_VER,4,2        ; @BNXT_FW_CAP_PKG_VER
	.comm	_HWRM_SELFTEST_QLIST,4,2        ; @HWRM_SELFTEST_QLIST
	.comm	_HWRM_CMD_TIMEOUT,8,3           ; @HWRM_CMD_TIMEOUT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_BNXT_DRV_TESTS,4,2             ; @BNXT_DRV_TESTS
	.comm	_BNXT_MAX_TEST,4,2              ; @BNXT_MAX_TEST
	.comm	_BNXT_MACLPBK_TEST_IDX,4,2      ; @BNXT_MACLPBK_TEST_IDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mac loopback test (offline)"

	.comm	_BNXT_PHYLPBK_TEST_IDX,4,2      ; @BNXT_PHYLPBK_TEST_IDX
l_.str.1:                               ; @.str.1
	.asciz	"Phy loopback test (offline)"

	.comm	_BNXT_EXTLPBK_TEST_IDX,4,2      ; @BNXT_EXTLPBK_TEST_IDX
l_.str.2:                               ; @.str.2
	.asciz	"Ext loopback test (offline)"

	.comm	_BNXT_IRQ_TEST_IDX,4,2          ; @BNXT_IRQ_TEST_IDX
l_.str.3:                               ; @.str.3
	.asciz	"Interrupt_test (offline)"

	.comm	_ETH_GSTRING_LEN,8,3            ; @ETH_GSTRING_LEN
l_.str.4:                               ; @.str.4
	.asciz	" test"

l_.str.5:                               ; @.str.5
	.asciz	" (offline)"

l_.str.6:                               ; @.str.6
	.asciz	" (online)"

.subsections_via_symbols
