	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nix_lf_hwctx_disable
_nix_lf_hwctx_disable:                  ## @nix_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	$88, %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, 40(%rax)
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 32(%rax)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.4:
	leaq	-128(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, -64(%rbp)
	movq	(%rcx), %rax
	movq	_NIX_AQ_CTYPE_CQ@GOTPCREL(%rip), %rcx
                                        ## implicit-def: $rdx
                                        ## kill: killed $rdx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	$0, -72(%rbp)
	movl	$1, -80(%rbp)
	movq	(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rcx
	movl	(%rcx), %r15d
LBB0_6:
	movq	_NIX_AQ_CTYPE_SQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	$0, -88(%rbp)
	movl	$1, -96(%rbp)
	movq	8(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rcx
	movl	(%rcx), %r15d
LBB0_8:
	movq	_NIX_AQ_CTYPE_RQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	$0, -104(%rbp)
	movl	$1, -112(%rbp)
	movq	16(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rcx
	movl	(%rcx), %r15d
LBB0_10:
	movq	%rax, -128(%rbp)
	movq	_NIX_AQ_INSTOP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	movq	_NIX_AQ_CTYPE_CQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_dev_err
	movl	%r14d, %ebx
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%r13d
	cmpl	%r13d, %r15d
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, -120(%rbp)
	movq	%r12, %rdi
	leaq	-128(%rbp), %rsi
	xorl	%edx, %edx
	callq	_rvu_nix_aq_enq_inst
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	L_.str.2(%rip), %rdx
	movq	_NIX_AQ_CTYPE_RQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_16
LBB0_3:
	movq	_NIX_AF_ERR_AQ_ENQUEUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIX_AF_ERR_AQ_ENQUEUE,4,2      ## @NIX_AF_ERR_AQ_ENQUEUE
	.comm	_NIX_AQ_CTYPE_CQ,8,3            ## @NIX_AQ_CTYPE_CQ
	.comm	_NIX_AQ_CTYPE_SQ,8,3            ## @NIX_AQ_CTYPE_SQ
	.comm	_NIX_AQ_CTYPE_RQ,8,3            ## @NIX_AQ_CTYPE_RQ
	.comm	_NIX_AQ_INSTOP_WRITE,4,2        ## @NIX_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	"CQ"

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

L_.str.3:                               ## @.str.3
	.asciz	"SQ"

	.no_dead_strip	_nix_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 nix_lf_hwctx_disable
_nix_lf_hwctx_disable:                  ; @nix_lf_hwctx_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, #40]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_5
; %bb.3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	ldr	w8, [x19, #8]
	str	w8, [sp, #72]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NIX_AQ_CTYPE_CQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NIX_AQ_CTYPE_CQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	str	xzr, [sp, #64]
	mov	w9, #1
	str	w9, [sp, #56]
	ldr	x9, [x22, #40]
	ldr	w27, [x9]
	ldr	x21, [x22]
	b	LBB0_8
LBB0_5:
Lloh3:
	adrp	x8, _NIX_AF_ERR_AQ_ENQUEUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIX_AF_ERR_AQ_ENQUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_7:
	mov	w27, #0
                                        ; implicit-def: $x21
LBB0_8:
Lloh6:
	adrp	x9, _NIX_AQ_CTYPE_SQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIX_AQ_CTYPE_SQ@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	str	xzr, [sp, #48]
	mov	w9, #1
	str	w9, [sp, #40]
	ldr	x9, [x22, #32]
	ldr	w27, [x9]
	ldr	x21, [x22, #8]
LBB0_10:
Lloh9:
	adrp	x9, _NIX_AQ_CTYPE_RQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NIX_AQ_CTYPE_RQ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	str	xzr, [sp, #32]
	mov	w9, #1
	str	w9, [sp, #24]
	ldp	x21, x9, [x22, #16]
	ldr	w27, [x9]
LBB0_12:
	str	x8, [sp, #8]
Lloh12:
	adrp	x8, _NIX_AQ_INSTOP_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NIX_AQ_INSTOP_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	cmp	w27, #1
	b.lt	LBB0_18
; %bb.13:
	mov	w24, #0
	mov	w22, #0
Lloh15:
	adrp	x28, l_.str.2@PAGE
Lloh16:
	add	x28, x28, l_.str.2@PAGEOFF
Lloh17:
	adrp	x26, l_.str.1@PAGE
Lloh18:
	add	x26, x26, l_.str.1@PAGEOFF
Lloh19:
	adrp	x23, l_.str@PAGE
Lloh20:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w22, w22, #1
	cmp	w27, w22
	b.eq	LBB0_6
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	str	w22, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_rvu_nix_aq_enq_inst
	cbz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x25, x0
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _NIX_AQ_CTYPE_CQ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NIX_AQ_CTYPE_CQ@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
Lloh24:
	adrp	x10, _NIX_AQ_CTYPE_RQ@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NIX_AQ_CTYPE_RQ@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	cmp	x8, x10
Lloh27:
	adrp	x10, l_.str.3@PAGE
Lloh28:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x10, x28, x10, eq
	cmp	x8, x9
	csel	x2, x26, x10, eq
	mov	x1, x23
	mov	x3, x22
	bl	_dev_err
	mov	x24, x25
	b	LBB0_14
LBB0_18:
	mov	w24, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NIX_AF_ERR_AQ_ENQUEUE,4,2      ; @NIX_AF_ERR_AQ_ENQUEUE
	.comm	_NIX_AQ_CTYPE_CQ,8,3            ; @NIX_AQ_CTYPE_CQ
	.comm	_NIX_AQ_CTYPE_SQ,8,3            ; @NIX_AQ_CTYPE_SQ
	.comm	_NIX_AQ_CTYPE_RQ,8,3            ; @NIX_AQ_CTYPE_RQ
	.comm	_NIX_AQ_INSTOP_WRITE,4,2        ; @NIX_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	"CQ"

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

l_.str.3:                               ; @.str.3
	.asciz	"SQ"

	.no_dead_strip	_nix_lf_hwctx_disable
.subsections_via_symbols
