	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_reg_write
_check_reg_write:                       ## @check_reg_write
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	(%rsi), %rax
	movq	%rsi, %r12
	movq	8(%rsi), %rcx
	movl	(%rax,%rcx,4), %r15d
	testl	%edx, %edx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_QPU_WADDR_ADD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_QPU_WADDR_MUL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	movq	%rax, %rbx
	movq	_QPU_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_QPU_WS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	%r15d, %r13d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_waddr_to_live_reg_index
	cmpl	$-1, %eax
	movq	%r12, %rbx
	je	LBB0_11
## %bb.4:
	movl	%eax, %r14d
	movq	_QPU_COND_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	movq	%rax, %r12
	movq	_QPU_COND_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	movq	%rax, %rsi
	movq	_QPU_SIG_LOAD_IMM@GOTPCREL(%rip), %rdx
	movq	$-1, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.5:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	_QPU_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	movq	_QPU_PACK_A_NOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_QPU_COND_ALWAYS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	sete	%cl
	xorl	%edx, %edx
	cmpq	%rax, %r12
	sete	%dl
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%edx, %ecx
	cmpb	$1, %cl
	movq	$-1, %rax
	jne	LBB0_9
## %bb.8:
	movq	_QPU_LOAD_IMM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_QPU_GET_FIELD
	jmp	LBB0_9
LBB0_6:
	movq	$-1, %rax
LBB0_9:
	movq	24(%rbx), %rdx
	movslq	%r14d, %rcx
	movq	%rax, (%rdx,%rcx,8)
	movl	%r14d, %edi
	callq	_live_reg_is_upper_half
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$1, 16(%rbx)
LBB0_11:
	movl	$1, %r14d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	-128(%rsi), %rax
	cmpq	$19, %rax
	ja	LBB0_20
## %bb.12:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_check_tmu_write                ## TAILCALL
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_19
LBB0_13:
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rdi
LBB0_19:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_20:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_validate_uniform_address_write ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_QPU_WADDR_MUL,4,2              ## @QPU_WADDR_MUL
	.comm	_QPU_WADDR_ADD,4,2              ## @QPU_WADDR_ADD
	.comm	_QPU_SIG,4,2                    ## @QPU_SIG
	.comm	_QPU_WS,4,2                     ## @QPU_WS
	.comm	_QPU_COND_ADD,4,2               ## @QPU_COND_ADD
	.comm	_QPU_COND_MUL,4,2               ## @QPU_COND_MUL
	.comm	_QPU_SIG_LOAD_IMM,8,3           ## @QPU_SIG_LOAD_IMM
	.comm	_QPU_PACK,4,2                   ## @QPU_PACK
	.comm	_QPU_PACK_A_NOP,8,3             ## @QPU_PACK_A_NOP
	.comm	_QPU_COND_ALWAYS,8,3            ## @QPU_COND_ALWAYS
	.comm	_QPU_LOAD_IMM,4,2               ## @QPU_LOAD_IMM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relative uniforms address change unsupported\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported waddr %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"General VPM DMA unsupported\n"

	.no_dead_strip	_check_reg_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_reg_write
_check_reg_write:                       ; @check_reg_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x8, x9, [x1]
	ldr	w24, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _QPU_WADDR_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QPU_WADDR_ADD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _QPU_WADDR_MUL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QPU_WADDR_MUL@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
	mov	x22, x0
Lloh4:
	adrp	x8, _QPU_SIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QPU_SIG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
	mov	x26, x0
Lloh7:
	adrp	x8, _QPU_WS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QPU_WS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w8, w8, w24
	eor	w23, w8, w19
	mov	x0, x22
	mov	x1, x23
	bl	_waddr_to_live_reg_index
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.1:
	mov	x25, x0
Lloh10:
	adrp	x8, _QPU_COND_ADD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QPU_COND_ADD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
	mov	x27, x0
Lloh13:
	adrp	x8, _QPU_COND_MUL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QPU_COND_MUL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
Lloh16:
	adrp	x8, _QPU_SIG_LOAD_IMM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QPU_SIG_LOAD_IMM@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_5
; %bb.2:
	mov	x28, x0
Lloh19:
	adrp	x8, _QPU_PACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QPU_PACK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
Lloh22:
	adrp	x8, _QPU_PACK_A_NOP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QPU_PACK_A_NOP@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
Lloh25:
	adrp	x8, _QPU_COND_ALWAYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QPU_COND_ALWAYS@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x28, x8
	cset	w9, eq
	cmp	x27, x8
	cset	w8, eq
	cmp	w19, #0
	csel	w8, w8, w9, eq
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
Lloh28:
	adrp	x8, _QPU_LOAD_IMM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _QPU_LOAD_IMM@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_QPU_GET_FIELD
	b	LBB0_6
LBB0_5:
	mov	x0, #-1
LBB0_6:
	ldr	x8, [x20, #24]
	str	x0, [x8, w25, sxtw #3]
	mov	x0, x25
	bl	_live_reg_is_upper_half
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_8:
	mov	w0, #1
	sub	x8, x22, #128
	cmp	x8, #19
	b.hi	LBB0_13
; %bb.9:
Lloh31:
	adrp	x9, lJTI0_0@PAGE
Lloh32:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_check_tmu_write
LBB0_11:
	str	x22, [sp]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_12:
	bl	_DRM_DEBUG
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_15:
	cbz	w23, LBB0_17
; %bb.16:
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_validate_uniform_address_write
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
                                        ; -- End function
	.comm	_QPU_WADDR_MUL,4,2              ; @QPU_WADDR_MUL
	.comm	_QPU_WADDR_ADD,4,2              ; @QPU_WADDR_ADD
	.comm	_QPU_SIG,4,2                    ; @QPU_SIG
	.comm	_QPU_WS,4,2                     ; @QPU_WS
	.comm	_QPU_COND_ADD,4,2               ; @QPU_COND_ADD
	.comm	_QPU_COND_MUL,4,2               ; @QPU_COND_MUL
	.comm	_QPU_SIG_LOAD_IMM,8,3           ; @QPU_SIG_LOAD_IMM
	.comm	_QPU_PACK,4,2                   ; @QPU_PACK
	.comm	_QPU_PACK_A_NOP,8,3             ; @QPU_PACK_A_NOP
	.comm	_QPU_COND_ALWAYS,8,3            ; @QPU_COND_ALWAYS
	.comm	_QPU_LOAD_IMM,4,2               ; @QPU_LOAD_IMM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relative uniforms address change unsupported\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported waddr %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"General VPM DMA unsupported\n"

	.no_dead_strip	_check_reg_write
.subsections_via_symbols
