	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r300_check_range
_r300_check_range:                      ## @r300_check_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	cmpl	$65535, %edi                    ## imm = 0xFFFF
	ja	LBB0_6
## %bb.1:
	shrl	$2, %edi
	addl	%edi, %esi
	xorl	%eax, %eax
	cmpl	%esi, %edi
	jae	LBB0_6
## %bb.2:
	movq	_r300_reg_flags@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MARK_SAFE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%edi, %edi
	movl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rdi,8)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpl	%edi, %esi
	jne	LBB0_4
LBB0_6:
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_r300_reg_flags,8,3             ## @r300_reg_flags
	.comm	_MARK_SAFE,8,3                  ## @MARK_SAFE
	.no_dead_strip	_r300_check_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r300_check_range
_r300_check_range:                      ; @r300_check_range
	.cfi_startproc
; %bb.0:
	lsr	w8, w0, #16
	cbnz	w8, LBB0_6
; %bb.1:
	lsr	w9, w0, #2
	add	w8, w9, w1
	cmp	w9, w8
	b.hs	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _r300_reg_flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _r300_reg_flags@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _MARK_SAFE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MARK_SAFE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x10, w9, uxtw #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	w1, w1, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_r300_reg_flags,8,3             ; @r300_reg_flags
	.comm	_MARK_SAFE,8,3                  ; @MARK_SAFE
	.no_dead_strip	_r300_check_range
.subsections_via_symbols
