	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getbits
_getbits:                               ## @getbits
	.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, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	leaq	_getbits.digits(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r13,%r13,4), %edx
	subl	%r15d, %ecx
	leal	(%rcx,%rdx,2), %r13d
	incq	%rbx
	cmpl	$129, %r13d
	jge	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %eax
	testb	%al, %al
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_strchr
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_5
	jmp	LBB0_9
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.8:
	movl	%r13d, (%r14)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_getbits.digits:                        ## @getbits.digits
	.asciz	"0123456789"

	.no_dead_strip	_getbits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getbits
_getbits:                               ; @getbits
	.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
	mov	x23, #0
	mov	w22, #0
	mov	w24, #10
Lloh0:
	adrp	x21, _getbits.digits@PAGE
Lloh1:
	add	x21, x21, _getbits.digits@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w0, w21
	madd	w22, w22, w24, w8
	add	x23, x23, #1
	cmp	w22, #129
	b.ge	LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x23]
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w1, w8
	mov	x0, x21
	bl	_strchr
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w23, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w22, LBB0_1
	b	LBB0_8
LBB0_6:
	cbz	w23, LBB0_8
; %bb.7:
	str	w22, [x19]
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_getbits.digits:                        ; @getbits.digits
	.asciz	"0123456789"

	.no_dead_strip	_getbits
.subsections_via_symbols
