	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm_unmap_queues_v9
_pm_unmap_queues_v9:                    ## @pm_unmap_queues_v9
	.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
	movl	%r9d, %r12d
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_IT_UNMAP_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$48, %esi
	callq	_pm_build_pm4_header
	movl	%eax, 40(%rbx)
	leal	-132(%r13), %eax
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	leal	-134(%r13), %eax
	cmpl	$1, %eax
	ja	LBB0_12
## %bb.2:
	movq	_extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_engine_sel__mes_unmap_queues__compute@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_3:
	movl	16(%rbp), %eax
	cmpl	$1, %eax
	ja	LBB0_5
## %bb.4:
	movq	_extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movq	_engine_sel__mes_unmap_queues__sdma0@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
LBB0_6:
	movl	%eax, (%rbx)
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.7:
	movq	_action__mes_unmap_queues__preempt_queues@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_action__mes_unmap_queues__reset_queues@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_queue_sel__mes_unmap_queues__perform_request_on_specified_queues@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$1, 4(%rbx)
	movq	%r14, 32(%rbx)
	jmp	LBB0_19
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	jmp	LBB0_14
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
LBB0_14:
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_15:
	movq	_queue_sel__mes_unmap_queues__unmap_all_non_static_queues@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_queue_sel__mes_unmap_queues__perform_request_on_pasid_queues@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, 24(%rbx)
	jmp	LBB0_19
LBB0_17:
	movq	_queue_sel__mes_unmap_queues__unmap_all_queues@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_IT_UNMAP_QUEUES,4,2            ## @IT_UNMAP_QUEUES
	.comm	_extended_engine_sel__mes_unmap_queues__legacy_engine_sel,8,3 ## @extended_engine_sel__mes_unmap_queues__legacy_engine_sel
	.comm	_engine_sel__mes_unmap_queues__compute,4,2 ## @engine_sel__mes_unmap_queues__compute
	.comm	_engine_sel__mes_unmap_queues__sdma0,4,2 ## @engine_sel__mes_unmap_queues__sdma0
	.comm	_extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel,8,3 ## @extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue type %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_action__mes_unmap_queues__reset_queues,4,2 ## @action__mes_unmap_queues__reset_queues
	.comm	_action__mes_unmap_queues__preempt_queues,4,2 ## @action__mes_unmap_queues__preempt_queues
	.comm	_queue_sel__mes_unmap_queues__perform_request_on_specified_queues,4,2 ## @queue_sel__mes_unmap_queues__perform_request_on_specified_queues
	.comm	_queue_sel__mes_unmap_queues__perform_request_on_pasid_queues,4,2 ## @queue_sel__mes_unmap_queues__perform_request_on_pasid_queues
	.comm	_queue_sel__mes_unmap_queues__unmap_all_queues,4,2 ## @queue_sel__mes_unmap_queues__unmap_all_queues
	.comm	_queue_sel__mes_unmap_queues__unmap_all_non_static_queues,4,2 ## @queue_sel__mes_unmap_queues__unmap_all_non_static_queues
L_.str.1:                               ## @.str.1
	.asciz	"filter %d"

	.no_dead_strip	_pm_unmap_queues_v9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm_unmap_queues_v9
