	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npa_aq_enqueue_wait
_npa_aq_enqueue_wait:                   ## @npa_aq_enqueue_wait
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	8(%rbx), %rax
	movq	(%rax), %r13
	movl	(%rsi), %esi
	movq	_NPA_AF_AQ_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rvu_read64
	sarl	$4, %eax
	movq	_AQ_PTR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	imull	%edx, %eax
	movslq	%eax, %rdi
	addq	8(%rcx), %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r15), %esi
	movq	_NPA_AF_AQ_DOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_rvu_write64
	movl	$-1000, %ebx                    ## imm = 0xFC18
	movq	_NPA_AQ_COMP_NOTDONE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	movq	_NPA_AQ_COMP_GOOD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NPA_AF_AQ_STATUS,4,2           ## @NPA_AF_AQ_STATUS
	.comm	_AQ_PTR_MASK,4,2                ## @AQ_PTR_MASK
	.comm	_NPA_AF_AQ_DOOR,4,2             ## @NPA_AF_AQ_DOOR
	.comm	_NPA_AQ_COMP_NOTDONE,8,3        ## @NPA_AQ_COMP_NOTDONE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NPA_AQ_COMP_GOOD,8,3           ## @NPA_AQ_COMP_GOOD
	.no_dead_strip	_npa_aq_enqueue_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npa_aq_enqueue_wait
_npa_aq_enqueue_wait:                   ; @npa_aq_enqueue_wait
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x1, #8]
	ldr	x8, [x23, #8]
	ldr	x19, [x8]
	ldr	w1, [x1]
Lloh0:
	adrp	x8, _NPA_AF_AQ_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NPA_AF_AQ_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_rvu_read64
Lloh3:
	adrp	x8, _AQ_PTR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_PTR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0, asr #4
	ldr	x9, [x23]
	ldr	x10, [x9, #8]
	ldr	w2, [x9]
	mul	w8, w2, w8
	add	x0, x10, w8, sxtw
	mov	x1, x20
	bl	_memcpy
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	bl	_wmb
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _NPA_AF_AQ_DOOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NPA_AF_AQ_DOOR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #1
	bl	_rvu_write64
	mov	w20, #-1000
Lloh9:
	adrp	x21, _NPA_AQ_COMP_NOTDONE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _NPA_AQ_COMP_NOTDONE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	mov	w0, #1
	bl	_udelay
	adds	w20, w20, #1
	b.lo	LBB0_1
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x9, _NPA_AQ_COMP_GOOD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NPA_AQ_COMP_GOOD@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NPA_AF_AQ_STATUS,4,2           ; @NPA_AF_AQ_STATUS
	.comm	_AQ_PTR_MASK,4,2                ; @AQ_PTR_MASK
	.comm	_NPA_AF_AQ_DOOR,4,2             ; @NPA_AF_AQ_DOOR
	.comm	_NPA_AQ_COMP_NOTDONE,8,3        ; @NPA_AQ_COMP_NOTDONE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NPA_AQ_COMP_GOOD,8,3           ; @NPA_AQ_COMP_GOOD
	.no_dead_strip	_npa_aq_enqueue_wait
.subsections_via_symbols
