	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_verify_state_s3d
_savage_verify_state_s3d:               ## @savage_verify_state_s3d
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	_SAVAGE_TEXPALADDR_S3D@GOTPCREL(%rip), %r13
	leal	(%r15,%rbx), %edx
	decl	%edx
	cmpl	%esi, (%r13)
	ja	LBB0_2
## %bb.1:
	movq	_SAVAGE_DESTTEXRWWATERMARK_S3D@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	ja	LBB0_2
## %bb.3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_SAVAGE_SCSTART_S3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_s3d@GOTPCREL(%rip), %r14
	movl	12(%r14), %esi
	movq	_SAVAGE_SCISSOR_MASK_S3D@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	notl	%edx
	callq	_SAVE_STATE_MASK
	movq	_SAVAGE_SCEND_S3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	movl	(%r12), %edx
	notl	%edx
	callq	_SAVE_STATE_MASK
	movq	_SAVAGE_TEXCTRL_S3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	cmpl	%ebx, %edi
	jb	LBB0_6
## %bb.4:
	addl	%ebx, %r15d
	cmpl	(%r13), %r15d
	jbe	LBB0_6
## %bb.5:
	movq	_s3d@GOTPCREL(%rip), %rbx
	movl	4(%rbx), %esi
	callq	_SAVE_STATE
	movq	_SAVAGE_TEXADDR_S3D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_SAVE_STATE
	movq	_SAVAGE_TEXCTRL_TEXEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.7:
	movl	4(%rdi), %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_savage_verify_texaddr          ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAVAGE_TEXPALADDR_S3D,4,2      ## @SAVAGE_TEXPALADDR_S3D
	.comm	_SAVAGE_DESTTEXRWWATERMARK_S3D,4,2 ## @SAVAGE_DESTTEXRWWATERMARK_S3D
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid register range (0x%04x-0x%04x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SAVAGE_SCSTART_S3D,4,2         ## @SAVAGE_SCSTART_S3D
	.comm	_s3d,16,2                       ## @s3d
	.comm	_SAVAGE_SCISSOR_MASK_S3D,4,2    ## @SAVAGE_SCISSOR_MASK_S3D
	.comm	_SAVAGE_SCEND_S3D,4,2           ## @SAVAGE_SCEND_S3D
	.comm	_SAVAGE_TEXCTRL_S3D,4,2         ## @SAVAGE_TEXCTRL_S3D
	.comm	_SAVAGE_TEXADDR_S3D,4,2         ## @SAVAGE_TEXADDR_S3D
	.comm	_SAVAGE_TEXCTRL_TEXEN_MASK,4,2  ## @SAVAGE_TEXCTRL_TEXEN_MASK
	.no_dead_strip	_savage_verify_state_s3d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function savage_verify_state_s3d
_savage_verify_state_s3d:               ; @savage_verify_state_s3d
	.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, x1
Lloh0:
	adrp	x22, _SAVAGE_TEXPALADDR_S3D@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SAVAGE_TEXPALADDR_S3D@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w23, w2, w1
	sub	w2, w23, #1
Lloh2:
	adrp	x9, _SAVAGE_DESTTEXRWWATERMARK_S3D@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SAVAGE_DESTTEXRWWATERMARK_S3D@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w2, w9, #2, ls
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x0
Lloh10:
	adrp	x8, _SAVAGE_SCSTART_S3D@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SAVAGE_SCSTART_S3D@GOTPAGEOFF]
Lloh12:
	adrp	x21, _s3d@GOTPAGE
Lloh13:
	ldr	x21, [x21, _s3d@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
Lloh15:
	adrp	x24, _SAVAGE_SCISSOR_MASK_S3D@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SAVAGE_SCISSOR_MASK_S3D@GOTPAGEOFF]
	ldr	w8, [x24]
	mvn	w2, w8
	bl	_SAVE_STATE_MASK
Lloh17:
	adrp	x8, _SAVAGE_SCEND_S3D@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAVAGE_SCEND_S3D@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x21, #8]
	ldr	w8, [x24]
	mvn	w2, w8
	bl	_SAVE_STATE_MASK
Lloh20:
	adrp	x8, _SAVAGE_TEXCTRL_S3D@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAVAGE_TEXCTRL_S3D@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w8, [x22]
	cmp	w0, w20
	ccmp	w23, w8, #0, hs
	b.ls	LBB0_5
; %bb.3:
	ldr	w1, [x21, #4]
	bl	_SAVE_STATE
Lloh23:
	adrp	x8, _SAVAGE_TEXADDR_S3D@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SAVAGE_TEXADDR_S3D@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_SAVE_STATE
	ldr	w8, [x19]
Lloh26:
	adrp	x9, _SAVAGE_TEXCTRL_TEXEN_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SAVAGE_TEXCTRL_TEXEN_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	w1, #0
	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	_savage_verify_texaddr
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SAVAGE_TEXPALADDR_S3D,4,2      ; @SAVAGE_TEXPALADDR_S3D
	.comm	_SAVAGE_DESTTEXRWWATERMARK_S3D,4,2 ; @SAVAGE_DESTTEXRWWATERMARK_S3D
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid register range (0x%04x-0x%04x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SAVAGE_SCSTART_S3D,4,2         ; @SAVAGE_SCSTART_S3D
	.comm	_s3d,16,2                       ; @s3d
	.comm	_SAVAGE_SCISSOR_MASK_S3D,4,2    ; @SAVAGE_SCISSOR_MASK_S3D
	.comm	_SAVAGE_SCEND_S3D,4,2           ; @SAVAGE_SCEND_S3D
	.comm	_SAVAGE_TEXCTRL_S3D,4,2         ; @SAVAGE_TEXCTRL_S3D
	.comm	_SAVAGE_TEXADDR_S3D,4,2         ; @SAVAGE_TEXADDR_S3D
	.comm	_SAVAGE_TEXCTRL_TEXEN_MASK,4,2  ; @SAVAGE_TEXCTRL_TEXEN_MASK
	.no_dead_strip	_savage_verify_state_s3d
.subsections_via_symbols
