	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_net_stats_ctx_alloc
_bnxt_re_net_stats_ctx_alloc:           ## @bnxt_re_net_stats_ctx_alloc
	.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	$0, -56(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %rbx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_INVALID_STATS_CTX_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HWRM_STAT_CTX_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_re_init_hwrm_hdr
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_cpu_to_le32
	movl	%eax, -72(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le64
	movl	%eax, -76(%rbp)
	movq	_STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_DFLT_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	movl	$8, %r8d
	callq	_bnxt_re_fill_fw_msg
	movq	(%rbx), %rax
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	negl	%eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INVALID_STATS_CTX_ID,4,2       ## @INVALID_STATS_CTX_ID
	.comm	_HWRM_STAT_CTX_ALLOC,4,2        ## @HWRM_STAT_CTX_ALLOC
	.comm	_STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE,4,2 ## @STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ## @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.no_dead_strip	_bnxt_re_net_stats_ctx_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_net_stats_ctx_alloc
_bnxt_re_net_stats_ctx_alloc:           ; @bnxt_re_net_stats_ctx_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	x20, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _INVALID_STATS_CTX_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INVALID_STATS_CTX_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x2]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh6:
	adrp	x8, _HWRM_STAT_CTX_ALLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_STAT_CTX_ALLOC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x22
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_re_init_hwrm_hdr
	mov	w0, #1000
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	mov	x0, x21
	bl	_cpu_to_le64
Lloh9:
	adrp	x8, _STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #8]
Lloh12:
	adrp	x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DFLT_HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, sp
	add	x1, sp, #8
	add	x3, sp, #24
	mov	w2, #16
	mov	w4, #8
	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]
	mov	x2, sp
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INVALID_STATS_CTX_ID,4,2       ; @INVALID_STATS_CTX_ID
	.comm	_HWRM_STAT_CTX_ALLOC,4,2        ; @HWRM_STAT_CTX_ALLOC
	.comm	_STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE,4,2 ; @STAT_CTX_ALLOC_REQ_STAT_CTX_FLAGS_ROCE
	.comm	_DFLT_HWRM_CMD_TIMEOUT,4,2      ; @DFLT_HWRM_CMD_TIMEOUT
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.no_dead_strip	_bnxt_re_net_stats_ctx_alloc
.subsections_via_symbols
