	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tohexstr                       ## -- Begin function tohexstr
	.p2align	4, 0x90
_tohexstr:                              ## @tohexstr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movb	$0, (%rdx)
	movb	$0, -42(%rbp)
	movw	$16705, -44(%rbp)               ## imm = 0x4141
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcat
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	%ebx, %r13d
	xorl	%r15d, %r15d
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%r15), %edx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_2
LBB0_3:
	leaq	l_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcat
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.tohexstr.c_ret:               ## @__const.tohexstr.c_ret
	.asciz	"AA"

L_.str:                                 ## @.str
	.asciz	"0x"

L_.str.1:                               ## @.str.1
	.asciz	"%02X"

	.section	__TEXT,__const
l_.str.2:                               ## @.str.2
	.space	2

	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tohexstr                       ; -- Begin function tohexstr
	.p2align	2
_tohexstr:                              ; @tohexstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	strb	wzr, [x2]
	strb	wzr, [sp, #14]
	mov	w8, #16705
	strh	w8, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcat
	cbz	w21, LBB0_3
; %bb.1:
	mov	w22, w21
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w2, [x20], #1
	add	x0, sp, #12
	mov	x1, x21
	bl	_sprintf
	add	x1, sp, #12
	mov	x0, x19
	bl	_strcat
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcat
Lloh6:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.tohexstr.c_ret:               ; @__const.tohexstr.c_ret
	.asciz	"AA"

l_.str:                                 ; @.str
	.asciz	"0x"

l_.str.1:                               ; @.str.1
	.asciz	"%02X"

	.section	__TEXT,__const
l_.str.2:                               ; @.str.2
	.space	2

	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
