	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bignum_to_string
_bignum_to_string:                      ## @bignum_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_BN_num_bits
	movq	%rbx, %rdi
	cmpl	$127, %eax
	jg	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BN_bn2dec                      ## TAILCALL
LBB0_1:
	callq	_BN_bn2hex
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	addl	$3, %eax
	movslq	%eax, %r15
	movq	%r15, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	cmpb	$45, (%r14)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_OPENSSL_strlcpy
	movq	%r14, %rsi
	incq	%rsi
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_X509V3_F_BIGNUM_TO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_X509V3err
	movq	%r14, %rdi
	callq	_OPENSSL_free
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_OPENSSL_strlcpy
	movq	%r14, %rsi
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_OPENSSL_strlcat
	movq	%r14, %rdi
	callq	_OPENSSL_free
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X509V3_F_BIGNUM_TO_STRING,4,2  ## @X509V3_F_BIGNUM_TO_STRING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-0x"

L_.str.1:                               ## @.str.1
	.asciz	"0x"

	.no_dead_strip	_bignum_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bignum_to_string
_bignum_to_string:                      ; @bignum_to_string
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_BN_num_bits
	cmp	w0, #127
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_BN_bn2dec
LBB0_2:
	mov	x0, x19
	bl	_BN_bn2hex
	cbz	x0, LBB0_6
; %bb.3:
	mov	x19, x0
	bl	_strlen
	add	w8, w0, #3
	sxtw	x21, w8
	mov	x0, x21
	bl	_OPENSSL_malloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldrb	w8, [x19]
	cmp	w8, #45
	b.ne	LBB0_8
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_OPENSSL_strlcpy
	add	x1, x19, #1
	b	LBB0_9
LBB0_6:
	mov	x20, #0
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x8, _X509V3_F_BIGNUM_TO_STRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _X509V3_F_BIGNUM_TO_STRING@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_X509V3err
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_OPENSSL_strlcpy
	mov	x1, x19
LBB0_9:
	mov	x0, x20
	mov	x2, x21
	bl	_OPENSSL_strlcat
LBB0_10:
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_X509V3_F_BIGNUM_TO_STRING,4,2  ; @X509V3_F_BIGNUM_TO_STRING
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-0x"

l_.str.1:                               ; @.str.1
	.asciz	"0x"

	.no_dead_strip	_bignum_to_string
.subsections_via_symbols
