	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_str2wep                        ## -- Begin function str2wep
	.p2align	4, 0x90
_str2wep:                               ## @str2wep
	.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	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_strlen
	movl	$-1, %edx
	testb	$1, %al
	jne	LBB0_8
## %bb.1:
	cmpl	$27, %eax
	ja	LBB0_8
## %bb.2:
	movl	$201329664, %ecx                ## imm = 0xC000C00
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.3:
	movl	%eax, %r14d
	shrl	%eax
	movl	%eax, (%r12)
	shrq	%r14
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-44(%rbp), %eax
	movb	%al, (%r15,%r12)
	addq	$2, %rbx
	incq	%r12
	cmpl	%r12d, %r14d
	jne	LBB0_4
## %bb.7:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_5:
	movl	$-1, %edx
LBB0_8:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%2x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_str2wep                        ; -- Begin function str2wep
	.p2align	2
_str2wep:                               ; @str2wep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_strlen
	tbnz	w0, #0, LBB0_7
; %bb.1:
	mov	x8, x0
	mov	w0, #-1
	cmp	w8, #27
	b.hi	LBB0_8
; %bb.2:
	mov	w9, #1
	lsl	w9, w9, w8
	tst	w9, #0xc000c00
	b.eq	LBB0_8
; %bb.3:
	lsr	w22, w8, #1
	str	w22, [x21]
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	strb	w8, [x20], #1
	add	x19, x19, #2
	subs	w22, w22, #1
	b.ne	LBB0_4
; %bb.6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%2x"

.subsections_via_symbols
