	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_bn2hex                      ## -- Begin function BN_bn2hex
	.p2align	4, 0x90
_BN_bn2hex:                             ## @BN_bn2hex
	.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, %r14
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OPENSSL_strdup                 ## TAILCALL
LBB0_1:
	movl	(%r14), %eax
	movq	_BN_BYTES@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	leal	(%rax,%rax), %edi
	addl	$2, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpq	$0, 16(%r14)
	movq	%rax, %r15
	je	LBB0_5
## %bb.4:
	movq	%rax, %r15
	incq	%r15
	movb	$45, (%rax)
LBB0_5:
	movl	(%r14), %r11d
	testl	%r11d, %r11d
	jle	LBB0_14
## %bb.6:
	xorl	%ebx, %ebx
	movq	_BN_BITS2@GOTPCREL(%rip), %r8
	movq	_Hex@GOTPCREL(%rip), %r10
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, %ebx
	cmpq	$2, %r9
	jl	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%r11, %r9
	decq	%r11
	movl	(%r8), %edi
	cmpl	$8, %edi
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	$8, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	addl	$-8, %edi
	movl	%ecx, %ebx
	cmpl	$15, %edi
	jbe	LBB0_7
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rcx
	movl	(%rcx,%r11,4), %esi
	leal	-16(%rdi), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movzbl	%sil, %edx
	xorl	%ecx, %ecx
	orl	%edx, %ebx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%r10), %rcx
	shrl	$4, %edx
	movzbl	(%rcx,%rdx,8), %ecx
	movb	%cl, (%r15)
	movq	(%r10), %rcx
	andl	$15, %esi
	movzbl	(%rcx,%rsi,8), %ecx
	movb	%cl, 1(%r15)
	addq	$2, %r15
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_14:
	movb	$0, (%r15)
	jmp	LBB0_15
LBB0_2:
	movq	_BN_F_BN_BN2HEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0"

	.comm	_BN_BYTES,4,2                   ## @BN_BYTES
	.comm	_BN_F_BN_BN2HEX,4,2             ## @BN_F_BN_BN2HEX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_BN_BITS2,4,2                   ## @BN_BITS2
	.comm	_Hex,8,3                        ## @Hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_bn2hex                      ; -- Begin function BN_bn2hex
	.p2align	2
_BN_bn2hex:                             ; @BN_bn2hex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_BN_is_zero
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_OPENSSL_strdup
LBB0_2:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _BN_BYTES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BN_BYTES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	add	w0, w8, #2
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_14
; %bb.3:
	ldr	x9, [x19, #16]
	mov	x8, x0
	cbz	x9, LBB0_5
; %bb.4:
	mov	w9, #45
	mov	x8, x0
	strb	w9, [x8], #1
LBB0_5:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.6:
	mov	w12, #0
Lloh5:
	adrp	x10, _BN_BITS2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BN_BITS2@GOTPAGEOFF]
Lloh7:
	adrp	x11, _Hex@GOTPAGE
Lloh8:
	ldr	x11, [x11, _Hex@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	x13, #2
	b.lt	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	x13, x9
	sub	x9, x9, #1
	ldr	w14, [x10]
	cmp	w14, #8
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w14, w14, #8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	sub	w14, w14, #8
	cmp	w14, #15
	b.ls	LBB0_7
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w15, w14, #16
	ldr	x16, [x19, #8]
	ldr	w16, [x16, x9, lsl #2]
	asr	w15, w16, w15
	and	w16, w15, #0xff
	orr	w12, w12, w16
	cbz	w12, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x12, [x11]
	lsr	w16, w16, #4
	ldr	x12, [x12, w16, uxtw #3]
	strb	w12, [x8]
	ldr	x12, [x11]
	and	w15, w15, #0xf
	ldr	x12, [x12, w15, uxtw #3]
	strb	w12, [x8, #1]
	add	x8, x8, #2
	mov	w12, #1
	b	LBB0_10
LBB0_13:
	strb	wzr, [x8]
	b	LBB0_15
LBB0_14:
Lloh9:
	adrp	x8, _BN_F_BN_BN2HEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BN_F_BN_BN2HEX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_BNerr
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0"

	.comm	_BN_BYTES,4,2                   ; @BN_BYTES
	.comm	_BN_F_BN_BN2HEX,4,2             ; @BN_F_BN_BN2HEX
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_BN_BITS2,4,2                   ; @BN_BITS2
	.comm	_Hex,8,3                        ; @Hex
.subsections_via_symbols
