	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_register_value
_si_get_register_value:                 ## @si_get_register_value
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_10
## %bb.1:
	movl	%ecx, %r12d
	movl	%edx, %r13d
	xorl	%eax, %eax
	cmpl	$-1, %edx
	movl	%edx, %ecx
	cmovel	%eax, %ecx
	cmpl	$-1, %r12d
	cmovnel	%r12d, %eax
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ebx
	je	LBB0_17
## %bb.3:
	cmpl	$164, %ebx
	jne	LBB0_6
## %bb.4:
	movq	16(%r14), %rdx
	movl	%ecx, %ecx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	8(%rcx,%rax,4), %ebx
	jmp	LBB0_18
LBB0_10:
	leal	-131(%rbx), %eax
	cmpl	$32, %eax
	jae	LBB0_11
## %bb.15:
	addl	$-162, %ebx
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %ebx
	jmp	LBB0_18
LBB0_5:
	movq	16(%r14), %rdx
	movl	%ecx, %ecx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	(%rcx,%rax,4), %ebx
	jmp	LBB0_18
LBB0_17:
	movq	16(%r14), %rdx
	movl	%ecx, %ecx
	movq	(%rdx,%rcx,8), %rcx
	movl	%eax, %eax
	leaq	(%rax,%rax,2), %rax
	movl	4(%rcx,%rax,4), %ebx
	jmp	LBB0_18
LBB0_6:
	leaq	24(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	%r12d, %eax
	andl	%r13d, %eax
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	$-1, %ecx
	callq	_amdgpu_gfx_select_se_sh
	movl	%ebx, %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_amdgpu_gfx_select_se_sh
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %edi
	callq	_RREG32
	movl	%eax, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpl	$129, %ebx
	je	LBB0_14
## %bb.12:
	cmpl	$163, %ebx
	jne	LBB0_16
## %bb.13:
	movl	12(%r14), %ebx
	jmp	LBB0_18
LBB0_14:
	movl	8(%r14), %ebx
	jmp	LBB0_18
LBB0_16:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_si_get_register_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_register_value
_si_get_register_value:                 ; @si_get_register_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x0
	cbz	w1, LBB0_5
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	cmn	w2, #1
	csel	w9, wzr, w2, eq
	cmn	w3, #1
	csel	w8, wzr, w3, eq
	cmp	w20, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w20, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w20, #164
	b.ne	LBB0_9
; %bb.4:
	ldr	x10, [x19, #16]
	ldr	x9, [x10, w9, uxtw #3]
	mov	w10, #12
	umaddl	x8, w8, w10, x9
	ldr	w20, [x8, #8]
	b	LBB0_13
LBB0_5:
	sub	w8, w20, #131
	cmp	w8, #32
	b.hs	LBB0_14
; %bb.6:
	sub	w8, w20, #162
	ldr	x9, [x19]
	ldr	w20, [x9, w8, uxtw #2]
	b	LBB0_13
LBB0_7:
	ldr	x10, [x19, #16]
	ldr	x9, [x10, w9, uxtw #3]
	mov	w10, #12
	umull	x8, w8, w10
	ldr	w20, [x9, x8]
	b	LBB0_13
LBB0_8:
	ldr	x10, [x19, #16]
	ldr	x9, [x10, w9, uxtw #3]
	mov	w10, #12
	umaddl	x8, w8, w10, x9
	ldr	w20, [x8, #4]
	b	LBB0_13
LBB0_9:
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	and	w8, w22, w23
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	w3, #-1
	bl	_amdgpu_gfx_select_se_sh
	mov	x0, x20
	bl	_RREG32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #-1
	mov	w2, #-1
	mov	w3, #-1
	bl	_amdgpu_gfx_select_se_sh
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_RREG32
	mov	x20, x0
LBB0_12:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	cmp	w20, #129
	b.eq	LBB0_17
; %bb.15:
	cmp	w20, #163
	b.ne	LBB0_18
; %bb.16:
	ldr	w20, [x19, #12]
	b	LBB0_13
LBB0_17:
	ldr	w20, [x19, #8]
	b	LBB0_13
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RREG32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_si_get_register_value
.subsections_via_symbols
