	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_instruction_writes
_check_instruction_writes:              ## @check_instruction_writes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movl	(%rcx,%rax,4), %ebx
	movq	_QPU_WADDR_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_QPU_GET_FIELD
	movl	%eax, %r12d
	movq	_QPU_WADDR_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_QPU_GET_FIELD
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_is_tmu_write
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_is_tmu_write
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_check_reg_write
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_check_reg_write
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
LBB0_5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_track_live_clamps
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QPU_WADDR_ADD,4,2              ## @QPU_WADDR_ADD
	.comm	_QPU_WADDR_MUL,4,2              ## @QPU_WADDR_MUL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ADD and MUL both set up textures\n"

	.no_dead_strip	_check_instruction_writes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_instruction_writes
_check_instruction_writes:              ; @check_instruction_writes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	x9, x8, [x1]
	ldr	w21, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _QPU_WADDR_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QPU_WADDR_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_QPU_GET_FIELD
	mov	x22, x0
Lloh3:
	adrp	x8, _QPU_WADDR_MUL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QPU_WADDR_MUL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_QPU_GET_FIELD
	mov	x21, x0
	mov	x0, x22
	bl	_is_tmu_write
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_is_tmu_write
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w21, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_check_reg_write
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_check_reg_write
	cmp	x0, #0
	cset	w21, ne
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_track_live_clamps
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QPU_WADDR_ADD,4,2              ; @QPU_WADDR_ADD
	.comm	_QPU_WADDR_MUL,4,2              ; @QPU_WADDR_MUL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ADD and MUL both set up textures\n"

	.no_dead_strip	_check_instruction_writes
.subsections_via_symbols
