	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem2hex
_mem2hex:                               ## @mem2hex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rax
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	testb	$1, %dl
	jne	LBB0_3
## %bb.2:
	movl	%edx, %r11d
	cmpl	$1, %edx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	leal	-1(%rdx), %r11d
	movzbl	(%rdi), %r10d
	incq	%rdi
	movq	_hexchars@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	movq	%r10, %rsi
	shrq	$4, %rsi
	movb	(%r9,%rsi,8), %cl
	movb	%cl, (%rax)
	movq	(%r8), %rcx
	andl	$15, %r10d
	movb	(%rcx,%r10,8), %cl
	movb	%cl, 1(%rax)
	addq	$2, %rax
	cmpl	$1, %edx
	je	LBB0_7
LBB0_5:
	decl	%r11d
	movq	_hexchars@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi), %edx
	movq	(%r8), %rsi
	movq	%rdx, %rcx
	shrq	$4, %rcx
	movzbl	(%rsi,%rcx,8), %ecx
	movb	%cl, (%rax)
	movq	(%r8), %rcx
	andl	$15, %edx
	movzbl	(%rcx,%rdx,8), %ecx
	movb	%cl, 1(%rax)
	movzbl	1(%rdi), %ecx
	movq	(%r8), %rdx
	movq	%rcx, %rsi
	shrq	$4, %rsi
	movzbl	(%rdx,%rsi,8), %edx
	movb	%dl, 2(%rax)
	movq	(%r8), %rdx
	andl	$15, %ecx
	movzbl	(%rdx,%rcx,8), %ecx
	movb	%cl, 3(%rax)
	addq	$4, %rax
	addq	$2, %rdi
	addl	$-2, %r11d
	jb	LBB0_6
LBB0_7:
	movb	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hexchars,8,3                   ## @hexchars
	.no_dead_strip	_mem2hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem2hex
_mem2hex:                               ; @mem2hex
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.1:
	add	w8, w2, #1
Lloh0:
	adrp	x9, _hexchars@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hexchars@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x0], #1
	ldr	x11, [x9]
	lsr	x12, x10, #1
	and	x12, x12, #0x78
	ldr	x11, [x11, x12]
	strb	w11, [x1]
	ldr	x11, [x9]
	and	x10, x10, #0xf
	ldr	x11, [x11, x10, lsl #3]
	add	x10, x1, #2
	strb	w11, [x1, #1]
	sub	w8, w8, #1
	mov	x1, x10
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.3:
	mov	x1, x10
LBB0_4:
	strb	wzr, [x1]
	mov	x0, x1
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hexchars,8,3                   ; @hexchars
	.no_dead_strip	_mem2hex
.subsections_via_symbols
