	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_bignum_to_bin           ## -- Begin function crypto_bignum_to_bin
	.p2align	4, 0x90
_crypto_bignum_to_bin:                  ## @crypto_bignum_to_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	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_TEST_FAIL
	movl	$-1, %r13d
	cmpq	%rbx, %r12
	ja	LBB0_4
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mp_count_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movslq	%eax, %r14
	cmpq	%rbx, %r14
	ja	LBB0_4
## %bb.3:
	movl	%r12d, %ebx
	subl	%r14d, %ebx
	xorl	%eax, %eax
	cmpq	%r12, %r14
	cmovael	%eax, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_os_memset
	movslq	%ebx, %r13
	leaq	(%r12,%r13,4), %rsi
	movq	%r15, %rdi
	callq	_mp_to_unsigned_bin
	addl	%r14d, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_bignum_to_bin           ; -- Begin function crypto_bignum_to_bin
	.p2align	2
_crypto_bignum_to_bin:                  ; @crypto_bignum_to_bin
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_TEST_FAIL
	mov	x8, x0
	mov	w0, #-1
	cmp	x21, x22
	b.hi	LBB0_5
; %bb.1:
	cbnz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_mp_count_bits
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x23, x8, #3, #29
	cmp	x23, x22
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	sub	w8, w21, w23
	cmp	x23, x21
	csel	w21, w8, wzr, lo
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_os_memset
	add	x1, x20, w21, sxtw #2
	mov	x0, x19
	bl	_mp_to_unsigned_bin
	add	w0, w21, w23
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
