	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_rdma_stats          ## -- Begin function ocrdma_mbx_rdma_stats
	.p2align	4, 0x90
_ocrdma_mbx_rdma_stats:                 ## @ocrdma_mbx_rdma_stats
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	(%rbx), %eax
	movl	4(%rbx), %edi
	movl	%eax, 32(%rbx)
	movq	_OCRDMA_MQE_HDR_SGE_CNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_OCRDMA_MQE_HDR_SGE_CNT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, 36(%rbx)
	movq	24(%rbx), %rax
	movq	%rdi, 16(%rax)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_upper_32_bits
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_memcpy
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_OCRDMA_CMD_GET_RDMA_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCRDMA_SUBSYS_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	callq	_ocrdma_init_mch
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movl	%r12d, (%r15)
LBB0_4:
	movq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ocrdma_nonemb_mbx_cmd
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_memcpy
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_6:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_ocrdma_le32_to_cpu
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OCRDMA_MQE_HDR_SGE_CNT_SHIFT,4,2 ## @OCRDMA_MQE_HDR_SGE_CNT_SHIFT
	.comm	_OCRDMA_MQE_HDR_SGE_CNT_MASK,4,2 ## @OCRDMA_MQE_HDR_SGE_CNT_MASK
	.comm	_OCRDMA_CMD_GET_RDMA_STATS,4,2  ## @OCRDMA_CMD_GET_RDMA_STATS
	.comm	_OCRDMA_SUBSYS_ROCE,4,2         ## @OCRDMA_SUBSYS_ROCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_mbx_rdma_stats          ; -- Begin function ocrdma_mbx_rdma_stats
	.p2align	2
_ocrdma_mbx_rdma_stats:                 ; @ocrdma_mbx_rdma_stats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x23, x21, #16
	mov	x0, x23
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _OCRDMA_MQE_HDR_SGE_CNT_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_MQE_HDR_SGE_CNT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh6:
	adrp	x9, _OCRDMA_MQE_HDR_SGE_CNT_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_MQE_HDR_SGE_CNT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w8, w9
	ldr	w9, [x21, #36]
	orr	w8, w9, w8
	ldp	w9, w0, [x21]
	stp	w9, w8, [x21, #32]
	ldr	x8, [x21, #24]
	str	x0, [x8, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_upper_32_bits
	ldr	x8, [x21, #24]
	str	x0, [x8, #8]
	ldr	w9, [x21]
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #24
	bl	_memcpy
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh9:
	adrp	x8, _OCRDMA_CMD_GET_RDMA_STATS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OCRDMA_CMD_GET_RDMA_STATS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _OCRDMA_SUBSYS_ROCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OCRDMA_SUBSYS_ROCE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x20
	bl	_ocrdma_init_mch
	cbz	w22, LBB0_3
; %bb.2:
	str	w22, [x20]
LBB0_3:
	ldr	x2, [x21, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_ocrdma_nonemb_mbx_cmd
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #24
	bl	_memcpy
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ocrdma_le32_to_cpu
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OCRDMA_MQE_HDR_SGE_CNT_SHIFT,4,2 ; @OCRDMA_MQE_HDR_SGE_CNT_SHIFT
	.comm	_OCRDMA_MQE_HDR_SGE_CNT_MASK,4,2 ; @OCRDMA_MQE_HDR_SGE_CNT_MASK
	.comm	_OCRDMA_CMD_GET_RDMA_STATS,4,2  ; @OCRDMA_CMD_GET_RDMA_STATS
	.comm	_OCRDMA_SUBSYS_ROCE,4,2         ; @OCRDMA_SUBSYS_ROCE
.subsections_via_symbols
