	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_ring_grp_free
_bnxt_hwrm_ring_grp_free:               ## @bnxt_hwrm_ring_grp_free
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	xorl	%r15d, %r15d
	cmpq	$0, 24(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_9
## %bb.2:
	movq	_HWRM_RING_GRP_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	16(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	24(%rbx), %rcx
	xorl	%r15d, %r15d
	movq	_INVALID_HW_RING_ID@GOTPCREL(%rip), %r13
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	cmpq	%rax, %r14
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%r14,8), %rdi
	cmpq	(%r13), %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$8, %edx
	callq	__hwrm_send_message
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	8(%rbx), %rax
	jmp	LBB0_7
LBB0_3:
	xorl	%r15d, %r15d
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_HWRM_RING_GRP_FREE,4,2         ## @HWRM_RING_GRP_FREE
	.comm	_INVALID_HW_RING_ID,8,3         ## @INVALID_HW_RING_ID
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_ring_grp_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_ring_grp_free
_bnxt_hwrm_ring_grp_free:               ; @bnxt_hwrm_ring_grp_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	w21, #0
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _HWRM_RING_GRP_FREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_RING_GRP_FREE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	add	x20, x19, #16
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.4:
	mov	w21, #0
	mov	x22, #0
	ldr	x9, [x19, #24]
Lloh6:
	adrp	x23, _INVALID_HW_RING_ID@GOTPAGE
Lloh7:
	ldr	x23, [x23, _INVALID_HW_RING_ID@GOTPAGEOFF]
Lloh8:
	adrp	x24, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x9, x22, lsl #3]
	ldr	x10, [x23]
	cmp	x0, x10
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	ldr	w3, [x24]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	__hwrm_send_message
	mov	x21, x0
	ldr	x8, [x23]
	ldr	x9, [x19, #24]
	str	x8, [x9, x22, lsl #3]
	ldr	x8, [x19, #8]
	b	LBB0_5
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_HWRM_RING_GRP_FREE,4,2         ; @HWRM_RING_GRP_FREE
	.comm	_INVALID_HW_RING_ID,8,3         ; @INVALID_HW_RING_ID
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_ring_grp_free
.subsections_via_symbols
