	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbit_rewind                    ## -- Begin function nbit_rewind
	.p2align	4, 0x90
_nbit_rewind:                           ## @nbit_rewind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.1:
	movq	(%r15), %rax
	movq	_NB_MAGIC_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_NB_MAGIC_BUSYHEAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r15, 16(%r14)
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rcx
	cmpq	%r15, %rcx
	jne	LBB0_2
## %bb.4:
	movq	%rax, %rcx
LBB0_5:
	movq	%rbx, 8(%r14)
	movq	%rax, (%r14)
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setle	%dil
	callq	_assert
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	cmpq	%rax, 8(%rbx)
	jg	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	setle	%dil
	jmp	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nbit_clear                     ## TAILCALL
LBB0_6:
	movl	$1, %edi
LBB0_9:
	callq	_assert
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ## @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ## @NB_MAGIC_BUSYHEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbit_rewind                    ; -- Begin function nbit_rewind
	.p2align	2
_nbit_rewind:                           ; @nbit_rewind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #16]
	cbz	x21, LBB0_8
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _NB_MAGIC_HEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NB_MAGIC_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _NB_MAGIC_BUSYHEAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NB_MAGIC_BUSYHEAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	str	x21, [x19, #16]
	mov	x9, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x9
	ldp	x8, x9, [x9, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x20, #32]
	cmp	x9, x21
	b.ne	LBB0_2
; %bb.4:
	mov	x9, x8
LBB0_5:
	stp	x8, x20, [x19]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.le	LBB0_10
; %bb.7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nbit_clear
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	ldr	x9, [x20, #16]
	cmp	x8, x9
	cset	w0, le
LBB0_11:
	bl	_assert
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ; @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
.subsections_via_symbols
