	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s_tobin
_s_tobin:                               ## @s_tobin
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movl	%edi, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movslq	(%rdx), %r14
	callq	_MP_USED
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_MP_DIGITS
	xorl	%r13d, %r13d
	movq	_CHAR_BIT@GOTPCREL(%rip), %rdx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$4, %rax
	leal	-1(%r15), %ebx
	testb	%cl, %cl
	jne	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r15d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r13d
	jge	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %ebx
	movslq	%r13d, %rsi
	movl	(%rax), %edi
	movb	%dil, (%r12,%rsi)
	movzbl	(%rdx), %ecx
	sarl	%cl, %edi
	xorl	$1, %ebx
	leaq	1(%rsi), %r13
	movl	%edi, %ecx
	orl	%ebx, %ecx
	setne	%cl
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %r13
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	%dil, 1(%r12,%rsi)
	movzbl	(%rdx), %ecx
	sarl	%cl, %edi
	leaq	2(%rsi), %r13
	movl	%edi, %ecx
	orl	%ebx, %ecx
	setne	%cl
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %r13
	jge	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	%dil, 2(%r12,%rsi)
	movzbl	(%rdx), %ecx
	sarl	%cl, %edi
	leaq	3(%rsi), %r13
	orl	%edi, %ebx
	setne	%cl
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r14, %r13
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	%dil, 3(%r12,%rsi)
	addq	$4, %rsi
	xorl	%ecx, %ecx
	movq	%rsi, %r13
	jmp	LBB0_10
LBB0_11:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.12:
	movslq	%r13d, %rax
	movzbl	-1(%rax,%r12), %esi
	movb	(%rdx), %cl
	decb	%cl
	shrl	%cl, %esi
	testl	%esi, %esi
	je	LBB0_16
## %bb.13:
	cmpl	%r14d, %r13d
	jge	LBB0_14
## %bb.15:
	incl	%r13d
	movb	$0, (%r12,%rax)
	jmp	LBB0_16
LBB0_14:
	movl	$1, %r15d
LBB0_16:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_REV
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	testl	%r15d, %r15d
	jne	LBB0_17
## %bb.18:
	movq	_MP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_MP_TRUNC@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.comm	_MP_OK,4,2                      ## @MP_OK
	.comm	_MP_TRUNC,4,2                   ## @MP_TRUNC
	.no_dead_strip	_s_tobin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s_tobin
_s_tobin:                               ; @s_tobin
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldrsw	x25, [x2]
	bl	_MP_USED
	mov	x23, x0
	mov	x0, x21
	bl	_MP_DIGITS
	mov	w21, #0
Lloh0:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x11
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #4
	cbnz	w10, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x23
	subs	w23, w23, #1
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, w25
	b.ge	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x9, w21
	ldr	w10, [x0]
	add	x21, x9, #1
	strb	w10, [x20, x9]
	ldr	w11, [x8]
	asr	w12, w10, w11
	cmp	w12, #0
	ccmp	w24, #1, #0, eq
	cset	w10, ne
	cmp	w10, #1
	ccmp	x21, x25, #0, eq
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x9, #2
	strb	w12, [x20, x21]
	ldr	w10, [x8]
	asr	w12, w12, w10
	cmp	w12, #0
	ccmp	w24, #1, #0, eq
	cset	w10, ne
	cmp	w10, #1
	ccmp	x11, x25, #0, eq
	b.ge	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x9, #3
	strb	w12, [x20, x11]
	ldr	w10, [x8]
	asr	w11, w12, w10
	cmp	w11, #0
	ccmp	w24, #1, #0, eq
	cset	w10, ne
	cmp	w10, #1
	ccmp	x21, x25, #0, eq
	b.ge	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w10, #0
	strb	w11, [x20, x21]
	add	x21, x9, #4
	b	LBB0_2
LBB0_9:
	cbz	w22, LBB0_14
; %bb.10:
	mov	x9, x21
	sxtw	x9, w9
	add	x10, x9, x20
	ldurb	w10, [x10, #-1]
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsr	w8, w10, w8
	cbz	w8, LBB0_14
; %bb.11:
	cmp	w21, w25
	b.ge	LBB0_13
; %bb.12:
	add	w21, w21, #1
	strb	wzr, [x20, x9]
	b	LBB0_14
LBB0_13:
	mov	w24, #1
LBB0_14:
	mov	x0, x20
	mov	x1, x21
	bl	_REV
	str	w21, [x19]
Lloh2:
	adrp	x8, _MP_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MP_OK@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MP_TRUNC@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MP_TRUNC@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.comm	_MP_OK,4,2                      ; @MP_OK
	.comm	_MP_TRUNC,4,2                   ; @MP_TRUNC
	.no_dead_strip	_s_tobin
.subsections_via_symbols
