	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_sdma_vm
_init_sdma_vm:                          ## @init_sdma_vm
	.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
	movq	%rdx, %rdi
	movq	%rsi, %rbx
	movq	_SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	8(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %r15b
	callq	_qpd_to_pdd
	movl	%eax, %edi
	callq	_get_sh_mem_bases_32
	btsl	%r15d, %eax
	jmp	LBB0_3
LBB0_2:
	callq	_qpd_to_pdd
	movl	%eax, %edi
	callq	_get_sh_mem_bases_nybble_64
	movq	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_3:
	btsl	%r14d, %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT,4,2 ## @SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT,4,2 ## @SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT,4,2 ## @SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK,4,2 ## @SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK
	.no_dead_strip	_init_sdma_vm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_sdma_vm
_init_sdma_vm:                          ; @init_sdma_vm
	.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	x0, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w21, w9, w8
	bl	_qpd_to_pdd
	bl	_get_sh_mem_bases_32
	orr	w8, w0, w21
	b	LBB0_3
LBB0_2:
	bl	_qpd_to_pdd
	bl	_get_sh_mem_bases_nybble_64
Lloh6:
	adrp	x8, _SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh9:
	adrp	x9, _SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w8, w9
LBB0_3:
	mov	w9, #1
	lsl	w9, w9, w20
	orr	w8, w8, w9
	str	w8, [x19]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT,4,2 ; @SDMA0_RLC0_VIRTUAL_ADDR__ATC__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT,4,2 ; @SDMA0_RLC0_VIRTUAL_ADDR__PTR32__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT,4,2 ; @SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE__SHIFT
	.comm	_SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK,4,2 ; @SDMA0_RLC0_VIRTUAL_ADDR__SHARED_BASE_MASK
	.no_dead_strip	_init_sdma_vm
.subsections_via_symbols
