	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writeBITS
_writeBITS:                             ## @writeBITS
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdx), %eax
	leal	7(%rax), %r8d
	testl	%eax, %eax
	cmovnsl	%eax, %r8d
	movl	%r8d, %r9d
	andl	$-8, %r9d
	movl	%eax, %r10d
	subl	%r9d, %r10d
	sarl	$3, %r8d
	addl	%ecx, %eax
	movl	%eax, (%rdx)
	movslq	%r8d, %r8
	movl	$-1, %eax
	shll	%cl, %eax
	addl	%ecx, %r10d
	movl	%eax, %edx
	notl	%edx
	andl	%edi, %edx
	movb	$8, %cl
	subb	%r10b, %cl
	shll	%cl, %edx
	movzbl	(%rsi,%r8), %ecx
	andl	%ecx, %eax
	orl	%eax, %edx
	movb	%dl, (%rsi,%r8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_writeBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writeBITS
_writeBITS:                             ; @writeBITS
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	add	w10, w8, w3
	str	w10, [x2]
	and	w10, w9, #0xfffffff8
	sbfx	x9, x9, #3, #29
	ldrb	w11, [x1, x9]
	sub	w8, w8, w10
	add	w8, w8, w3
	mov	w10, #8
	sub	w8, w10, w8
	mov	w10, #-1
	lsl	w10, w10, w3
	and	w11, w10, w11
	bic	w10, w0, w10
	lsl	w8, w10, w8
	orr	w8, w11, w8
	strb	w8, [x1, x9]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_writeBITS
.subsections_via_symbols
