	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repair_bit
_repair_bit:                            ## @repair_bit
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	js	LBB0_1
## %bb.2:
	movl	%edx, %r9d
	andl	$31, %r9d
	shrl	$3, %edx
	movl	$3, %r8d
	subl	%edx, %r8d
	orl	$3, %r8d
	addl	%esi, %r8d
	cmpl	$8, %r9d
	jb	LBB0_4
## %bb.3:
	cmpl	$15, %r9d
	movl	$15, %eax
	cmovll	%r9d, %eax
	negl	%eax
	addl	%r9d, %eax
	addl	$7, %eax
	movl	%eax, %ecx
	shrl	$3, %ecx
	notl	%ecx
	addl	%ecx, %r8d
	andl	$-8, %eax
	negl	%eax
	addl	%eax, %r9d
	addl	$-8, %r9d
LBB0_4:
	testl	%r8d, %r8d
	js	LBB0_5
## %bb.6:
	movl	$-3, %eax
	cmpl	%esi, %r8d
	jge	LBB0_8
## %bb.7:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	$7, %cl
	subb	%r9b, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%r8d, %ecx
	xorb	%al, (%rdi,%rcx)
	xorl	%eax, %eax
	popq	%rbp
LBB0_8:
	retq
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_5:
	movl	$-2, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_repair_bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repair_bit
_repair_bit:                            ; @repair_bit
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	mov	w0, #-1
	tbnz	w2, #31, LBB0_4
; %bb.1:
	and	w9, w2, #0x1f
	mov	w10, #3
	sub	w10, w10, w2, lsr #3
	orr	w10, w10, #0x3
	mov	w11, #15
	cmp	w9, #15
	csel	w11, w9, w11, lt
	sub	w11, w9, w11
	add	w11, w11, #7
	eor	w12, w0, w11, lsr #3
	add	w13, w10, w1
	add	w12, w13, w12
	and	w10, w11, #0xfffffff8
	sub	w10, w9, w10
	sub	w10, w10, #8
	cmp	w9, #8
	csel	w10, w9, w10, lo
	csel	w9, w13, w12, lo
	tbnz	w9, #31, LBB0_5
; %bb.2:
	cmp	w9, w1
	b.ge	LBB0_6
; %bb.3:
	mov	w0, #0
	mov	w11, #7
	sub	w10, w11, w10
	mov	w11, #1
	lsl	w10, w11, w10
	ldrb	w11, [x8, x9]
	eor	w10, w11, w10
	strb	w10, [x8, x9]
LBB0_4:
	ret
LBB0_5:
	mov	w0, #-2
	ret
LBB0_6:
	mov	w0, #-3
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_repair_bit
.subsections_via_symbols
