	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm_map_queues_v9
_pm_map_queues_v9:                      ## @pm_map_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_IT_MAP_QUEUES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$64, %esi
	callq	_pm_build_pm4_header
	movl	%eax, 60(%rbx)
	movl	$1, 36(%rbx)
	movq	_queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_engine_sel__mes_map_queues__compute_vi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	cmpq	$0, 32(%r14)
	setne	%al
	movl	%eax, 44(%rbx)
	movq	_extended_engine_sel__mes_map_queues__legacy_engine_sel@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_queue_type__mes_map_queues__normal_compute_vi@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	(%r14), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.1:
	cmpl	$130, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$131, %edx
	jne	LBB0_9
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.4:
	movq	_queue_type__mes_map_queues__normal_latency_static_queue_vi@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movl	4(%r14), %eax
	cmpl	$1, %eax
	jg	LBB0_10
## %bb.8:
	movq	_engine_sel__mes_map_queues__sdma0_vi@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_queue_type__mes_map_queues__debug_interface_queue_vi@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_10:
	movq	_extended_engine_sel__mes_map_queues__sdma0_to_7_sel@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rbx)
LBB0_11:
	movl	%eax, 40(%rbx)
LBB0_12:
	movl	16(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	24(%r14), %edi
	callq	_lower_32_bits
	movq	%rax, 24(%rbx)
	movl	24(%r14), %edi
	callq	_upper_32_bits
	movq	%rax, 16(%rbx)
	movl	8(%r14), %edi
	callq	_lower_32_bits
	movq	%rax, 8(%rbx)
	movl	8(%r14), %edi
	callq	_upper_32_bits
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IT_MAP_QUEUES,4,2              ## @IT_MAP_QUEUES
	.comm	_queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi,4,2 ## @queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi
	.comm	_engine_sel__mes_map_queues__compute_vi,4,2 ## @engine_sel__mes_map_queues__compute_vi
	.comm	_extended_engine_sel__mes_map_queues__legacy_engine_sel,4,2 ## @extended_engine_sel__mes_map_queues__legacy_engine_sel
	.comm	_queue_type__mes_map_queues__normal_compute_vi,4,2 ## @queue_type__mes_map_queues__normal_compute_vi
	.comm	_queue_type__mes_map_queues__normal_latency_static_queue_vi,4,2 ## @queue_type__mes_map_queues__normal_latency_static_queue_vi
	.comm	_queue_type__mes_map_queues__debug_interface_queue_vi,4,2 ## @queue_type__mes_map_queues__debug_interface_queue_vi
	.comm	_engine_sel__mes_map_queues__sdma0_vi,4,2 ## @engine_sel__mes_map_queues__sdma0_vi
	.comm	_extended_engine_sel__mes_map_queues__sdma0_to_7_sel,4,2 ## @extended_engine_sel__mes_map_queues__sdma0_to_7_sel
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue type %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pm_map_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_map_queues_v9
_pm_map_queues_v9:                      ; @pm_map_queues_v9
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x0, x1
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh0:
	adrp	x8, _IT_MAP_QUEUES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IT_MAP_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #64
	bl	_pm_build_pm4_header
	str	w0, [x19, #60]
	mov	w8, #1
Lloh3:
	adrp	x9, _queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi@GOTPAGE
Lloh4:
	ldr	x9, [x9, _queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _engine_sel__mes_map_queues__compute_vi@GOTPAGE
Lloh7:
	ldr	x10, [x10, _engine_sel__mes_map_queues__compute_vi@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	stp	w8, w10, [x19, #36]
	ldr	x8, [x20, #32]
	cmp	x8, #0
Lloh9:
	adrp	x8, _extended_engine_sel__mes_map_queues__legacy_engine_sel@GOTPAGE
Lloh10:
	ldr	x8, [x8, _extended_engine_sel__mes_map_queues__legacy_engine_sel@GOTPAGEOFF]
	cset	w10, ne
Lloh11:
	ldr	w8, [x8]
	stp	w10, w8, [x19, #44]
Lloh12:
	adrp	x8, _queue_type__mes_map_queues__normal_compute_vi@GOTPAGE
Lloh13:
	ldr	x8, [x8, _queue_type__mes_map_queues__normal_compute_vi@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #52]
	ldr	w2, [x20]
	sub	w8, w2, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	cmp	w2, #130
	b.eq	LBB0_7
; %bb.2:
	cmp	w2, #131
	b.ne	LBB0_9
; %bb.3:
	cbz	w21, LBB0_12
; %bb.4:
Lloh15:
	adrp	x8, _queue_type__mes_map_queues__normal_latency_static_queue_vi@GOTPAGE
Lloh16:
	ldr	x8, [x8, _queue_type__mes_map_queues__normal_latency_static_queue_vi@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.gt	LBB0_10
; %bb.6:
Lloh17:
	adrp	x9, _engine_sel__mes_map_queues__sdma0_vi@GOTPAGE
Lloh18:
	ldr	x9, [x9, _engine_sel__mes_map_queues__sdma0_vi@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w8, w9, w8
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _queue_type__mes_map_queues__debug_interface_queue_vi@GOTPAGE
Lloh21:
	ldr	x8, [x8, _queue_type__mes_map_queues__debug_interface_queue_vi@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	b	LBB0_12
LBB0_9:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_10:
Lloh27:
	adrp	x9, _extended_engine_sel__mes_map_queues__sdma0_to_7_sel@GOTPAGE
Lloh28:
	ldr	x9, [x9, _extended_engine_sel__mes_map_queues__sdma0_to_7_sel@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [x19, #48]
LBB0_11:
	str	w8, [x19, #40]
LBB0_12:
	ldr	w8, [x20, #16]
	str	w8, [x19, #32]
	ldr	w0, [x20, #24]
	bl	_lower_32_bits
	str	x0, [x19, #24]
	ldr	w0, [x20, #24]
	bl	_upper_32_bits
	str	x0, [x19, #16]
	ldr	w0, [x20, #8]
	bl	_lower_32_bits
	str	x0, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_upper_32_bits
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IT_MAP_QUEUES,4,2              ; @IT_MAP_QUEUES
	.comm	_queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi,4,2 ; @queue_sel__mes_map_queues__map_to_hws_determined_queue_slots_vi
	.comm	_engine_sel__mes_map_queues__compute_vi,4,2 ; @engine_sel__mes_map_queues__compute_vi
	.comm	_extended_engine_sel__mes_map_queues__legacy_engine_sel,4,2 ; @extended_engine_sel__mes_map_queues__legacy_engine_sel
	.comm	_queue_type__mes_map_queues__normal_compute_vi,4,2 ; @queue_type__mes_map_queues__normal_compute_vi
	.comm	_queue_type__mes_map_queues__normal_latency_static_queue_vi,4,2 ; @queue_type__mes_map_queues__normal_latency_static_queue_vi
	.comm	_queue_type__mes_map_queues__debug_interface_queue_vi,4,2 ; @queue_type__mes_map_queues__debug_interface_queue_vi
	.comm	_engine_sel__mes_map_queues__sdma0_vi,4,2 ; @engine_sel__mes_map_queues__sdma0_vi
	.comm	_extended_engine_sel__mes_map_queues__sdma0_to_7_sel,4,2 ; @extended_engine_sel__mes_map_queues__sdma0_to_7_sel
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue type %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pm_map_queues_v9
.subsections_via_symbols
