	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbit_advance                   ## -- Begin function nbit_advance
	.p2align	4, 0x90
_nbit_advance:                          ## @nbit_advance
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testl	%esi, %esi
	je	LBB0_27
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_27
## %bb.2:
	movl	%esi, %r12d
	movq	(%rbx), %r14
	xorl	%edi, %edi
	cmpq	%r14, (%r15)
	ja	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	8(%r15), %r14
	setbe	%dil
LBB0_4:
	movq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_assert
	movq	16(%r15), %rax
	testq	%rax, %rax
	sete	%cl
	cmpq	%rax, %r14
	setbe	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	%r12d, %edx
	testl	%r12d, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_21
## %bb.5:
	movq	8(%r15), %rax
	movq	16(%r15), %r13
	testq	%r13, %r13
	sete	%bl
	cmpq	%rax, %r13
	sete	%cl
	orb	%bl, %cl
	cmovnel	%eax, %r13d
	subl	%r14d, %r13d
	xorl	%r12d, %r12d
	cmpl	%edx, %r13d
	jle	LBB0_9
## %bb.6:
	movq	%r15, %rbx
LBB0_8:
	movl	%edx, %eax
	addq	%r14, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rbx, 8(%rcx)
	addl	%edx, %r12d
	jmp	LBB0_27
LBB0_21:
	movl	(%r15), %eax
	movl	%r14d, %ebx
	subl	%eax, %ebx
	xorl	%r12d, %r12d
	movl	%ebx, %r13d
	addl	%edx, %r13d
	jns	LBB0_26
## %bb.22:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	subl	%ebx, %r12d
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	24(%r15), %r15
	movq	8(%r15), %r14
	movq	16(%r15), %rax
	testq	%rax, %rax
	sete	%cl
	cmpq	%rax, %r14
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	(%r15), %eax
	movl	%r14d, %ebx
	subl	%eax, %ebx
	xorl	%edi, %edi
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	setae	%dil
	callq	_assert
	movl	%r13d, %edx
	addl	%ebx, %r13d
	js	LBB0_23
LBB0_26:
	movslq	%edx, %rax
	addq	%rax, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rcx)
	movq	%r15, 8(%rcx)
	addl	%r12d, %eax
	movl	%eax, %r12d
	jmp	LBB0_27
LBB0_9:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	%r13d, %r12d
	testb	$1, %cl
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	32(%r15), %rbx
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	subl	%r13d, %edx
	movq	8(%rbx), %r13
	movq	16(%rbx), %rax
	testq	%rax, %rax
	sete	%sil
	cmpq	%r13, %rax
	sete	%cl
	orb	%sil, %cl
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movl	%edx, %r15d
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rbx), %r14
	subl	%r14d, %r13d
	xorl	%edi, %edi
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	setae	%dil
	callq	_assert
	testl	%r15d, %r15d
	jle	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %edx
	movq	%rbx, %r15
	cmpl	%r13d, %edx
	movzbl	-41(%rbp), %ecx                 ## 1-byte Folded Reload
	jge	LBB0_10
	jmp	LBB0_8
LBB0_11:
	movq	16(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%r15, 8(%rcx)
	jmp	LBB0_27
LBB0_13:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	sete	%dil
	jmp	LBB0_16
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	%rbx, 8(%rax)
	jmp	LBB0_27
LBB0_24:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	jmp	LBB0_27
LBB0_14:
	movl	$1, %edi
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_assert
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	%r15, 8(%rbx)
LBB0_27:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_BUFFER_SIZE,4,2            ## @NET_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbit_advance                   ; -- Begin function nbit_advance
	.p2align	2
_nbit_advance:                          ; @nbit_advance
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w20, #0
	cbz	w1, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_15
; %bb.2:
	mov	x21, x1
	ldr	x24, [x19]
	ldr	x8, [x22]
	cmp	x8, x24
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22, #8]
	cmp	x24, x8
	cset	w0, ls
LBB0_5:
	ldr	x23, [x19, #16]
	bl	_assert
	ldr	x8, [x22, #16]
	cmp	x8, #0
	ccmp	x24, x8, #0, ne
	cset	w0, ls
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.6:
	ldp	x8, x9, [x22, #8]
	cmp	x9, #0
	ccmp	x9, x8, #4, ne
	cset	w26, eq
	csel	w8, w8, w9, eq
	sub	w27, w8, w24
	cmp	w27, w21
	b.le	LBB0_16
; %bb.7:
	mov	w20, #0
LBB0_8:
	add	x8, x24, w21, uxtw
	b	LBB0_14
LBB0_9:
	ldr	w8, [x22]
	sub	w26, w24, w8
	mov	w20, #0
	adds	w8, w26, w21
	b.pl	LBB0_13
; %bb.10:
Lloh0:
	adrp	x25, _NET_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NET_BUFFER_SIZE@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, w26
	cmp	x22, x23
	b.eq	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x8
	ldr	x22, [x22, #24]
	ldp	x24, x8, [x22, #8]
	cmp	x8, #0
	ccmp	x24, x8, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22]
	ldr	w9, [x25]
	sub	w26, w24, w8
	cmp	w9, w26
	cset	w0, hs
	bl	_assert
	adds	w8, w21, w26
	b.mi	LBB0_11
LBB0_13:
	add	x8, x24, w21, sxtw
LBB0_14:
	stp	x8, x22, [x19]
	add	w20, w20, w21
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w20, #0
Lloh2:
	adrp	x25, _NET_BUFFER_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NET_BUFFER_SIZE@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	add	w20, w20, w27
	tbz	w26, #0, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x22, #32]
	cmp	x8, x23
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	sub	w21, w21, w27
	mov	x22, x8
	ldp	x24, x8, [x8]
	ldr	x9, [x22, #16]
	cmp	x9, #0
	ccmp	x9, x8, #4, ne
	cset	w26, eq
	csel	w8, w8, w9, eq
	ldr	w9, [x25]
	sub	w27, w8, w24
	cmp	w9, w27
	cset	w0, hs
	bl	_assert
	cmp	w21, #0
	b.le	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	w21, w27
	b.ge	LBB0_17
	b	LBB0_8
LBB0_21:
	ldr	x8, [x22, #16]
	b	LBB0_28
LBB0_22:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_26
; %bb.23:
	ldr	x9, [x22, #8]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_27
LBB0_24:
	stp	x24, x22, [x19]
	b	LBB0_15
LBB0_25:
	ldr	x8, [x23]
	stp	x8, x23, [x19]
	b	LBB0_15
LBB0_26:
	mov	w0, #1
LBB0_27:
	bl	_assert
	ldr	x8, [x22, #8]
LBB0_28:
	stp	x8, x22, [x19]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_BUFFER_SIZE,4,2            ; @NET_BUFFER_SIZE
.subsections_via_symbols
