	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hns_roce_cmd_use_events
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_3:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.space	4
	.space	4
LCPI0_4:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
LCPI0_5:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_6:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_7:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_8:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hns_roce_cmd_use_events
	.p2align	4, 0x90
_hns_roce_cmd_use_events:               ## @hns_roce_cmd_use_events
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kmalloc_array
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movslq	(%r14), %rsi
	testq	%rsi, %rsi
	jle	LBB0_13
## %bb.2:
	movl	%esi, %ecx
	cmpl	$4, %ecx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_4:
	movl	%ecx, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	movq	%r8, %rbx
	andq	$-2, %rbx
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = <0,1,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = <2,2,u,u>
	pcmpeqd	%xmm3, %xmm3
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = <3,3,u,u>
	movdqa	LCPI0_4(%rip), %xmm9            ## xmm9 = [4,4]
	movdqa	LCPI0_5(%rip), %xmm10           ## xmm10 = <4,4,u,u>
	movdqa	LCPI0_6(%rip), %xmm11           ## xmm11 = <6,6,u,u>
	movdqa	LCPI0_7(%rip), %xmm12           ## xmm12 = [8,8]
	movdqa	LCPI0_8(%rip), %xmm13           ## xmm13 = <8,8,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm0
	paddd	%xmm8, %xmm0
	pshufd	$232, %xmm1, %xmm7              ## xmm7 = xmm1[0,2,2,3]
	movdqa	%xmm7, %xmm2
	psubd	%xmm3, %xmm2
	paddd	%xmm4, %xmm7
	punpckldq	%xmm7, %xmm0            ## xmm0 = xmm0[0],xmm7[0],xmm0[1],xmm7[1]
	movdqa	%xmm6, %xmm7
	punpckldq	%xmm2, %xmm7            ## xmm7 = xmm7[0],xmm2[0],xmm7[1],xmm2[1]
	movdqu	%xmm7, (%rax,%rdi,8)
	movdqu	%xmm0, 16(%rax,%rdi,8)
	movdqa	%xmm1, %xmm0
	paddq	%xmm9, %xmm0
	movdqa	%xmm6, %xmm2
	paddd	%xmm10, %xmm2
	movdqa	%xmm6, %xmm7
	paddd	%xmm11, %xmm7
	pshufd	$232, %xmm0, %xmm5              ## xmm5 = xmm0[0,2,2,3]
	movdqa	%xmm5, %xmm0
	psubd	%xmm3, %xmm0
	punpckldq	%xmm0, %xmm2            ## xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
	paddd	%xmm4, %xmm5
	punpckldq	%xmm5, %xmm7            ## xmm7 = xmm7[0],xmm5[0],xmm7[1],xmm5[1]
	movdqu	%xmm2, 32(%rax,%rdi,8)
	movdqu	%xmm7, 48(%rax,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm12, %xmm1
	paddd	%xmm13, %xmm6
	addq	$-2, %rbx
	jne	LBB0_7
## %bb.8:
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqa	LCPI0_2(%rip), %xmm0            ## xmm0 = <2,2,u,u>
	paddd	%xmm6, %xmm0
	leaq	(,%rdi,8), %rbx
	orq	$16, %rbx
	pcmpeqd	%xmm2, %xmm2
	movdqa	%xmm1, %xmm3
	psubd	%xmm2, %xmm3
	paddd	LCPI0_3(%rip), %xmm1
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	punpckldq	%xmm3, %xmm6            ## xmm6 = xmm6[0],xmm3[0],xmm6[1],xmm3[1]
	movdqu	%xmm6, (%rax,%rdi,8)
	movdqu	%xmm0, (%rax,%rbx)
LBB0_11:
	cmpq	%rcx, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, (%rax,%rdx,8)
	leaq	1(%rdx), %rdi
	movl	%edi, 4(%rax,%rdx,8)
	movq	%rdi, %rdx
	cmpq	%rdi, %rcx
	jne	LBB0_12
LBB0_13:
	movl	$-1, -4(%rax,%rsi,8)
	movq	$0, 24(%r14)
	leaq	16(%r14), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sema_init
	leaq	12(%r14), %rdi
	callq	_spin_lock_init
	movq	_CMD_TOKEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$1, 4(%r14)
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <0,1,u,u>
	xorl	%edi, %edi
	movdqa	%xmm1, %xmm6
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_TOKEN_MASK,4,2             ## @CMD_TOKEN_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hns_roce_cmd_use_events
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
lCPI0_2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hns_roce_cmd_use_events
	.p2align	2
_hns_roce_cmd_use_events:               ; @hns_roce_cmd_use_events
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x19]
	cmp	w1, #1
	b.lt	LBB0_10
; %bb.2:
	cmp	w1, #16
	b.hs	LBB0_5
; %bb.3:
	mov	x8, #0
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	and	x8, x1, #0xfffffff0
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
Lloh8:
	adrp	x9, lCPI0_1@PAGE
Lloh9:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	add	x9, x0, #64
Lloh10:
	adrp	x10, lCPI0_2@PAGE
Lloh11:
	ldr	q2, [x10, lCPI0_2@PAGEOFF]
	movi.4s	v4, #4
	movi.4s	v5, #5
	movi.4s	v6, #1
	movi.4s	v7, #8
	movi.4s	v16, #9
	movi.4s	v17, #12
	movi.4s	v18, #13
	mov	w10, #16
	dup.2d	v19, x10
	movi.4s	v20, #16
	mov	x10, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v21, v2, v4
	uzp1.4s	v23, v1, v0
	add.4s	v22, v23, v5
	add.4s	v3, v23, v6
	add.4s	v24, v2, v7
	sub	x11, x9, #64
	st2.4s	{ v2, v3 }, [x11]
	add.4s	v25, v23, v16
	sub	x11, x9, #32
	st2.4s	{ v21, v22 }, [x11]
	add	x11, x9, #128
	st2.4s	{ v24, v25 }, [x9], #32
	add.4s	v21, v2, v17
	add.4s	v22, v23, v18
	st2.4s	{ v21, v22 }, [x9]
	add.2d	v0, v0, v19
	add.2d	v1, v1, v19
	add.4s	v2, v2, v20
	mov	x9, x11
	subs	x10, x10, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x8, x1
	b.eq	LBB0_10
LBB0_8:
	add	x9, x0, x8, lsl #3
	add	x9, x9, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stur	w8, [x9, #-4]
	add	x8, x8, #1
	str	w8, [x9], #8
	cmp	x1, x8
	b.ne	LBB0_9
LBB0_10:
	add	x8, x0, w1, sxtw #3
	mov	w9, #-1
	stur	w9, [x8, #-4]
	str	xzr, [x19, #24]
	add	x0, x19, #16
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sema_init
	add	x0, x19, #12
	bl	_spin_lock_init
	mov	w0, #0
Lloh12:
	adrp	x8, _CMD_TOKEN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_TOKEN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19, #4]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_TOKEN_MASK,4,2             ; @CMD_TOKEN_MASK
.subsections_via_symbols
