	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_buf2hexstr             ## -- Begin function OPENSSL_buf2hexstr
	.p2align	4, 0x90
_OPENSSL_buf2hexstr:                    ## @OPENSSL_buf2hexstr
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	(%rsi,%rsi,2), %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rcx
	testq	%r14, %r14
	jle	LBB0_10
## %bb.3:
	cmpq	$1, %r14
	jne	LBB0_6
## %bb.4:
	movq	%rax, %rcx
	jmp	LBB0_8
LBB0_12:
	movl	$1, %edi
	jmp	_OPENSSL_zalloc                 ## TAILCALL
LBB0_5:
	movq	_CRYPTO_F_OPENSSL_BUF2HEXSTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rsi
	andq	$-2, %rsi
	leaq	_OPENSSL_buf2hexstr.hexdig(%rip), %r8
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %edi
	shrq	$4, %rdi
	movzbl	(%rdi,%r8), %edx
	movb	%dl, (%rcx)
	movzbl	(%rbx), %edx
	andl	$15, %edx
	movzbl	(%rdx,%r8), %edx
	movb	%dl, 1(%rcx)
	movb	$58, 2(%rcx)
	movzbl	1(%rbx), %edx
	shrq	$4, %rdx
	movzbl	(%rdx,%r8), %edx
	movb	%dl, 3(%rcx)
	movzbl	1(%rbx), %edx
	andl	$15, %edx
	movzbl	(%rdx,%r8), %edx
	movb	%dl, 4(%rcx)
	movb	$58, 5(%rcx)
	addq	$6, %rcx
	addq	$2, %rbx
	addq	$-2, %rsi
	jne	LBB0_7
LBB0_8:
	testb	$1, %r14b
	je	LBB0_10
## %bb.9:
	movzbl	(%rbx), %edx
	shrq	$4, %rdx
	leaq	_OPENSSL_buf2hexstr.hexdig(%rip), %rsi
	movb	(%rdx,%rsi), %dl
	movb	%dl, (%rcx)
	movzbl	(%rbx), %edx
	andl	$15, %edx
	movb	(%rdx,%rsi), %dl
	movb	%dl, 1(%rcx)
	movb	$58, 2(%rcx)
	addq	$3, %rcx
LBB0_10:
	movb	$0, -1(%rcx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @OPENSSL_buf2hexstr.hexdig
_OPENSSL_buf2hexstr.hexdig:
	.asciz	"0123456789ABCDEF"

	.comm	_CRYPTO_F_OPENSSL_BUF2HEXSTR,4,2 ## @CRYPTO_F_OPENSSL_BUF2HEXSTR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_buf2hexstr             ; -- Begin function OPENSSL_buf2hexstr
	.p2align	2
_OPENSSL_buf2hexstr:                    ; @OPENSSL_buf2hexstr
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_6
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, x1, lsl #1
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x11, x0
	cmp	x19, #1
	b.lt	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _OPENSSL_buf2hexstr.hexdig@PAGE
Lloh1:
	add	x8, x8, _OPENSSL_buf2hexstr.hexdig@PAGEOFF
	mov	w9, #58
	mov	x10, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x20]
	lsr	x11, x11, #4
	ldrb	w11, [x8, x11]
	strb	w11, [x10]
	ldrb	w11, [x20], #1
	and	x11, x11, #0xf
	ldrb	w11, [x8, x11]
	strb	w11, [x10, #1]
	add	x11, x10, #3
	strb	w9, [x10, #2]
	mov	x10, x11
	subs	x19, x19, #1
	b.ne	LBB0_4
LBB0_5:
	sturb	wzr, [x11, #-1]
	b	LBB0_8
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	w0, #1
	b	_OPENSSL_zalloc
LBB0_7:
	.cfi_restore_state
Lloh2:
	adrp	x8, _CRYPTO_F_OPENSSL_BUF2HEXSTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_BUF2HEXSTR@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	_CRYPTOerr
	mov	x0, #0
LBB0_8:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
_OPENSSL_buf2hexstr.hexdig:             ; @OPENSSL_buf2hexstr.hexdig
	.asciz	"0123456789ABCDEF"

	.comm	_CRYPTO_F_OPENSSL_BUF2HEXSTR,4,2 ; @CRYPTO_F_OPENSSL_BUF2HEXSTR
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
