	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_alloc_stats
_bnxt_alloc_stats:                      ## @bnxt_alloc_stats
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	112(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.1:
	movl	(%r12), %r14d
	xorl	%ebx, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	104(%r12), %rax
	movq	(%rax,%rbx,8), %r15
	leaq	16(%r15), %rdx
	movl	(%r13), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_INVALID_STATS_CTX_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	incq	%rbx
	cmpq	8(%r12), %rbx
	jb	LBB0_2
LBB0_5:
	movq	%r12, %rdi
	callq	_BNXT_VF
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_24
## %bb.6:
	movq	16(%r12), %rax
	movq	_CHIP_NUM_58700@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_24
## %bb.7:
	cmpq	$0, 88(%r12)
	jne	LBB0_10
## %bb.8:
	movl	$1032, 24(%r12)                 ## imm = 0x408
	leaq	76(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1032, %esi                     ## imm = 0x408
	callq	_dma_alloc_coherent
	movq	%rax, 88(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	addq	$513, %rax                      ## imm = 0x201
	movq	%rax, 96(%r12)
	movslq	76(%r12), %rax
	addq	$516, %rax                      ## imm = 0x204
	movq	%rax, 80(%r12)
	movq	_BNXT_FLAG_PORT_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r12)
LBB0_10:
	movl	28(%r12), %eax
	cmpl	$67588, %eax                    ## imm = 0x10804
	jl	LBB0_12
## %bb.11:
	cmpl	$67840, %eax                    ## imm = 0x10900
	jne	LBB0_13
LBB0_12:
	movq	_BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r12)
	je	LBB0_24
LBB0_13:
	cmpq	$0, 64(%r12)
	jne	LBB0_15
## %bb.14:
	leaq	72(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 64(%r12)
	testq	%rax, %rax
	je	LBB0_24
LBB0_15:
	cmpq	$0, 56(%r12)
	jne	LBB0_20
## %bb.16:
	cmpl	$67841, 28(%r12)                ## imm = 0x10901
	jg	LBB0_18
## %bb.17:
	movq	_BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r12)
	je	LBB0_19
LBB0_18:
	leaq	52(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 56(%r12)
LBB0_19:
	movq	_BNXT_FLAG_PORT_STATS_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r12)
LBB0_20:
	cmpq	$0, 40(%r12)
	jne	LBB0_24
## %bb.21:
	movq	_BNXT_FW_CAP_PCIE_STATS_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r12)
	je	LBB0_24
## %bb.22:
	leaq	48(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_BNXT_FLAG_PCIE_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r12)
	jmp	LBB0_24
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INVALID_STATS_CTX_ID,4,2       ## @INVALID_STATS_CTX_ID
	.comm	_CHIP_NUM_58700,8,3             ## @CHIP_NUM_58700
	.comm	_BNXT_FLAG_PORT_STATS,4,2       ## @BNXT_FLAG_PORT_STATS
	.comm	_BNXT_FW_CAP_EXT_STATS_SUPPORTED,4,2 ## @BNXT_FW_CAP_EXT_STATS_SUPPORTED
	.comm	_BNXT_FLAG_PORT_STATS_EXT,4,2   ## @BNXT_FLAG_PORT_STATS_EXT
	.comm	_BNXT_FW_CAP_PCIE_STATS_SUPPORTED,4,2 ## @BNXT_FW_CAP_PCIE_STATS_SUPPORTED
	.comm	_BNXT_FLAG_PCIE_STATS,4,2       ## @BNXT_FLAG_PCIE_STATS
	.no_dead_strip	_bnxt_alloc_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_alloc_stats
