	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_source_layers_cache     ## -- Begin function update_source_layers_cache
	.p2align	4, 0x90
_update_source_layers_cache:            ## @update_source_layers_cache
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_LAYER_BITS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_3
## %bb.1:
	movq	_MATRIX_COLS@GOTPCREL(%rip), %rcx
	movq	%rdi, %rdx
	shrq	$32, %rdx
	imull	(%rcx), %edx
	leal	(%rdx,%rdi), %r8d
	addl	$7, %r8d
	movl	%edx, %ecx
	addl	%edi, %ecx
	cmovnsl	%ecx, %r8d
	sarl	$3, %r8d
	movq	_source_layers_cache@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%r8d, %rdi
	movq	(%rdx,%rdi,8), %rdx
	andb	$7, %cl
	movl	$1, %r8d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r8d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %esi
	movl	$0, %eax
	sbbl	%eax, %eax
	movl	(%rdx,%rcx,4), %edi
	xorl	%edi, %eax
	andl	%r8d, %eax
	xorl	%edi, %eax
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	movslq	(%r9), %rax
	cmpq	%rax, %rcx
	jl	LBB0_2
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MATRIX_COLS,4,2                ## @MATRIX_COLS
	.comm	_MAX_LAYER_BITS,4,2             ## @MAX_LAYER_BITS
	.comm	_source_layers_cache,8,3        ## @source_layers_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_update_source_layers_cache     ; -- Begin function update_source_layers_cache
	.p2align	2
_update_source_layers_cache:            ; @update_source_layers_cache
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_LAYER_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_LAYER_BITS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _MATRIX_COLS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MATRIX_COLS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	lsr	x11, x0, #32
	madd	w11, w10, w11, w0
	add	w10, w11, #7
	cmp	w11, #0
	csel	w10, w10, w11, lt
	asr	w10, w10, #3
Lloh5:
	adrp	x12, _source_layers_cache@GOTPAGE
Lloh6:
	ldr	x12, [x12, _source_layers_cache@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	ldr	x10, [x12, w10, sxtw #3]
	and	w11, w11, #0x7
	mov	w12, #1
	lsl	w11, w12, w11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w1, w9
	and	w12, w12, #0x1
	lsl	x13, x9, #2
	ldr	w14, [x10, x13]
	bic	w14, w14, w11
	neg	w12, w12
	and	w12, w12, w11
	orr	w12, w12, w14
	str	w12, [x10, x13]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MATRIX_COLS,4,2                ; @MATRIX_COLS
	.comm	_MAX_LAYER_BITS,4,2             ; @MAX_LAYER_BITS
	.comm	_source_layers_cache,8,3        ; @source_layers_cache
.subsections_via_symbols
