	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_stop_qp                ## -- Begin function hisi_qm_stop_qp
	.p2align	4, 0x90
_hisi_qm_stop_qp:                       ## @hisi_qm_stop_qp
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	_QP_STOP@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	4(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_13
## %bb.1:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	$20, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$20, %edi
	callq	_msleep
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_12:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_STOP,4,2                    ## @QP_STOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot drain out data for stopping, Force to stop!\n"

L_.str.1:                               ## @.str.1
	.asciz	"stop queue %u!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hisi_qm_stop_qp                ; -- Begin function hisi_qm_stop_qp
	.p2align	2
_hisi_qm_stop_qp:                       ; @hisi_qm_stop_qp
	.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	x20, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
Lloh0:
	adrp	x23, _QP_STOP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QP_STOP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x21, x20, #4
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_13
; %bb.1:
	add	x22, x20, #8
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.2:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.3:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.4:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.5:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.6:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.7:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.8:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.9:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.10:
	mov	w0, #20
	bl	_msleep
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.11:
	mov	w0, #20
	bl	_msleep
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_12:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_set_bit
	ldr	w2, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_13:
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_STOP,4,2                    ; @QP_STOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot drain out data for stopping, Force to stop!\n"

l_.str.1:                               ; @.str.1
	.asciz	"stop queue %u!"

.subsections_via_symbols
