	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bitadd
_bitadd:                                ## @bitadd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	(%rdi), %eax
	decl	%edx
	xorl	%r8d, %r8d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r8d
	movl	(%rdi), %eax
	incl	%eax
	movl	%eax, (%rdi)
	addl	$-1, %edx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	addl	%r8d, %ecx
	leal	7(%rax,%r8), %eax
	cmovnsl	%ecx, %eax
	movl	%eax, %r9d
	sarl	$3, %r9d
	andl	$-8, %eax
	subl	%eax, %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	btl	%edx, %esi
	jb	LBB0_5
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %r10
	movslq	%r9d, %rax
	movl	$0, (%r10,%rax,4)
	btl	%edx, %esi
	jae	LBB0_6
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	8(%rdi), %r10
	movslq	%r9d, %rcx
	orl	%eax, (%r10,%rcx,4)
	jmp	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bitadd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bitadd
_bitadd:                                ; @bitadd
	.cfi_startproc
; %bb.0:
	subs	w8, w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w9, #0
	ldr	w11, [x0]
	mov	w10, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	ldr	w11, [x0]
	add	w11, w11, #1
	str	w11, [x0]
	sub	w8, w8, #1
	cmn	w8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w11, w9
	add	w11, w12, #7
	cmp	w12, #0
	csel	w13, w11, w12, lt
	asr	w11, w13, #3
	and	w13, w13, #0xfffffff8
	subs	w12, w12, w13
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsr	w13, w1, w8
	tbnz	w13, #0, LBB0_6
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x0, #8]
	str	wzr, [x13, w11, sxtw #2]
	lsr	w13, w1, w8
	tbz	w13, #0, LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	w12, w10, w12
	ldr	x13, [x0, #8]
	sbfiz	x11, x11, #2, #32
	ldr	w14, [x13, x11]
	orr	w12, w14, w12
	str	w12, [x13, x11]
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bitadd
.subsections_via_symbols
