	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mem2hstr                       ## -- Begin function mem2hstr
	.p2align	4, 0x90
_mem2hstr:                              ## @mem2hstr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.1:
	cmpq	$1, %rdx
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r10
	andq	$-2, %r10
	movq	_hexchars@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rsi), %edi
	movq	(%r8), %r9
	movl	%edi, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	movzbl	(%r9,%rcx,8), %ecx
	movb	%cl, (%rax)
	movq	(%r8), %rcx
	andl	$15, %edi
	movzbl	(%rcx,%rdi,8), %ecx
	movb	%cl, 1(%rax)
	movsbl	1(%rsi), %r11d
	movq	(%r8), %r9
	movl	%r11d, %edi
	sarl	$4, %edi
	movslq	%edi, %rdi
	movzbl	(%r9,%rdi,8), %ecx
	movb	%cl, 2(%rax)
	movq	(%r8), %rcx
	andl	$15, %r11d
	movzbl	(%rcx,%r11,8), %ecx
	movb	%cl, 3(%rax)
	addq	$4, %rax
	addq	$2, %rsi
	addq	$-2, %r10
	jne	LBB0_3
LBB0_4:
	testb	$1, %dl
	je	LBB0_6
## %bb.5:
	movsbl	(%rsi), %ecx
	movq	_hexchars@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	movl	%ecx, %edi
	sarl	$4, %edi
	movslq	%edi, %rdi
	movb	(%rsi,%rdi,8), %dl
	movb	%dl, (%rax)
	movq	(%r8), %rdx
	andl	$15, %ecx
	movb	(%rdx,%rcx,8), %cl
	movb	%cl, 1(%rax)
	addq	$2, %rax
LBB0_6:
	movb	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hexchars,8,3                   ## @hexchars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mem2hstr                       ; -- Begin function mem2hstr
	.p2align	2
_mem2hstr:                              ; @mem2hstr
	.cfi_startproc
; %bb.0:
	cmp	x2, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _hexchars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hexchars@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w9, [x1], #1
	ldr	x10, [x8]
	asr	w11, w9, #4
	ldr	x10, [x10, w11, sxtw #3]
	strb	w10, [x0]
	ldr	x10, [x8]
	and	w9, w9, #0xf
	ldr	x10, [x10, w9, uxtw #3]
	add	x9, x0, #2
	strb	w10, [x0, #1]
	mov	x0, x9
	subs	x2, x2, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x9
LBB0_4:
	strb	wzr, [x0]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hexchars,8,3                   ; @hexchars
.subsections_via_symbols
