	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UINT16ToHex
_UINT16ToHex:                           ## @UINT16ToHex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	%esi, -48(%rbp)
	subq	%rdi, %rdx
	cmpq	$7, %rdx
	jl	LBB0_5
## %bb.1:
	movl	%ecx, %r14d
	leaq	-40(%rbp), %r15
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_HPDF_MemCpy
	movl	-40(%rbp), %eax
	shll	$8, %eax
	orl	-36(%rbp), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_HPDF_MemCpy
	movb	$60, (%rbx)
	cmpl	$2, %r14d
	jne	LBB0_2
## %bb.3:
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	shll	$20, %ecx
	movl	%eax, %edx
	shrl	$4, %edx
	cmpl	$167772160, %ecx                ## imm = 0xA000000
	movl	$48, %ecx
	movl	$55, %esi
	cmovll	%ecx, %esi
	addb	%dl, %sil
	movb	%sil, 1(%rbx)
	andl	$15, %eax
	leal	48(%rax), %ecx
	leal	55(%rax), %edx
	cmpl	$10, %eax
	movzbl	%cl, %eax
	movzbl	%dl, %ecx
	cmovbl	%eax, %ecx
	movb	%cl, 2(%rbx)
	addq	$3, %rbx
	jmp	LBB0_4
LBB0_2:
	incq	%rbx
LBB0_4:
	movl	-36(%rbp), %eax
	movl	%eax, %ecx
	shll	$20, %ecx
	movl	%eax, %edx
	shrl	$4, %edx
	cmpl	$167772160, %ecx                ## imm = 0xA000000
	movl	$48, %ecx
	movl	$55, %esi
	cmovll	%ecx, %esi
	addb	%dl, %sil
	andl	$15, %eax
	leal	48(%rax), %ecx
	leal	55(%rax), %edx
	cmpl	$10, %eax
	movzbl	%cl, %eax
	movzbl	%dl, %ecx
	cmovbl	%eax, %ecx
	movb	%sil, (%rbx)
	movb	%cl, 1(%rbx)
	movw	$62, 2(%rbx)
	addq	$3, %rbx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_UINT16ToHex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UINT16ToHex
_UINT16ToHex:                           ; @UINT16ToHex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	w1, [sp, #12]
	sub	x8, x2, x0
	cmp	x8, #7
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x3
	add	x0, sp, #16
	add	x1, sp, #12
	mov	w2, #2
	bl	_HPDF_MemCpy
	ldp	w8, w9, [sp, #16]
	orr	w8, w9, w8, lsl #8
	str	w8, [sp, #8]
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #2
	bl	_HPDF_MemCpy
	mov	w9, #60
	mov	x8, x19
	strb	w9, [x8], #1
	cmp	w20, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [sp, #16]
	mov	w9, #167772160
	cmp	w9, w8, lsl #20
	mov	w9, #55
	mov	w10, #48
	csel	w9, w10, w9, gt
	add	w9, w9, w8, lsr #4
	strb	w9, [x19, #1]
	and	w9, w8, #0xf
	bfxil	w10, w8, #0, #4
	add	w8, w9, #55
	cmp	w9, #10
	csel	w9, w10, w8, lo
	add	x8, x19, #3
	strb	w9, [x19, #2]
LBB0_3:
	ldr	w9, [sp, #20]
	mov	w10, #167772160
	cmp	w10, w9, lsl #20
	mov	w10, #55
	mov	w11, #48
	csel	w10, w11, w10, gt
	add	w10, w10, w9, lsr #4
	strb	w10, [x8]
	and	w10, w9, #0xf
	bfxil	w11, w9, #0, #4
	add	w9, w10, #55
	cmp	w10, #10
	csel	w9, w11, w9, lo
	strb	w9, [x8, #1]
	add	x19, x8, #3
	mov	w9, #62
	strh	w9, [x8, #2]
LBB0_4:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_UINT16ToHex
.subsections_via_symbols
