	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_qpd_v9
_update_qpd_v9:                         ## @update_qpd_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_qpd_to_pdd
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %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
	movl	%edx, (%rbx)
	movq	_amdgpu_noretry@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SH_MEM_CONFIG__RETRY_DISABLE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movl	%edx, (%rbx)
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
LBB0_5:
	movq	%rax, %rdi
	callq	_compute_sh_mem_bases_64bit
	movl	%eax, 4(%rbx)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	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	_amdgpu_noretry,8,3             ## @amdgpu_noretry
	.comm	_SH_MEM_CONFIG__RETRY_DISABLE__SHIFT,4,2 ## @SH_MEM_CONFIG__RETRY_DISABLE__SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh_mem_bases 0x%X\n"

	.no_dead_strip	_update_qpd_v9
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_qpd_v9
_update_qpd_v9:                         ; @update_qpd_v9
	.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	x20, x0
	mov	x0, x1
	bl	_qpd_to_pdd
	ldr	w8, [x19]
	cbnz	w8, LBB0_5
; %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
	str	w8, [x19]
Lloh6:
	adrp	x9, _amdgpu_noretry@GOTPAGE
Lloh7:
	ldr	x9, [x9, _amdgpu_noretry@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cbnz	w9, LBB0_4
; %bb.3:
Lloh9:
	adrp	x9, _SH_MEM_CONFIG__RETRY_DISABLE__SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SH_MEM_CONFIG__RETRY_DISABLE__SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	stp	xzr, xzr, [x19, #8]
LBB0_5:
	bl	_compute_sh_mem_bases_64bit
	mov	x1, x0
	str	w0, [x19, #4]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.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	_amdgpu_noretry,8,3             ; @amdgpu_noretry
	.comm	_SH_MEM_CONFIG__RETRY_DISABLE__SHIFT,4,2 ; @SH_MEM_CONFIG__RETRY_DISABLE__SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh_mem_bases 0x%X\n"

	.no_dead_strip	_update_qpd_v9
.subsections_via_symbols
