	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%ecx, %edi
	callq	_set_mem_fault_trap
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	incl	%ebx
	movq	_mem_err@GOTPCREL(%rip), %r8
	movq	_hexchars@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r8)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%r15), %edx
	incq	%r15
	movq	(%rcx), %rsi
	movq	%rdx, %rdi
	shrq	$4, %rdi
	movzbl	(%rsi,%rdi,8), %eax
	movb	%al, (%r14)
	movq	(%rcx), %rax
	andl	$15, %edx
	movzbl	(%rax,%rdx,8), %eax
	movb	%al, 1(%r14)
	addq	$2, %r14
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_2
LBB0_5:
	movb	$0, (%r14)
	xorl	%edi, %edi
	callq	_set_mem_fault_trap
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mem_err,8,3                    ## @mem_err
	.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:
	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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_set_mem_fault_trap
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	add	w8, w21, #1
Lloh0:
	adrp	x9, _mem_err@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mem_err@GOTPAGEOFF]
Lloh2:
	adrp	x10, _hexchars@GOTPAGE
Lloh3:
	ldr	x10, [x10, _hexchars@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbnz	x11, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w11, [x20], #1
	ldr	x12, [x10]
	lsr	x13, x11, #1
	and	x13, x13, #0x78
	ldr	x12, [x12, x13]
	strb	w12, [x19]
	ldr	x12, [x10]
	and	x11, x11, #0xf
	ldr	x12, [x12, x11, lsl #3]
	add	x11, x19, #2
	strb	w12, [x19, #1]
	sub	w8, w8, #1
	mov	x19, x11
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.4:
	mov	x19, x11
LBB0_5:
	strb	wzr, [x19]
	mov	w0, #0
	bl	_set_mem_fault_trap
	b	LBB0_7
LBB0_6:
	mov	x19, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mem_err,8,3                    ; @mem_err
	.comm	_hexchars,8,3                   ; @hexchars
	.no_dead_strip	_mem2hex
.subsections_via_symbols
