	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function npa_lf_hwctx_disable
_npa_lf_hwctx_disable:                  ## @npa_lf_hwctx_disable
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %esi
	callq	_rvu_get_pfvf
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_2
## %bb.3:
	leaq	-112(%rbp), %rdi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, -64(%rbp)
	movq	(%rcx), %rax
	movq	_NPA_AQ_CTYPE_POOL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, -72(%rbp)
	movl	$1, -80(%rbp)
	movq	24(%rbx), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_NPA_AF_ERR_AQ_ENQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_NPA_AQ_CTYPE_AURA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.6:
	movq	$0, -88(%rbp)
	movl	$1, -96(%rbp)
	movq	16(%rbx), %rcx
	addq	$8, %rbx
LBB0_7:
	movl	(%rcx), %r15d
	movq	(%rbx), %rbx
	movq	%rax, -112(%rbp)
	movq	_NPA_AQ_INSTOP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.8:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_dev_err
	movl	%r14d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%r13d
	cmpl	%r13d, %r15d
	je	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r13d, -104(%rbp)
	movq	%r12, %rdi
	leaq	-112(%rbp), %rsi
	xorl	%edx, %edx
	callq	_rvu_npa_aq_enq_inst
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	L_.str.1(%rip), %rdx
	movq	_NPA_AQ_CTYPE_AURA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NPA_AF_ERR_AQ_ENQUEUE,4,2      ## @NPA_AF_ERR_AQ_ENQUEUE
	.comm	_NPA_AQ_CTYPE_POOL,8,3          ## @NPA_AQ_CTYPE_POOL
	.comm	_NPA_AQ_CTYPE_AURA,8,3          ## @NPA_AQ_CTYPE_AURA
	.comm	_NPA_AQ_INSTOP_WRITE,4,2        ## @NPA_AQ_INSTOP_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to disable %s:%d context\n"

L_.str.1:                               ## @.str.1
	.asciz	"Aura"

L_.str.2:                               ## @.str.2
	.asciz	"Pool"

	.no_dead_strip	_npa_lf_hwctx_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function npa_lf_hwctx_disable
_npa_lf_hwctx_disable:                  ; @npa_lf_hwctx_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #8]
	bl	_rvu_get_pfvf
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w8, [x19, #8]
	str	w8, [sp, #56]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NPA_AQ_CTYPE_POOL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NPA_AQ_CTYPE_POOL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	str	xzr, [sp, #48]
	mov	w9, #1
	str	w9, [sp, #40]
	ldr	x9, [x21, #24]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _NPA_AF_ERR_AQ_ENQUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NPA_AF_ERR_AQ_ENQUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_14
LBB0_5:
Lloh6:
	adrp	x9, _NPA_AQ_CTYPE_AURA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NPA_AQ_CTYPE_AURA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	str	xzr, [sp, #32]
	mov	w9, #1
	str	w9, [sp, #24]
	ldr	x9, [x21, #16]
	add	x21, x21, #8
LBB0_7:
	ldr	w26, [x9]
	ldr	x21, [x21]
	str	x8, [sp, #8]
Lloh9:
	adrp	x8, _NPA_AQ_INSTOP_WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NPA_AQ_INSTOP_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	cmp	w26, #1
	b.lt	LBB0_13
; %bb.8:
	mov	w23, #0
	mov	w22, #0
Lloh12:
	adrp	x28, l_.str.2@PAGE
Lloh13:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh14:
	adrp	x27, l_.str.1@PAGE
Lloh15:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh16:
	adrp	x24, l_.str@PAGE
Lloh17:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	cmp	w26, w22
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w22, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_rvu_npa_aq_enq_inst
	cbz	w0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, x0
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _NPA_AQ_CTYPE_AURA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NPA_AQ_CTYPE_AURA@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x2, x27, x28, eq
	mov	x1, x24
	mov	x3, x22
	bl	_dev_err
	mov	x23, x25
	b	LBB0_9
LBB0_13:
	mov	w23, #0
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_NPA_AF_ERR_AQ_ENQUEUE,4,2      ; @NPA_AF_ERR_AQ_ENQUEUE
	.comm	_NPA_AQ_CTYPE_POOL,8,3          ; @NPA_AQ_CTYPE_POOL
	.comm	_NPA_AQ_CTYPE_AURA,8,3          ; @NPA_AQ_CTYPE_AURA
	.comm	_NPA_AQ_INSTOP_WRITE,4,2        ; @NPA_AQ_INSTOP_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to disable %s:%d context\n"

l_.str.1:                               ; @.str.1
	.asciz	"Aura"

l_.str.2:                               ; @.str.2
	.asciz	"Pool"

	.no_dead_strip	_npa_lf_hwctx_disable
.subsections_via_symbols
