	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_hex
_append_hex:                            ## @append_hex
	.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	%rsi, %r14
	movl	%edi, %r15d
	movq	(%rdx), %r13
	movq	%r13, -48(%rbp)
	cmpq	$0, 8(%rdx)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	8(%r12), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %edi
	callq	_isalnum
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$46, (%r13,%rbx)
	je	LBB0_5
## %bb.8:
	movq	(%r12), %rdi
	movq	8(%r12), %rsi
	leaq	-48(%rbp), %rdx
	callq	_hex_encode
	movq	-48(%rbp), %rcx
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_append_string
	movq	-48(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %r13
	jmp	LBB0_7
LBB0_1:
	xorl	%ecx, %ecx
LBB0_7:
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r13, %r8
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_append_string                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%.*s\""

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_append_hex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_hex
_append_hex:                            ; @append_hex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldp	x22, x8, [x2]
	str	x22, [sp, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x21, x2
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x21, #8]
	cmp	x23, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x22, x23]
	bl	_isalnum
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22, x23]
	cmp	w8, #46
	b.eq	LBB0_2
; %bb.5:
	ldp	x0, x1, [x21]
	add	x2, sp, #24
	bl	_hex_encode
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_append_string
	ldr	x0, [sp, #24]
	bl	_free
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	x22, [x21]
LBB0_7:
	stp	x8, x22, [sp]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_append_string
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%.*s\""

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_append_hex
.subsections_via_symbols
