	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_stat_ctx_free
_bnxt_hwrm_stat_ctx_free:               ## @bnxt_hwrm_stat_ctx_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, 8(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	callq	_BNXT_CHIP_TYPE_NITRO_A0
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_HWRM_STAT_CTX_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r13), %eax
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	_INVALID_STATS_CTX_ID@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %r12
	movq	(%r12), %rdi
	cmpq	(%r14), %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	%r13, %rdi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	__hwrm_send_message
	movl	%eax, %r15d
	movq	(%r14), %rax
	movq	%rax, (%r12)
	movl	(%r13), %eax
	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	_HWRM_STAT_CTX_FREE,4,2         ## @HWRM_STAT_CTX_FREE
	.comm	_INVALID_STATS_CTX_ID,8,3       ## @INVALID_STATS_CTX_ID
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_stat_ctx_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_stat_ctx_free
_bnxt_hwrm_stat_ctx_free:               ; @bnxt_hwrm_stat_ctx_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_BNXT_CHIP_TYPE_NITRO_A0
	cbz	x0, LBB0_3
LBB0_2:
	mov	w21, #0
	b	LBB0_10
LBB0_3:
Lloh0:
	adrp	x8, _HWRM_STAT_CTX_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_STAT_CTX_FREE@GOTPAGEOFF]
Lloh2:
	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, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x22, #0
	mov	w21, #0
Lloh3:
	adrp	x23, _INVALID_STATS_CTX_ID@GOTPAGE
Lloh4:
	ldr	x23, [x23, _INVALID_STATS_CTX_ID@GOTPAGEOFF]
Lloh5:
	adrp	x24, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh6:
	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, w8, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x25, [x9, x22, lsl #3]
	ldr	x0, [x25]
	ldr	x9, [x23]
	cmp	x0, x9
	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]
	str	x8, [x25]
	ldr	w8, [x19]
	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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_STAT_CTX_FREE,4,2         ; @HWRM_STAT_CTX_FREE
	.comm	_INVALID_STATS_CTX_ID,8,3       ; @INVALID_STATS_CTX_ID
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_stat_ctx_free
.subsections_via_symbols
