	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_bitstring
_decode_bitstring:                      ## @decode_bitstring
	.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
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movzbl	(%r12), %r15d
	testl	%r15d, %r15d
	movl	$256, %r13d                     ## imm = 0x100
	cmovnel	%r15d, %r13d
	leal	3(%r13), %eax
	shrl	$2, %eax
	cmpl	$10, %r13d
	movl	$7, %ecx
	sbbl	$-1, %ecx
	cmpl	$100, %r13d
	movl	$9, %esi
	cmovbl	%ecx, %esi
	addl	%eax, %esi
	addq	%r14, %rsi
	movl	$-1, %ecx
	cmpq	%rdx, %rsi
	jae	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_SPRINTF
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	%r14, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addq	%r14, %rbx
	leaq	1(%r12), %r14
	cmpl	$8, %r13d
	jb	LBB0_7
## %bb.3:
	movl	%r13d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14), %edi
	callq	_SPRINTF
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %eax
	addq	%rax, %rbx
	addl	$-8, %r15d
	incq	%r14
	cmpl	$7, %r15d
	ja	LBB0_4
## %bb.6:
	leaq	-1(%r14), %r12
LBB0_7:
	cmpl	$5, %r15d
	jb	LBB0_11
## %bb.8:
	movsbl	(%r14), %eax
	movb	$8, %cl
	subb	%r15b, %cl
	movl	$255, %edi
	shll	%cl, %edi
	andl	%eax, %edi
	jmp	LBB0_9
LBB0_11:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.12:
	movzbl	(%r14), %edi
	shrq	$4, %rdi
	movb	$4, %cl
	subb	%r15b, %cl
	movl	$15, %eax
	shlq	%cl, %rax
	andl	%eax, %edi
LBB0_9:
	callq	_SPRINTF
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	addq	$2, %r12
	movl	%eax, %eax
	addq	%rax, %rbx
	movq	%r12, %r14
LBB0_14:
	movl	%r13d, %edi
	callq	_SPRINTF
	testl	%eax, %eax
	movl	$-1, %ecx
	js	LBB0_16
## %bb.15:
	addl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %ecx
	jmp	LBB0_16
LBB0_10:
	movl	$-1, %ecx
LBB0_16:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\[x"

	.no_dead_strip	_decode_bitstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_bitstring
_decode_bitstring:                      ; @decode_bitstring
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x25, [x0]
	ldrb	w23, [x25]
	mov	w8, #256
	cmp	w23, #0
	csel	w21, w8, w23, eq
	add	w8, w21, #3
	cmp	w21, #9
	mov	w9, #7
	cinc	w9, w9, hi
	mov	w10, #9
	cmp	w21, #99
	csel	w9, w10, w9, hi
	add	w8, w9, w8, lsr #2
	add	x8, x1, x8
	cmp	x8, x2
	b.hs	LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SPRINTF
	tbnz	w0, #31, LBB0_14
; %bb.2:
	add	x22, x19, w0, uxtw
	add	x24, x25, #1
	cmp	w21, #8
	b.lo	LBB0_7
; %bb.3:
	mov	x23, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x24]
	bl	_SPRINTF
	tbnz	w0, #31, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, w0, uxtw
	sub	w23, w23, #8
	add	x24, x24, #1
	cmp	w23, #7
	b.hi	LBB0_4
; %bb.6:
	sub	x25, x24, #1
LBB0_7:
	cmp	w23, #5
	b.lo	LBB0_9
; %bb.8:
	ldrsb	w8, [x24]
	mov	w9, #8
	sub	w9, w9, w23
	mov	w10, #255
	lsl	w9, w10, w9
	and	w0, w9, w8
	bl	_SPRINTF
	tbz	w0, #31, LBB0_11
	b	LBB0_14
LBB0_9:
	cbz	w23, LBB0_12
; %bb.10:
	ldrb	w8, [x24]
	mov	w9, #4
	sub	x9, x9, w23, uxtw
	mov	w10, #15
	lsl	x9, x10, x9
	and	x0, x9, x8, lsr #4
	bl	_SPRINTF
	tbnz	w0, #31, LBB0_14
LBB0_11:
	add	x24, x25, #2
	add	x22, x22, w0, uxtw
LBB0_12:
	mov	x0, x21
	bl	_SPRINTF
	tbnz	w0, #31, LBB0_14
; %bb.13:
	str	x24, [x20]
	add	w8, w22, w0
	sub	w0, w8, w19
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\[x"

	.no_dead_strip	_decode_bitstring
.subsections_via_symbols
