	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function savage_verify_state_s4
_savage_verify_state_s4:                ## @savage_verify_state_s4
	.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, %r12d
	movl	%esi, %ebx
	movq	_SAVAGE_DRAWLOCALCTRL_S4@GOTPCREL(%rip), %rax
	leal	(%r12,%rbx), %edx
	decl	%edx
	cmpl	%esi, (%rax)
	ja	LBB0_2
## %bb.1:
	movq	_SAVAGE_TEXBLENDCOLOR_S4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	ja	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	movq	_SAVAGE_DRAWCTRL0_S4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_s4@GOTPCREL(%rip), %r13
	movl	16(%r13), %esi
	movq	_SAVAGE_SCISSOR_MASK_S4@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	notl	%edx
	callq	_SAVE_STATE_MASK
	movq	_SAVAGE_DRAWCTRL1_S4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r13), %esi
	movl	(%r15), %edx
	notl	%edx
	callq	_SAVE_STATE_MASK
	movq	_SAVAGE_TEXDESCR_S4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	cmpl	%ebx, %edi
	jb	LBB0_10
## %bb.4:
	addl	%ebx, %r12d
	movq	_SAVAGE_TEXPALADDR_S4@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jbe	LBB0_10
## %bb.5:
	movl	8(%r13), %esi
	callq	_SAVE_STATE
	movq	_SAVAGE_TEXADDR0_S4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r13), %esi
	callq	_SAVE_STATE
	movq	_SAVAGE_TEXADDR1_S4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_SAVE_STATE
	movl	(%r14), %eax
	movq	_SAVAGE_TEXDESCR_TEX0EN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	8(%r14), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_savage_verify_texaddr
	movl	%eax, %r15d
	movl	(%r14), %eax
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_10
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movq	_SAVAGE_TEXDESCR_TEX1EN_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movl	4(%r14), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_savage_verify_texaddr
	orl	%eax, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAVAGE_DRAWLOCALCTRL_S4,4,2    ## @SAVAGE_DRAWLOCALCTRL_S4
	.comm	_SAVAGE_TEXBLENDCOLOR_S4,4,2    ## @SAVAGE_TEXBLENDCOLOR_S4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid register range (0x%04x-0x%04x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SAVAGE_DRAWCTRL0_S4,4,2        ## @SAVAGE_DRAWCTRL0_S4
	.comm	_s4,20,2                        ## @s4
	.comm	_SAVAGE_SCISSOR_MASK_S4,4,2     ## @SAVAGE_SCISSOR_MASK_S4
	.comm	_SAVAGE_DRAWCTRL1_S4,4,2        ## @SAVAGE_DRAWCTRL1_S4
	.comm	_SAVAGE_TEXDESCR_S4,4,2         ## @SAVAGE_TEXDESCR_S4
	.comm	_SAVAGE_TEXPALADDR_S4,4,2       ## @SAVAGE_TEXPALADDR_S4
	.comm	_SAVAGE_TEXADDR0_S4,4,2         ## @SAVAGE_TEXADDR0_S4
	.comm	_SAVAGE_TEXADDR1_S4,4,2         ## @SAVAGE_TEXADDR1_S4
	.comm	_SAVAGE_TEXDESCR_TEX0EN_MASK,4,2 ## @SAVAGE_TEXDESCR_TEX0EN_MASK
	.comm	_SAVAGE_TEXDESCR_TEX1EN_MASK,4,2 ## @SAVAGE_TEXDESCR_TEX1EN_MASK
	.no_dead_strip	_savage_verify_state_s4
.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_s4
_savage_verify_state_s4:                ; @savage_verify_state_s4
	.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	x8, _SAVAGE_DRAWLOCALCTRL_S4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAVAGE_DRAWLOCALCTRL_S4@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w22, w2, w1
	sub	w2, w22, #1
