	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_query_hwrm_intf_version
_bnxt_re_query_hwrm_intf_version:       ## @bnxt_re_query_hwrm_intf_version
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HWRM_VER_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_re_init_hwrm_hdr
	movq	_HWRM_VERSION_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_HWRM_VERSION_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_HWRM_VERSION_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_DFLT_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	movl	$40, %r8d
	callq	_bnxt_re_fill_fw_msg
	movq	(%r14), %rax
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_VER_GET,4,2               ## @HWRM_VER_GET
	.comm	_HWRM_VERSION_MAJOR,4,2         ## @HWRM_VERSION_MAJOR
	.comm	_HWRM_VERSION_MINOR,4,2         ## @HWRM_VERSION_MINOR
	.comm	_HWRM_VERSION_UPDATE,4,2        ## @HWRM_VERSION_UPDATE
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ## @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to query HW version, rc = 0x%x"

	.no_dead_strip	_bnxt_re_query_hwrm_intf_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_query_hwrm_intf_version
_bnxt_re_query_hwrm_intf_version:       ; @bnxt_re_query_hwrm_intf_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	x20, [x0, #8]
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _HWRM_VER_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_VER_GET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_re_init_hwrm_hdr
Lloh3:
	adrp	x8, _HWRM_VERSION_MAJOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_VERSION_MAJOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh6:
	adrp	x8, _HWRM_VERSION_MINOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_VERSION_MINOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _HWRM_VERSION_UPDATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HWRM_VERSION_UPDATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
Lloh12:
	adrp	x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	add	x0, sp, #8
	add	x1, sp, #16
	add	x3, sp, #32
	mov	w2, #16
	mov	w4, #40
	bl	_bnxt_re_fill_fw_msg
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _BNXT_ROCE_ULP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_rdev_to_dev
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_VER_GET,4,2               ; @HWRM_VER_GET
	.comm	_HWRM_VERSION_MAJOR,4,2         ; @HWRM_VERSION_MAJOR
	.comm	_HWRM_VERSION_MINOR,4,2         ; @HWRM_VERSION_MINOR
	.comm	_HWRM_VERSION_UPDATE,4,2        ; @HWRM_VERSION_UPDATE
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ; @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to query HW version, rc = 0x%x"

	.no_dead_strip	_bnxt_re_query_hwrm_intf_version
.subsections_via_symbols
