	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bits_to_string
_bits_to_string:                        ## @bits_to_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	_bits_to_string.buf(%rip), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movb	(%rbx), %cl
	testb	%cl, %cl
	je	LBB0_9
## %bb.1:
	movb	$60, %al
	leaq	L_.str(%rip), %r13
	movq	%r15, %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %ecx
	testb	%dl, %dl
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	leaq	1(%rbx), %r9
	movl	$-1, %r8d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %edx
	incq	%rbx
	incl	%r8d
	cmpb	$31, %dl
	jg	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decb	%cl
	movzbl	%cl, %ecx
	btl	%ecx, %r14d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %esi
	subl	%r12d, %esi
	subl	$-128, %esi
	movsbl	%al, %ecx
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rax, %r12
	movb	(%rbx), %dl
	movb	$44, %al
	jmp	LBB0_6
LBB0_7:
	cmpb	$60, %al
	je	LBB0_9
## %bb.8:
	movb	$62, (%r12)
LBB0_9:
	leaq	_bits_to_string.buf(%rip), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_bits_to_string.buf,128,4 ## @bits_to_string.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c%.*s"

	.no_dead_strip	_bits_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bits_to_string
_bits_to_string:                        ; @bits_to_string
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _bits_to_string.buf@PAGE
Lloh1:
	add	x0, x0, _bits_to_string.buf@PAGEOFF
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldrb	w9, [x19]
	cbz	w9, LBB0_9
; %bb.1:
	mov	w8, #60
Lloh2:
	adrp	x23, _bits_to_string.buf@PAGE
Lloh3:
	add	x23, x23, _bits_to_string.buf@PAGEOFF
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	mov	x21, x23
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w9, w23, w21
	add	w1, w9, #128
	sxtb	w3, w8
	mov	x0, x21
	mov	x2, x22
	bl	_snprintf
	mov	x0, x21
	bl	_strlen
	add	x21, x21, w0, sxtw
	ldrb	w9, [x19]
	mov	w8, #44
	tst	w9, #0xff
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x5, x19, #1
	mov	w4, #-1
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w10, [x19, #1]!
	add	w4, w4, #1
	cmp	w10, #31
	b.gt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtb	w9, w9
	sub	w9, w9, #1
	lsr	w9, w20, w9
	tbnz	w9, #0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x10
	tst	w9, #0xff
	b.ne	LBB0_3
LBB0_7:
	and	w8, w8, #0xff
	cmp	w8, #60
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #62
	strb	w8, [x21]
LBB0_9:
Lloh6:
	adrp	x0, _bits_to_string.buf@PAGE
Lloh7:
	add	x0, x0, _bits_to_string.buf@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_bits_to_string.buf,128,0 ; @bits_to_string.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c%.*s"

	.no_dead_strip	_bits_to_string
.subsections_via_symbols
