	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_verify_texaddr
_savage_verify_texaddr:                 ## @savage_verify_texaddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %eax
	andl	$6, %eax
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	testb	$1, %dl
	jne	LBB0_6
## %bb.3:
	andl	$-8, %edx
	movl	(%rdi), %ecx
	cmpl	%ecx, %edx
	jl	LBB0_5
## %bb.4:
	addl	4(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jl	LBB0_12
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_11:
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbp
	retq
LBB0_6:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	andl	$-8, %edx
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jl	LBB0_10
## %bb.9:
	addl	4(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jl	LBB0_12
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad texAddr%d %08x (reserved bits)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"bad texAddr%d %08x (local addr out of range)\n"

L_.str.2:                               ## @.str.2
	.asciz	"bad texAddr%d %08x (AGP not available)\n"

L_.str.3:                               ## @.str.3
	.asciz	"bad texAddr%d %08x (AGP addr out of range)\n"

	.no_dead_strip	_savage_verify_texaddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_verify_texaddr
_savage_verify_texaddr:                 ; @savage_verify_texaddr
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	and	w8, w2, #0x6
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.1:
	tbnz	w2, #0, LBB0_7
; %bb.2:
	and	w2, w2, #0xfffffff8
	ldr	w8, [x0]
	cmp	w2, w8
	b.lt	LBB0_4
; %bb.3:
	ldr	w9, [x0, #4]
	add	w8, w9, w8
	cmp	w2, w8
	b.lt	LBB0_10
LBB0_4:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_12
; %bb.8:
	and	w2, w2, #0xfffffff8
	ldr	w9, [x8]
	cmp	w2, w9
	b.lt	LBB0_11
; %bb.9:
	ldr	w8, [x8, #4]
	add	w8, w8, w9
	cmp	w2, w8
	b.ge	LBB0_11
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_12:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad texAddr%d %08x (reserved bits)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"bad texAddr%d %08x (local addr out of range)\n"

l_.str.2:                               ; @.str.2
	.asciz	"bad texAddr%d %08x (AGP not available)\n"

l_.str.3:                               ; @.str.3
	.asciz	"bad texAddr%d %08x (AGP addr out of range)\n"

	.no_dead_strip	_savage_verify_texaddr
.subsections_via_symbols
