	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_emit_state
_r128_emit_state:                       ## @r128_emit_state
	.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	%rdi, %r14
	movq	(%rdi), %r15
	movl	(%r15), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DRM_DEBUG
	movq	_R128_UPLOAD_CORE@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_r128_emit_core
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_2:
	movq	_R128_UPLOAD_CONTEXT@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_r128_emit_context
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_4:
	movq	_R128_UPLOAD_SETUP@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_r128_emit_setup
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_6:
	movq	_R128_UPLOAD_MASKS@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_r128_emit_masks
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_8:
	movq	_R128_UPLOAD_WINDOW@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_r128_emit_window
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_10:
	movq	_R128_UPLOAD_TEX0@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_r128_emit_tex0
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_12:
	movq	_R128_UPLOAD_TEX1@GOTPCREL(%rip), %r12
	testl	%ebx, (%r12)
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	callq	_r128_emit_tex1
	movl	(%r12), %eax
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	jmp	LBB0_15
LBB0_13:
	movl	(%r15), %eax
LBB0_15:
	movq	_R128_TEX_CACHE_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 4(%r15)
	movq	_R128_REQUIRE_QUIESCENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dirty=0x%08x\n"

	.comm	_R128_UPLOAD_CORE,4,2           ## @R128_UPLOAD_CORE
	.comm	_R128_UPLOAD_CONTEXT,4,2        ## @R128_UPLOAD_CONTEXT
	.comm	_R128_UPLOAD_SETUP,4,2          ## @R128_UPLOAD_SETUP
	.comm	_R128_UPLOAD_MASKS,4,2          ## @R128_UPLOAD_MASKS
	.comm	_R128_UPLOAD_WINDOW,4,2         ## @R128_UPLOAD_WINDOW
	.comm	_R128_UPLOAD_TEX0,4,2           ## @R128_UPLOAD_TEX0
	.comm	_R128_UPLOAD_TEX1,4,2           ## @R128_UPLOAD_TEX1
	.comm	_R128_TEX_CACHE_FLUSH,4,2       ## @R128_TEX_CACHE_FLUSH
	.comm	_R128_REQUIRE_QUIESCENCE,4,2    ## @R128_REQUIRE_QUIESCENCE
	.no_dead_strip	_r128_emit_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_emit_state
_r128_emit_state:                       ; @r128_emit_state
	.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, x0
	ldr	x21, [x0]
	ldr	w20, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG
Lloh2:
	adrp	x22, _R128_UPLOAD_CORE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _R128_UPLOAD_CORE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_r128_emit_core
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_2:
Lloh4:
	adrp	x22, _R128_UPLOAD_CONTEXT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _R128_UPLOAD_CONTEXT@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_r128_emit_context
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_4:
Lloh6:
	adrp	x22, _R128_UPLOAD_SETUP@GOTPAGE
Lloh7:
	ldr	x22, [x22, _R128_UPLOAD_SETUP@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_r128_emit_setup
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_6:
Lloh8:
	adrp	x22, _R128_UPLOAD_MASKS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _R128_UPLOAD_MASKS@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_r128_emit_masks
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_8:
Lloh10:
	adrp	x22, _R128_UPLOAD_WINDOW@GOTPAGE
Lloh11:
	ldr	x22, [x22, _R128_UPLOAD_WINDOW@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_r128_emit_window
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_10:
Lloh12:
	adrp	x22, _R128_UPLOAD_TEX0@GOTPAGE
Lloh13:
	ldr	x22, [x22, _R128_UPLOAD_TEX0@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_r128_emit_tex0
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_12:
Lloh14:
	adrp	x22, _R128_UPLOAD_TEX1@GOTPAGE
Lloh15:
	ldr	x22, [x22, _R128_UPLOAD_TEX1@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_r128_emit_tex1
	ldr	w8, [x22]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	b	LBB0_15
LBB0_14:
	ldr	w8, [x21]
LBB0_15:
Lloh16:
	adrp	x9, _R128_TEX_CACHE_FLUSH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _R128_TEX_CACHE_FLUSH@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	w10, [x21, #4]
	bic	w9, w10, w9
Lloh19:
	adrp	x10, _R128_REQUIRE_QUIESCENCE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _R128_REQUIRE_QUIESCENCE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	bic	w8, w8, w10
	stp	w8, w9, [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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dirty=0x%08x\n"

	.comm	_R128_UPLOAD_CORE,4,2           ; @R128_UPLOAD_CORE
	.comm	_R128_UPLOAD_CONTEXT,4,2        ; @R128_UPLOAD_CONTEXT
	.comm	_R128_UPLOAD_SETUP,4,2          ; @R128_UPLOAD_SETUP
	.comm	_R128_UPLOAD_MASKS,4,2          ; @R128_UPLOAD_MASKS
	.comm	_R128_UPLOAD_WINDOW,4,2         ; @R128_UPLOAD_WINDOW
	.comm	_R128_UPLOAD_TEX0,4,2           ; @R128_UPLOAD_TEX0
	.comm	_R128_UPLOAD_TEX1,4,2           ; @R128_UPLOAD_TEX1
	.comm	_R128_TEX_CACHE_FLUSH,4,2       ; @R128_TEX_CACHE_FLUSH
	.comm	_R128_REQUIRE_QUIESCENCE,4,2    ; @R128_REQUIRE_QUIESCENCE
	.no_dead_strip	_r128_emit_state
.subsections_via_symbols
