	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_set_resources_vi            ## -- Begin function pm_set_resources_vi
	.p2align	4, 0x90
_pm_set_resources_vi:                   ## @pm_set_resources_vi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_IT_SET_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$64, %esi
	callq	_pm_build_pm4_header
	movl	%eax, 56(%rbx)
	movq	_queue_type__mes_set_resources__hsa_interface_queue_hiq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	_KFD_UNMAP_LATENCY_MS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movl	%eax, 44(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 40(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	4(%r14), %edi
	callq	_lower_32_bits
	movq	%rax, 24(%rbx)
	movl	4(%r14), %edi
	callq	_upper_32_bits
	movq	%rax, 16(%rbx)
	movl	(%r14), %edi
	callq	_lower_32_bits
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	callq	_upper_32_bits
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IT_SET_RESOURCES,4,2           ## @IT_SET_RESOURCES
	.comm	_queue_type__mes_set_resources__hsa_interface_queue_hiq,4,2 ## @queue_type__mes_set_resources__hsa_interface_queue_hiq
	.comm	_KFD_UNMAP_LATENCY_MS,4,2       ## @KFD_UNMAP_LATENCY_MS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_set_resources_vi            ; -- Begin function pm_set_resources_vi
	.p2align	2
_pm_set_resources_vi:                   ; @pm_set_resources_vi
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	mov	x0, x1
	mov	w1, #0
	mov	w2, #64
	bl	_memset
Lloh0:
	adrp	x8, _IT_SET_RESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IT_SET_RESOURCES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #64
	bl	_pm_build_pm4_header
	str	w0, [x19, #56]
Lloh3:
	adrp	x8, _queue_type__mes_set_resources__hsa_interface_queue_hiq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _queue_type__mes_set_resources__hsa_interface_queue_hiq@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _KFD_UNMAP_LATENCY_MS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KFD_UNMAP_LATENCY_MS@GOTPAGEOFF]
	ldp	w11, w10, [x20, #16]
	stp	w10, w8, [x19, #48]
Lloh8:
	ldrsw	x8, [x9]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #5
	stp	w11, w8, [x19, #40]
	ldr	d0, [x20, #8]
	str	d0, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_lower_32_bits
	str	x0, [x19, #24]
	ldr	w0, [x20, #4]
	bl	_upper_32_bits
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_lower_32_bits
	str	x0, [x19, #8]
	ldr	w0, [x20]
	bl	_upper_32_bits
	str	x0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IT_SET_RESOURCES,4,2           ; @IT_SET_RESOURCES
	.comm	_queue_type__mes_set_resources__hsa_interface_queue_hiq,4,2 ; @queue_type__mes_set_resources__hsa_interface_queue_hiq
	.comm	_KFD_UNMAP_LATENCY_MS,4,2       ; @KFD_UNMAP_LATENCY_MS
.subsections_via_symbols
