	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexdecode
_hexdecode:                             ## @hexdecode
	.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, %rbx
	callq	_strlen
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movb	(%rbx), %al
	movq	%r15, %r12
	testb	%al, %al
	je	LBB0_12
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	incq	%rbx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%r15, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	shlb	$4, %r14b
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	__UC
	movl	%eax, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	-1(%rbx), %edi
	callq	_OPENSSL_hexchar2int
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	orb	%al, %r14b
	xorl	$1, %r13d
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	%r14b, (%r12)
	incq	%r12
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r12d
	jmp	LBB0_13
LBB0_10:
	testl	%r13d, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_OPENSSL_free
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_12:
	movq	%r15, (%r14)
	subl	%r15d, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hexdecode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexdecode
_hexdecode:                             ; @hexdecode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_strlen
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w0, w8, #1
	bl	_OPENSSL_malloc
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_9
; %bb.1:
	ldrb	w8, [x21]
	mov	x22, x20
	cbz	w8, LBB0_12
; %bb.2:
	mov	w23, #0
	mov	w24, #0
	add	x21, x21, #1
	mov	x22, x20
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	lsl	w24, w8, #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21], #1
	cbz	w8, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	__UC
	bl	_isspace
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldursb	w0, [x21, #-1]
	bl	_OPENSSL_hexchar2int
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	w8, w24, w0
	eor	w23, w23, #0x1
	cbnz	w23, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	strb	w8, [x22], #1
	b	LBB0_4
LBB0_9:
	mov	w0, #-1
	b	LBB0_13
LBB0_10:
	cbz	w23, LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_OPENSSL_free
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	str	x20, [x19]
	sub	w0, w22, w20
LBB0_13:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hexdecode
.subsections_via_symbols
