	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_WriteAreaBits               ## -- Begin function CM_WriteAreaBits
	.p2align	4, 0x90
_CM_WriteAreaBits:                      ## @CM_WriteAreaBits
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_cm@GOTPCREL(%rip), %r8
	movl	(%r8), %ecx
	leal	7(%rcx), %r14d
	sarl	$3, %r14d
	cmpl	$-1, %esi
	je	LBB0_2
## %bb.1:
	movq	_cm_noAreas@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.3:
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.4:
	movq	8(%r8), %rdx
	movslq	%esi, %rax
	movl	(%rdx,%rax,4), %esi
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	movslq	%ecx, %rbx
	cmpq	%rbx, %rax
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rdx,%rax,4)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	%rax, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	orl	%ebx, (%rdi,%rcx)
	movl	(%r8), %ecx
	jmp	LBB0_7
LBB0_2:
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_Com_Memset
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,16,3                        ## @cm
	.comm	_cm_noAreas,8,3                 ## @cm_noAreas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CM_WriteAreaBits               ; -- Begin function CM_WriteAreaBits
	.p2align	2
_CM_WriteAreaBits:                      ; @CM_WriteAreaBits
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #7
	asr	w19, w10, #3
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.1:
Lloh2:
	adrp	x10, _cm_noAreas@GOTPAGE
Lloh3:
	ldr	x10, [x10, _cm_noAreas@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x10, [x10]
	cbnz	x10, LBB0_7
; %bb.2:
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x10, #0
	ldr	x11, [x8, #8]
	ldr	w12, [x11, w1, sxtw #2]
	mov	w13, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x11, x10, lsl #2]
	cmp	w14, w12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w10, #0x7
	lsl	w9, w13, w9
	ubfx	x14, x10, #3, #29
	lsl	x14, x14, #2
	ldr	w15, [x0, x14]
	orr	w9, w15, w9
	str	w9, [x0, x14]
	ldr	w9, [x8]
	b	LBB0_4
LBB0_7:
	mov	w1, #255
	mov	x2, x19
	bl	_Com_Memset
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,16,3                        ; @cm
	.comm	_cm_noAreas,8,3                 ; @cm_noAreas
.subsections_via_symbols
