	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_get_pkgver
_bnxt_get_pkgver:                       ## @bnxt_get_pkgver
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	$0, -32(%rbp)
	movq	_BNX_DIR_TYPE_PKG_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BNX_DIR_ORDINAL_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BNX_DIR_EXT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-28(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	callq	_bnxt_find_nvram_item
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	-28(%rbp), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%rax, %r8
	callq	_bnxt_get_nvram_item
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_2:
	movq	8(%r14), %rdi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_BNX_PKG_LOG_FIELD_IDX_PKG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-28(%rbp), %edx
	movq	%r15, %rsi
	callq	_bnxt_parse_pkglog
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_8
## %bb.6:
	movsbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	callq	_strlen
	movslq	%eax, %rsi
	movq	(%r14), %rdi
	addq	%rsi, %rdi
	movq	_FW_VER_STR_LEN@GOTPCREL(%rip), %rax
	notl	%esi
	addl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rbx, %rcx
	callq	_snprintf
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX_DIR_TYPE_PKG_LOG,4,2       ## @BNX_DIR_TYPE_PKG_LOG
	.comm	_BNX_DIR_ORDINAL_FIRST,4,2      ## @BNX_DIR_ORDINAL_FIRST
	.comm	_BNX_DIR_EXT_NONE,4,2           ## @BNX_DIR_EXT_NONE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate memory for pkg version, length = %u\n"

	.comm	_BNX_PKG_LOG_FIELD_IDX_PKG_VERSION,4,2 ## @BNX_PKG_LOG_FIELD_IDX_PKG_VERSION
	.comm	_FW_VER_STR_LEN,4,2             ## @FW_VER_STR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"/pkg %s"

	.no_dead_strip	_bnxt_get_pkgver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_get_pkgver
_bnxt_get_pkgver:                       ; @bnxt_get_pkgver
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _BNX_DIR_TYPE_PKG_LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX_DIR_TYPE_PKG_LOG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BNX_DIR_ORDINAL_FIRST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX_DIR_ORDINAL_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BNX_DIR_EXT_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX_DIR_EXT_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x4, sp, #12
	add	x6, sp, #8
	mov	x0, x21
	mov	x5, #0
	bl	_bnxt_find_nvram_item
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w0, [sp, #8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldp	w3, w1, [sp, #8]
	mov	x0, x21
	mov	w2, #0
	mov	x4, x20
	bl	_bnxt_get_nvram_item
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_kfree
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
	ldr	w2, [sp, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_5:
	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
LBB0_6:
Lloh14:
	adrp	x8, _BNX_PKG_LOG_FIELD_IDX_PKG_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BNX_PKG_LOG_FIELD_IDX_PKG_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
	mov	x1, x20
	bl	_bnxt_parse_pkglog
	cbz	x0, LBB0_3
; %bb.7:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_3
; %bb.8:
	sxtb	w0, w8
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.9:
	ldr	x0, [x19]
	bl	_strlen
	ldr	x8, [x19]
	add	x8, x8, w0, sxtw
Lloh17:
	adrp	x9, _FW_VER_STR_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FW_VER_STR_LEN@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	mvn	w10, w0
	add	w1, w9, w10
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	mov	x3, x21
	bl	_snprintf
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX_DIR_TYPE_PKG_LOG,4,2       ; @BNX_DIR_TYPE_PKG_LOG
	.comm	_BNX_DIR_ORDINAL_FIRST,4,2      ; @BNX_DIR_ORDINAL_FIRST
	.comm	_BNX_DIR_EXT_NONE,4,2           ; @BNX_DIR_EXT_NONE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate memory for pkg version, length = %u\n"

	.comm	_BNX_PKG_LOG_FIELD_IDX_PKG_VERSION,4,2 ; @BNX_PKG_LOG_FIELD_IDX_PKG_VERSION
	.comm	_FW_VER_STR_LEN,4,2             ; @FW_VER_STR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"/pkg %s"

	.no_dead_strip	_bnxt_get_pkgver
.subsections_via_symbols