_bnxt_alloc_stats:                      ; @bnxt_alloc_stats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0, #112]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, #0
	ldr	w21, [x19]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _INVALID_STATS_CTX_ID@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INVALID_STATS_CTX_ID@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #104]
	ldr	x25, [x8, x22, lsl #3]
	add	x2, x25, #16
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	x0, [x25, #8]
	cbz	x0, LBB0_21
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x24]
	str	w8, [x25]
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.lo	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_BNXT_VF
	cbnz	x0, LBB0_20
; %bb.5:
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x9, _CHIP_NUM_58700@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CHIP_NUM_58700@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.6:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_9
; %bb.7:
	mov	w8, #1032
	str	w8, [x19, #24]
	add	x2, x19, #76
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #1032
	bl	_dma_alloc_coherent
	str	x0, [x19, #88]
	cbz	x0, LBB0_21
; %bb.8:
	add	x8, x0, #513
	str	x8, [x19, #96]
	ldrsw	x8, [x19, #76]
	add	x8, x8, #516
	str	x8, [x19, #80]
Lloh10:
	adrp	x8, _BNXT_FLAG_PORT_STATS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNXT_FLAG_PORT_STATS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	orr	w8, w9, w8
	str	w8, [x19, #36]
LBB0_9:
	mov	w21, #2052
	movk	w21, #1, lsl #16
	ldr	w8, [x19, #28]
	cmp	w8, w21
	b.lt	LBB0_11
; %bb.10:
	add	w9, w21, #252
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_11:
	ldr	w8, [x19, #32]
Lloh13:
	adrp	x9, _BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
LBB0_12:
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_14
; %bb.13:
	add	x2, x19, #72
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #64]
	cbz	x0, LBB0_22
LBB0_14:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_19
; %bb.15:
	ldr	w8, [x19, #28]
	add	w9, w21, #253
	cmp	w8, w9
	b.gt	LBB0_17
; %bb.16:
	ldr	w8, [x19, #32]
Lloh19:
	adrp	x9, _BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BNXT_FW_CAP_EXT_STATS_SUPPORTED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
LBB0_17:
	add	x2, x19, #52
Lloh22:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #56]
LBB0_18:
Lloh25:
	adrp	x8, _BNXT_FLAG_PORT_STATS_EXT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BNXT_FLAG_PORT_STATS_EXT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	orr	w8, w9, w8
	str	w8, [x19, #36]
LBB0_19:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_23
LBB0_20:
	mov	w0, #0
	b	LBB0_22
LBB0_21:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	ldr	w8, [x19, #32]
Lloh31:
	adrp	x9, _BNXT_FW_CAP_PCIE_STATS_SUPPORTED@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BNXT_FW_CAP_PCIE_STATS_SUPPORTED@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.24:
	add	x2, x19, #48
Lloh34:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	x0, [x19, #40]
	cbz	x0, LBB0_22
; %bb.25:
	mov	w0, #0
Lloh37:
	adrp	x8, _BNXT_FLAG_PCIE_STATS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BNXT_FLAG_PCIE_STATS@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	orr	w8, w9, w8
	str	w8, [x19, #36]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INVALID_STATS_CTX_ID,4,2       ; @INVALID_STATS_CTX_ID
	.comm	_CHIP_NUM_58700,8,3             ; @CHIP_NUM_58700
	.comm	_BNXT_FLAG_PORT_STATS,4,2       ; @BNXT_FLAG_PORT_STATS
	.comm	_BNXT_FW_CAP_EXT_STATS_SUPPORTED,4,2 ; @BNXT_FW_CAP_EXT_STATS_SUPPORTED
	.comm	_BNXT_FLAG_PORT_STATS_EXT,4,2   ; @BNXT_FLAG_PORT_STATS_EXT
	.comm	_BNXT_FW_CAP_PCIE_STATS_SUPPORTED,4,2 ; @BNXT_FW_CAP_PCIE_STATS_SUPPORTED
	.comm	_BNXT_FLAG_PCIE_STATS,4,2       ; @BNXT_FLAG_PCIE_STATS
	.no_dead_strip	_bnxt_alloc_stats
.subsections_via_symbols
