	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hex_decode
_hex_decode:                            ## @hex_decode
	.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
	movq	%rdi, %r15
	movq	_hex_chars@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movsbl	(%rdi), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %eax
	shll	$4, %eax
	subq	%r12, %rbx
	shrq	%rbx
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movsbl	1(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %r13
	shll	$4, %ebx
	subq	%r12, %r13
	shrq	%r13
	orl	%ebx, %r13d
	movl	%r13d, (%r14)
	movsbl	2(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %rbx
	shll	$4, %r13d
	subq	%r12, %rbx
	shrq	%rbx
	orl	%r13d, %ebx
	movl	%ebx, (%r14)
	movsbl	3(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r13
	shll	$4, %ebx
	subq	%r12, %r13
	shrq	%r13
	orl	%ebx, %r13d
	movl	%r13d, (%r14)
	movsbl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	shll	$4, %r13d
	subq	%r12, %rbx
	shrq	%rbx
	orl	%r13d, %ebx
	movl	%ebx, (%r14)
	movsbl	5(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	shll	$4, %ebx
	subq	%r12, %rax
	shrq	%rax
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movsbl	6(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	movl	4(%r14), %eax
	shll	$4, %eax
	subq	%r12, %rbx
	shrq	%rbx
	orl	%eax, %ebx
	movl	%ebx, 4(%r14)
	movsbl	7(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %r13
	shll	$4, %ebx
	subq	%r12, %r13
	shrq	%r13
	orl	%ebx, %r13d
	movl	%r13d, 4(%r14)
	movsbl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %rbx
	shll	$4, %r13d
	subq	%r12, %rbx
	shrq	%rbx
	orl	%r13d, %ebx
	movl	%ebx, 4(%r14)
	movsbl	9(%r15), %esi
	movq	%r12, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	shll	$4, %ebx
	subq	%r12, %rax
	shrq	%rax
	orl	%ebx, %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_12
LBB0_11:
	movq	$-1, (%r14)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hex_chars,8,3                  ## @hex_chars
	.no_dead_strip	_hex_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hex_decode
_hex_decode:                            ; @hex_decode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _hex_chars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hex_chars@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldrsb	w1, [x0]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x19]
	sub	x9, x0, x20
	lsr	x9, x9, #1
	orr	w22, w9, w8, lsl #4
	str	w22, [x19]
	ldrsb	w1, [x21, #1]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.2:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19]
	ldrsb	w1, [x21, #2]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.3:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19]
	ldrsb	w1, [x21, #3]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.4:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19]
	ldrsb	w1, [x21, #4]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.5:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19]
	ldrsb	w1, [x21, #5]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.6:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w8, w8, w22, lsl #4
	str	w8, [x19]
	ldrsb	w1, [x21, #6]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x19, #4]
	sub	x9, x0, x20
	lsr	x9, x9, #1
	orr	w22, w9, w8, lsl #4
	str	w22, [x19, #4]
	ldrsb	w1, [x21, #7]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.8:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19, #4]
	ldrsb	w1, [x21, #8]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.9:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w22, w8, w22, lsl #4
	str	w22, [x19, #4]
	ldrsb	w1, [x21, #9]
	mov	x0, x20
	bl	_strchr
	cbz	x0, LBB0_11
; %bb.10:
	sub	x8, x0, x20
	lsr	x8, x8, #1
	orr	w8, w8, w22, lsl #4
	str	w8, [x19, #4]
	b	LBB0_12
LBB0_11:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hex_chars,8,3                  ; @hex_chars
	.no_dead_strip	_hex_decode
.subsections_via_symbols
