	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwrm_ring_free_send_msg
_hwrm_ring_free_send_msg:               ## @hwrm_ring_free_send_msg
	.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
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_BNXT_STATE_FW_FATAL_COND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_HWRM_RING_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, -52(%rbp)
	movl	(%r12), %edi
	callq	_cpu_to_le16
	movl	%eax, -56(%rbp)
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movl	$12, %edx
	callq	__hwrm_send_message
	movl	%eax, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.2:
	testq	%r13, %r13
	je	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movq	%r13, %r8
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_FW_FATAL_COND,4,2   ## @BNXT_STATE_FW_FATAL_COND
	.comm	_HWRM_RING_FREE,4,2             ## @HWRM_RING_FREE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm_ring_free type %d failed. rc:%x err:%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_hwrm_ring_free_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwrm_ring_free_send_msg
_hwrm_ring_free_send_msg:               ; @hwrm_ring_free_send_msg
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _BNXT_STATE_FW_FATAL_COND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_FW_FATAL_COND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _HWRM_RING_FREE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HWRM_RING_FREE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x20
	mov	x3, x22
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	str	w19, [sp, #4]
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	w0, [sp]
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_lock
Lloh6:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #12
	bl	__hwrm_send_message
	mov	x21, x0
	ldr	w0, [x24]
	bl	_le16_to_cpu
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_unlock
	cmp	w21, #0
	ccmp	x22, #0, #0, eq
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_netdev_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_FW_FATAL_COND,4,2   ; @BNXT_STATE_FW_FATAL_COND
	.comm	_HWRM_RING_FREE,4,2             ; @HWRM_RING_FREE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm_ring_free type %d failed. rc:%x err:%x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_hwrm_ring_free_send_msg
.subsections_via_symbols
