	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evergreen_is_safe_reg
_evergreen_is_safe_reg:                 ## @evergreen_is_safe_reg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jge	LBB0_1
## %bb.2:
	movq	_evergreen_reg_safe_bm@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_cayman_reg_safe_bm@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	movl	%r15d, %edx
	sarl	$7, %edx
	cmpl	%eax, %edx
	jge	LBB0_8
## %bb.4:
	movl	%r15d, %ecx
	shrb	$2, %cl
	movl	$1, %eax
	movl	$1, %esi
	shll	%cl, %esi
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r12), %rcx
	jge	LBB0_5
## %bb.6:
	movq	_evergreen_reg_safe_bm@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_cayman_reg_safe_bm@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movslq	%edx, %rdx
	testl	%esi, (%rcx,%rdx,4)
	je	LBB0_9
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_warn
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_CAYMAN,8,3                ## @CHIP_CAYMAN
	.comm	_cayman_reg_safe_bm,8,3         ## @cayman_reg_safe_bm
	.comm	_evergreen_reg_safe_bm,8,3      ## @evergreen_reg_safe_bm
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"forbidden register 0x%08x at %d\n"

	.no_dead_strip	_evergreen_is_safe_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evergreen_is_safe_reg
_evergreen_is_safe_reg:                 ; @evergreen_is_safe_reg
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x24, _CHIP_CAYMAN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh2:
	adrp	x22, _evergreen_reg_safe_bm@GOTPAGE
Lloh3:
	ldr	x22, [x22, _evergreen_reg_safe_bm@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh4:
	adrp	x23, _cayman_reg_safe_bm@GOTPAGE
Lloh5:
	ldr	x23, [x23, _cayman_reg_safe_bm@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x22, x23, lt
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	asr	w8, w20, #7
	cmp	w8, w0
	b.ge	LBB0_5
; %bb.1:
	lsr	w9, w20, #2
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	x10, [x21, #8]
	ldr	x10, [x10]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ge	LBB0_3
; %bb.2:
	ldr	x10, [x22]
	b	LBB0_4
LBB0_3:
	ldr	x10, [x23]
LBB0_4:
	ldr	w8, [x10, w8, sxtw #2]
	tst	w8, w9
	b.eq	LBB0_7
LBB0_5:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_warn
	mov	w0, #0
LBB0_6:
	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_7:
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_CAYMAN,8,3                ; @CHIP_CAYMAN
	.comm	_cayman_reg_safe_bm,8,3         ; @cayman_reg_safe_bm
	.comm	_evergreen_reg_safe_bm,8,3      ; @evergreen_reg_safe_bm
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"forbidden register 0x%08x at %d\n"

	.no_dead_strip	_evergreen_is_safe_reg
.subsections_via_symbols