_pm_unmap_queues_v9:                    ; @pm_unmap_queues_v9
	.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	x23, x6
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x0, x1
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh0:
	adrp	x8, _IT_UNMAP_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IT_UNMAP_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #48
	bl	_pm_build_pm4_header
	str	w0, [x19, #40]
	sub	w8, w24, #132
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w24, #134
	cmp	w8, #1
	b.hi	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh6:
	adrp	x8, _engine_sel__mes_unmap_queues__compute@GOTPAGE
Lloh7:
	ldr	x8, [x8, _engine_sel__mes_unmap_queues__compute@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	b	LBB0_6
LBB0_3:
	cmp	w23, #1
	b.hi	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPAGE
Lloh10:
	ldr	x8, [x8, _extended_engine_sel__mes_unmap_queues__legacy_engine_sel@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh12:
	adrp	x8, _engine_sel__mes_unmap_queues__sdma0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _engine_sel__mes_unmap_queues__sdma0@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w23, w8, w23
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel@GOTPAGE
Lloh16:
	ldr	x8, [x8, _extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_6:
	str	w23, [x19]
Lloh18:
	adrp	x8, _action__mes_unmap_queues__preempt_queues@GOTPAGE
Lloh19:
	ldr	x8, [x8, _action__mes_unmap_queues__preempt_queues@GOTPAGEOFF]
Lloh20:
	adrp	x9, _action__mes_unmap_queues__reset_queues@GOTPAGE
Lloh21:
	ldr	x9, [x9, _action__mes_unmap_queues__reset_queues@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #12]
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.7:
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	w0, #0
Lloh24:
	adrp	x8, _queue_sel__mes_unmap_queues__perform_request_on_specified_queues@GOTPAGE
Lloh25:
	ldr	x8, [x8, _queue_sel__mes_unmap_queues__perform_request_on_specified_queues@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19, #4]
	str	x20, [x19, #32]
	b	LBB0_16
LBB0_9:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x24
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
LBB0_11:
	bl	_WARN
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_12:
	mov	w0, #0
Lloh34:
	adrp	x8, _queue_sel__mes_unmap_queues__unmap_all_non_static_queues@GOTPAGE
Lloh35:
	ldr	x8, [x8, _queue_sel__mes_unmap_queues__unmap_all_non_static_queues@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	mov	w0, #0
Lloh36:
	adrp	x8, _queue_sel__mes_unmap_queues__perform_request_on_pasid_queues@GOTPAGE
Lloh37:
	ldr	x8, [x8, _queue_sel__mes_unmap_queues__perform_request_on_pasid_queues@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	x20, [x19, #24]
	b	LBB0_16
LBB0_14:
	mov	w0, #0
Lloh39:
	adrp	x8, _queue_sel__mes_unmap_queues__unmap_all_queues@GOTPAGE
Lloh40:
	ldr	x8, [x8, _queue_sel__mes_unmap_queues__unmap_all_queues@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
                                        ; -- End function
	.comm	_IT_UNMAP_QUEUES,4,2            ; @IT_UNMAP_QUEUES
	.comm	_extended_engine_sel__mes_unmap_queues__legacy_engine_sel,8,3 ; @extended_engine_sel__mes_unmap_queues__legacy_engine_sel
	.comm	_engine_sel__mes_unmap_queues__compute,4,2 ; @engine_sel__mes_unmap_queues__compute
	.comm	_engine_sel__mes_unmap_queues__sdma0,4,2 ; @engine_sel__mes_unmap_queues__sdma0
	.comm	_extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel,8,3 ; @extended_engine_sel__mes_unmap_queues__sdma0_to_7_sel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue type %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_action__mes_unmap_queues__reset_queues,4,2 ; @action__mes_unmap_queues__reset_queues
	.comm	_action__mes_unmap_queues__preempt_queues,4,2 ; @action__mes_unmap_queues__preempt_queues
	.comm	_queue_sel__mes_unmap_queues__perform_request_on_specified_queues,4,2 ; @queue_sel__mes_unmap_queues__perform_request_on_specified_queues
	.comm	_queue_sel__mes_unmap_queues__perform_request_on_pasid_queues,4,2 ; @queue_sel__mes_unmap_queues__perform_request_on_pasid_queues
	.comm	_queue_sel__mes_unmap_queues__unmap_all_queues,4,2 ; @queue_sel__mes_unmap_queues__unmap_all_queues
	.comm	_queue_sel__mes_unmap_queues__unmap_all_non_static_queues,4,2 ; @queue_sel__mes_unmap_queues__unmap_all_non_static_queues
l_.str.1:                               ; @.str.1
	.asciz	"filter %d"

	.no_dead_strip	_pm_unmap_queues_v9
.subsections_via_symbols
