	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_to_unsigned_bin
_mp_to_unsigned_bin:                    ## @mp_to_unsigned_bin
	.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, %rsi
	leaq	-48(%rbp), %rdi
	callq	_mp_init_copy
	movl	%eax, %r12d
	movq	_MP_OKAY@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_mp_iszero
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	movzbl	(%rax), %eax
	movb	%al, (%r14,%rbx)
	incq	%rbx
	movq	%r15, %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_mp_div_2d
	cmpl	(%r13), %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %r12d
	leaq	-48(%rbp), %rdi
	callq	_mp_clear
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bn_reverse
	leaq	-48(%rbp), %rdi
	callq	_mp_clear
	movl	(%r13), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP_OKAY,4,2                    ## @MP_OKAY
	.no_dead_strip	_mp_to_unsigned_bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_to_unsigned_bin
_mp_to_unsigned_bin:                    ; @mp_to_unsigned_bin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x1, x0
	add	x0, sp, #8
	bl	_mp_init_copy
	mov	x20, x0
Lloh0:
	adrp	x22, _MP_OKAY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MP_OKAY@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_mp_iszero
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	add	x23, x21, #1
	strb	w8, [x19, x21]
	add	x0, sp, #8
	add	x2, sp, #8
	mov	w1, #8
	mov	x3, #0
	bl	_mp_div_2d
	ldr	w8, [x22]
	mov	x21, x23
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.4:
	mov	x20, x0
	add	x0, sp, #8
	bl	_mp_clear
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_bn_reverse
	add	x0, sp, #8
	bl	_mp_clear
	ldr	w20, [x22]
LBB0_6:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MP_OKAY,4,2                    ; @MP_OKAY
	.no_dead_strip	_mp_to_unsigned_bin
.subsections_via_symbols
