	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hex_clr
_hex_clr:                               ## @hex_clr
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	__istdigit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$48, %edi
	callq	__T
	subq	%rax, %r14
LBB0_5:
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	__istdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$48, %edi
	callq	__T
	subq	%rax, %rbx
	shlq	$4, %rbx
LBB0_10:
	orq	%r14, %rbx
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	callq	__totupper
	movq	%rax, %r14
	movl	$65, %edi
	callq	__T
	movq	$-1, %rbx
	cmpq	%rax, %r14
	jl	LBB0_11
## %bb.3:
	movl	$70, %edi
	callq	__T
	cmpq	%rax, %r14
	jg	LBB0_11
## %bb.4:
	movl	$65, %edi
	callq	__T
	subq	%rax, %r14
	addq	$10, %r14
	jmp	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	__totupper
	movq	%rax, %r15
	movl	$65, %edi
	callq	__T
	movq	$-1, %rbx
	cmpq	%rax, %r15
	jl	LBB0_11
## %bb.8:
	movl	$70, %edi
	callq	__T
	cmpq	%rax, %r15
	jle	LBB0_9
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$65, %edi
	callq	__T
	subq	%rax, %r15
	shlq	$4, %r15
	addq	$160, %r15
	movq	%r15, %rbx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hex_clr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hex_clr
_hex_clr:                               ; @hex_clr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	__istdigit
	cbz	x0, LBB0_5
; %bb.1:
	mov	w0, #48
	bl	__T
	sub	x20, x20, x0
LBB0_2:
	ldr	x19, [x19]
	mov	x0, x19
	bl	__istdigit
	cbz	x0, LBB0_8
; %bb.3:
	mov	w0, #48
	bl	__T
	sub	x8, x19, x0
	lsl	x8, x8, #4
LBB0_4:
	orr	x0, x8, x20
	b	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	__totupper
	mov	x20, x0
	mov	w0, #65
	bl	__T
	cmp	x20, x0
	b.lt	LBB0_10
; %bb.6:
	mov	w0, #70
	bl	__T
	cmp	x20, x0
	b.gt	LBB0_10
; %bb.7:
	mov	w0, #65
	bl	__T
	sub	x8, x20, x0
	add	x20, x8, #10
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	__totupper
	mov	x19, x0
	mov	w0, #65
	bl	__T
	cmp	x19, x0
	b.lt	LBB0_10
; %bb.9:
	mov	w0, #70
	bl	__T
	cmp	x19, x0
	b.le	LBB0_12
LBB0_10:
	mov	x0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #65
	bl	__T
	sub	x8, x19, x0
	lsl	x8, x8, #4
	add	x8, x8, #160
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hex_clr
.subsections_via_symbols
