	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_send_msg
_bnxt_send_msg:                         ## @bnxt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_BNXT_ROCE_ULP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 24(%r12)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_6
LBB0_3:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	24(%r14), %rbx
	movl	16(%r12), %edi
	callq	_cpu_to_le64
	movl	%eax, (%rbx)
	movq	24(%r14), %rsi
	movl	12(%r14), %ecx
	movl	16(%r14), %edx
	movq	%r12, %rdi
	callq	__hwrm_send_message
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r12), %rbx
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rdx
	cmpq	%rax, %rdx
	cmovgeq	%rax, %rdx
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_memcpy
LBB0_5:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_ROCE_ULP,4,2              ## @BNXT_ROCE_ULP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_bnxt_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_send_msg
_bnxt_send_msg:                         ; @bnxt_send_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	x0, [x0]
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _BNXT_ROCE_ULP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_ROCE_ULP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x21, [x20, #24]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le64
	str	w0, [x21]
	ldr	x1, [x20, #24]
	ldp	w3, w2, [x20, #12]
	mov	x0, x19
	bl	__hwrm_send_message
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x22, [x19, #8]
	ldr	w0, [x22]
	bl	_le16_to_cpu
	ldr	x8, [x20]
	cmp	x8, x0
	csel	x2, x8, x0, lt
	ldr	w0, [x20, #8]
	mov	x1, x22
	bl	_memcpy
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_ROCE_ULP,4,2              ; @BNXT_ROCE_ULP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_bnxt_send_msg
.subsections_via_symbols