Lloh3:
	adrp	x9, _SAVAGE_TEXBLENDCOLOR_S4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SAVAGE_TEXBLENDCOLOR_S4@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w2, w9, #2, ls
	b.ls	LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh11:
	adrp	x8, _SAVAGE_DRAWCTRL0_S4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAVAGE_DRAWCTRL0_S4@GOTPAGEOFF]
Lloh13:
	adrp	x21, _s4@GOTPAGE
Lloh14:
	ldr	x21, [x21, _s4@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
Lloh16:
	adrp	x23, _SAVAGE_SCISSOR_MASK_S4@GOTPAGE
Lloh17:
	ldr	x23, [x23, _SAVAGE_SCISSOR_MASK_S4@GOTPAGEOFF]
	ldr	w8, [x23]
	mvn	w2, w8
	bl	_SAVE_STATE_MASK
Lloh18:
	adrp	x8, _SAVAGE_DRAWCTRL1_S4@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SAVAGE_DRAWCTRL1_S4@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x21, #12]
	ldr	w8, [x23]
	mvn	w2, w8
	bl	_SAVE_STATE_MASK
Lloh21:
	adrp	x8, _SAVAGE_TEXDESCR_S4@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SAVAGE_TEXDESCR_S4@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _SAVAGE_TEXPALADDR_S4@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SAVAGE_TEXPALADDR_S4@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, w20
	ccmp	w22, w8, #0, hs
	b.hi	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	ldr	w1, [x21, #8]
	bl	_SAVE_STATE
Lloh27:
	adrp	x8, _SAVAGE_TEXADDR0_S4@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SAVAGE_TEXADDR0_S4@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	bl	_SAVE_STATE
Lloh30:
	adrp	x8, _SAVAGE_TEXADDR1_S4@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SAVAGE_TEXADDR1_S4@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_SAVE_STATE
	ldr	w8, [x19]
Lloh33:
	adrp	x9, _SAVAGE_TEXDESCR_TEX0EN_MASK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SAVAGE_TEXDESCR_TEX0EN_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w2, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_savage_verify_texaddr
	mov	x20, x0
	ldr	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
Lloh36:
	adrp	x9, _SAVAGE_TEXDESCR_TEX1EN_MASK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SAVAGE_TEXDESCR_TEX1EN_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_savage_verify_texaddr
	orr	w20, w0, w20
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_SAVAGE_DRAWLOCALCTRL_S4,4,2    ; @SAVAGE_DRAWLOCALCTRL_S4
	.comm	_SAVAGE_TEXBLENDCOLOR_S4,4,2    ; @SAVAGE_TEXBLENDCOLOR_S4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid register range (0x%04x-0x%04x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SAVAGE_DRAWCTRL0_S4,4,2        ; @SAVAGE_DRAWCTRL0_S4
	.comm	_s4,20,2                        ; @s4
	.comm	_SAVAGE_SCISSOR_MASK_S4,4,2     ; @SAVAGE_SCISSOR_MASK_S4
	.comm	_SAVAGE_DRAWCTRL1_S4,4,2        ; @SAVAGE_DRAWCTRL1_S4
	.comm	_SAVAGE_TEXDESCR_S4,4,2         ; @SAVAGE_TEXDESCR_S4
	.comm	_SAVAGE_TEXPALADDR_S4,4,2       ; @SAVAGE_TEXPALADDR_S4
	.comm	_SAVAGE_TEXADDR0_S4,4,2         ; @SAVAGE_TEXADDR0_S4
	.comm	_SAVAGE_TEXADDR1_S4,4,2         ; @SAVAGE_TEXADDR1_S4
	.comm	_SAVAGE_TEXDESCR_TEX0EN_MASK,4,2 ; @SAVAGE_TEXDESCR_TEX0EN_MASK
	.comm	_SAVAGE_TEXDESCR_TEX1EN_MASK,4,2 ; @SAVAGE_TEXDESCR_TEX1EN_MASK
	.no_dead_strip	_savage_verify_state_s4
.subsections_via_symbols
