	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_init_ring_grps
_bnxt_init_ring_grps:                   ## @bnxt_init_ring_grps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	movq	8(%r14), %rax
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	xorl	%edx, %edx
	movq	_INVALID_HW_RING_ID@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rsi), %rdi
	movq	%rdi, 24(%rax,%rdx)
	movq	(%rsi), %rdi
	movq	%rdi, 16(%rax,%rdx)
	movq	(%rsi), %rdi
	movq	%rdi, 8(%rax,%rdx)
	movq	(%rsi), %rdi
	movq	%rdi, (%rax,%rdx)
	addq	$40, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rsi), %rdi
	movq	%rdi, 32(%rax,%rdx)
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INVALID_HW_RING_ID,8,3         ## @INVALID_HW_RING_ID
	.no_dead_strip	_bnxt_init_ring_grps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_init_ring_grps
_bnxt_init_ring_grps:                   ; @bnxt_init_ring_grps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cbz	w1, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x9, [x20, #8]
	add	x9, x9, #16
Lloh3:
	adrp	x10, _INVALID_HW_RING_ID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _INVALID_HW_RING_ID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10]
	str	x11, [x9, #8]
	ldr	x11, [x10]
	str	x11, [x9]
	ldr	x11, [x10]
	stur	x11, [x9, #-8]
	ldr	x11, [x10]
	stur	x11, [x9, #-16]
	add	x9, x9, #40
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w19, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x10]
	str	x11, [x9, #16]
	b	LBB0_4
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INVALID_HW_RING_ID,8,3         ; @INVALID_HW_RING_ID
	.no_dead_strip	_bnxt_init_ring_grps
.subsections_via_symbols
