	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function an_str2key
_an_str2key:                            ## @an_str2key
	.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
	cmpb	$48, (%rdi)
	jne	LBB0_8
## %bb.1:
	movb	1(%r15), %al
	orb	$32, %al
	cmpb	$120, %al
	jne	LBB0_8
## %bb.2:
	movb	2(%r15), %al
	testb	%al, %al
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, 3(%r15,%rbx,2)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%al, %edi
	callq	_an_hex2int
	movl	%eax, %r12d
	shll	$4, %r12d
	movsbl	3(%r15,%rbx,2), %edi
	callq	_an_hex2int
	addl	%r12d, %eax
	movb	%al, (%r13,%rbx)
	movzbl	4(%r15,%rbx,2), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_5
	jmp	LBB0_9
LBB0_8:
	movq	8(%r14), %rbx
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memmove
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hex strings must be of even length"

	.no_dead_strip	_an_str2key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function an_str2key
_an_str2key:                            ; @an_str2key
	.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
	ldrb	w8, [x0]
	cmp	w8, #48
	b.ne	LBB0_6
; %bb.1:
	ldrb	w8, [x21, #1]
	orr	w8, w8, #0x20
	cmp	w8, #120
	b.ne	LBB0_6
; %bb.2:
	ldrb	w8, [x21, #2]
	cbz	w8, LBB0_8
; %bb.3:
	mov	x20, #0
	ldr	x22, [x19, #8]
	add	x23, x21, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x23]
	cbz	w9, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w0, w8
	bl	_an_hex2int
	mov	x21, x0
	ldrsb	w0, [x23]
	bl	_an_hex2int
	add	w8, w0, w21, lsl #4
	strb	w8, [x22, x20]
	ldrb	w8, [x23, #1]
	add	x23, x23, #2
	add	x20, x20, #1
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	x20, [x19, #8]
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_memmove
	mov	x0, x21
	bl	_strlen
	mov	x20, x0
LBB0_7:
	str	w20, [x19]
	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
LBB0_8:
	mov	w20, #0
	b	LBB0_7
LBB0_9:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hex strings must be of even length"

	.no_dead_strip	_an_str2key
.subsections_via_symbols
