	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_qpd_vi_tonga
_update_qpd_vi_tonga:                   ## @update_qpd_vi_tonga
	.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	%rsi, %r14
	movq	%rsi, %rdi
	callq	_qpd_to_pdd
	cmpl	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_SH_MEM_ALIGNMENT_MODE_UNALIGNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_MTYPE_UC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%esi, %edi
	shll	%cl, %edi
	orl	%edx, %edi
	movq	_SH_MEM_CONFIG__APE1_MTYPE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%edi, %esi
	movl	%esi, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
LBB0_2:
	movq	%rax, %rdi
	callq	_get_sh_mem_bases_nybble_64
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_compute_sh_mem_bases_64bit
	movl	%eax, 4(%r14)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_debug
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SH_MEM_ALIGNMENT_MODE_UNALIGNED,4,2 ## @SH_MEM_ALIGNMENT_MODE_UNALIGNED
	.comm	_SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT,4,2 ## @SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT
	.comm	_MTYPE_UC,4,2                   ## @MTYPE_UC
	.comm	_SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT,4,2 ## @SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT
	.comm	_SH_MEM_CONFIG__APE1_MTYPE__SHIFT,4,2 ## @SH_MEM_CONFIG__APE1_MTYPE__SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_mem_bases nybble: 0x%X and register 0x%X\n"

	.no_dead_strip	_update_qpd_vi_tonga
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_qpd_vi_tonga
_update_qpd_vi_tonga:                   ; @update_qpd_vi_tonga
	.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	x19, x1
	mov	x0, x1
	bl	_qpd_to_pdd
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SH_MEM_ALIGNMENT_MODE_UNALIGNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SH_MEM_ALIGNMENT_MODE_UNALIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _MTYPE_UC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTYPE_UC@GOTPAGEOFF]
Lloh8:
	adrp	x10, _SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	lsl	w10, w9, w10
	orr	w8, w10, w8
Lloh12:
	adrp	x10, _SH_MEM_CONFIG__APE1_MTYPE__SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SH_MEM_CONFIG__APE1_MTYPE__SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	str	w8, [x19]
	stp	xzr, xzr, [x19, #8]
LBB0_2:
	bl	_get_sh_mem_bases_nybble_64
	mov	x20, x0
	bl	_compute_sh_mem_bases_64bit
	mov	x2, x0
	str	w0, [x19, #4]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SH_MEM_ALIGNMENT_MODE_UNALIGNED,4,2 ; @SH_MEM_ALIGNMENT_MODE_UNALIGNED
	.comm	_SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT,4,2 ; @SH_MEM_CONFIG__ALIGNMENT_MODE__SHIFT
	.comm	_MTYPE_UC,4,2                   ; @MTYPE_UC
	.comm	_SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT,4,2 ; @SH_MEM_CONFIG__DEFAULT_MTYPE__SHIFT
	.comm	_SH_MEM_CONFIG__APE1_MTYPE__SHIFT,4,2 ; @SH_MEM_CONFIG__APE1_MTYPE__SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_mem_bases nybble: 0x%X and register 0x%X\n"

	.no_dead_strip	_update_qpd_vi_tonga
.subsections_via_symbols
