	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_rcfw_send_message   ## -- Begin function bnxt_qplib_rcfw_send_message
	.p2align	4, 0x90
_bnxt_qplib_rcfw_send_message:          ## @bnxt_qplib_rcfw_send_message
	.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
	movq	%rsi, %r14
	movl	(%rsi), %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	___send_message
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	_RCFW_MAX_COOKIE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	movl	$-255, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_mdelay
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$500, %edi                      ## imm = 0x1F4
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	___send_message
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	_RCFW_MAX_COOKIE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	jne	LBB0_3
LBB0_5:
	andl	%r13d, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_10:
	andl	%edx, %r13d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	___block_for_resp
	jmp	LBB0_13
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	___wait_for_resp
LBB0_13:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	movq	_RCFW_CMD_WAIT_TIME_MS@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_FIRMWARE_TIMED_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	callq	_set_bit
	jmp	LBB0_18
LBB0_15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_16
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCFW_MAX_COOKIE_VALUE,4,2      ## @RCFW_MAX_COOKIE_VALUE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmdq[%#x]=%#x send failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"cmdq[%#x]=%#x timedout (%d)msec\n"

	.comm	_RCFW_CMD_WAIT_TIME_MS,8,3      ## @RCFW_CMD_WAIT_TIME_MS
	.comm	_FIRMWARE_TIMED_OUT,4,2         ## @FIRMWARE_TIMED_OUT
L_.str.2:                               ## @.str.2
	.asciz	"cmdq[%#x]=%#x status %#x\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_rcfw_send_message   ; -- Begin function bnxt_qplib_rcfw_send_message
	.p2align	2
_bnxt_qplib_rcfw_send_message:          ; @bnxt_qplib_rcfw_send_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	ldr	w20, [x1]
	bl	___send_message
	mov	x22, x0
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
Lloh0:
	adrp	x26, _RCFW_MAX_COOKIE_VALUE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RCFW_MAX_COOKIE_VALUE@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w22, LBB0_10
; %bb.1:
	mov	w27, #-255
Lloh2:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x28]
	cmn	w22, w9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x9, _EBUSY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmn	w22, w9
	b.ne	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	w23, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_mdelay
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #500
	mov	w1, #1000
	bl	_usleep_range
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w20, [x25]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x21
	mov	x3, x24
	mov	x4, x23
	bl	___send_message
	mov	x22, x0
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
	ldr	w8, [x26]
	cbz	w22, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	adds	w27, w27, #1
	b.lo	LBB0_2
LBB0_9:
	and	w2, w8, w0
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_err
	b	LBB0_17
LBB0_10:
	and	w24, w8, w0
	mov	x0, x19
	mov	x1, x24
	cbz	w23, LBB0_13
; %bb.11:
	bl	___block_for_resp
	mov	x22, x0
	cbz	w0, LBB0_14
LBB0_12:
	ldr	x0, [x19], #8
Lloh9:
	adrp	x8, _RCFW_CMD_WAIT_TIME_MS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCFW_CMD_WAIT_TIME_MS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x24
	mov	x3, x20
	bl	_dev_err
Lloh14:
	adrp	x8, _FIRMWARE_TIMED_OUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FIRMWARE_TIMED_OUT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_set_bit
	b	LBB0_17
LBB0_13:
	bl	___wait_for_resp
	mov	x22, x0
	cbnz	w0, LBB0_12
LBB0_14:
	ldr	x8, [x21]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	mov	x3, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EFAULT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_16:
	mov	w22, #0
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_RCFW_MAX_COOKIE_VALUE,4,2      ; @RCFW_MAX_COOKIE_VALUE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmdq[%#x]=%#x send failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"cmdq[%#x]=%#x timedout (%d)msec\n"

	.comm	_RCFW_CMD_WAIT_TIME_MS,8,3      ; @RCFW_CMD_WAIT_TIME_MS
	.comm	_FIRMWARE_TIMED_OUT,4,2         ; @FIRMWARE_TIMED_OUT
l_.str.2:                               ; @.str.2
	.asciz	"cmdq[%#x]=%#x status %#x\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
