	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tohex
_tohex:                                 ## @tohex
	.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	(%rdi), %r9
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movl	%esi, %ecx
	testb	$1, %cl
	je	LBB0_3
## %bb.2:
	decq	%rcx
	movl	%edx, %r8d
	andl	$15, %r8d
	leaq	L_.str(%rip), %rax
	movb	(%r8,%rax), %r8b
	movl	%ecx, %eax
	movb	%r8b, (%r9,%rax)
	sarl	$4, %edx
LBB0_3:
	cmpl	$1, %esi
	je	LBB0_6
## %bb.4:
	addq	$-2, %rcx
	leaq	L_.str(%rip), %r8
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %r10
	movl	%edx, %eax
	andl	$15, %eax
	movzbl	(%rax,%r8), %r11d
	movl	%r10d, %eax
	movb	%r11b, (%r9,%rax)
	movl	%edx, %eax
	shrl	$4, %eax
	andl	$15, %eax
	movzbl	(%rax,%r8), %r11d
	movl	%ecx, %eax
	movb	%r11b, (%r9,%rax)
	sarl	$8, %edx
	addq	$-2, %rcx
	cmpq	$1, %r10
	ja	LBB0_5
LBB0_6:
	movslq	%esi, %rax
	addq	%rax, %r9
	movq	%r9, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0123456789abcdef"

	.no_dead_strip	_tohex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tohex
_tohex:                                 ; @tohex
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0]
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, w1
	add	x9, x9, #1
Lloh0:
	adrp	x10, l_.str@PAGE
Lloh1:
	add	x10, x10, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	x11, x2, #0xf
	ldrb	w11, [x10, x11]
	sub	w12, w9, #2
	strb	w11, [x8, w12, uxtw]
	asr	w2, w2, #4
	sub	x9, x9, #1
	cmp	x9, #1
	b.hi	LBB0_2
LBB0_3:
	add	x8, x8, w1, sxtw
	str	x8, [x0]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0123456789abcdef"

	.no_dead_strip	_tohex
.subsections_via_symbols
