	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_parse_wep_key
_wpa_config_parse_wep_key:              ## @wpa_config_parse_wep_key
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rdi
	callq	_wpa_config_parse_string
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movq	(%r12), %rcx
	movq	_MAX_WEP_KEY_LEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jbe	LBB0_4
## %bb.3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_os_free
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_4:
	cmpq	$16, %rcx
	ja	LBB0_6
## %bb.5:
	movl	$73761, %eax                    ## imm = 0x12021
	btq	%rcx, %rax
	jae	LBB0_6
LBB0_7:
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rcx, %rdx
	callq	_os_memcpy
	movq	%rbx, %rdi
	callq	_str_clear_free
	leaq	L_.str.3(%rip), %rdx
	leaq	-80(%rbp), %rdi
	movl	$20, %esi
	movl	%r14d, %ecx
	callq	_os_snprintf
	movl	$20, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rcx
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rcx
	jmp	LBB0_7
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line %d: Invalid WEP key %d '%s'."

	.comm	_MAX_WEP_KEY_LEN,8,3            ## @MAX_WEP_KEY_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Line %d: Too long WEP key %d '%s'."

L_.str.2:                               ## @.str.2
	.asciz	"Line %d: Invalid WEP key length %u - this network block will be ignored"

L_.str.3:                               ## @.str.3
	.asciz	"wep_key%d"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.no_dead_strip	_wpa_config_parse_wep_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_parse_wep_key
_wpa_config_parse_wep_key:              ; @wpa_config_parse_wep_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x0, x3
	bl	_wpa_config_parse_string
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x3, [x21]
Lloh3:
	adrp	x8, _MAX_WEP_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WEP_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ls	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x19
	bl	_wpa_printf
	mov	x0, x22
	bl	_os_free
	mov	w0, #-1
	b	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x19
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_8
LBB0_4:
	cmp	x3, #16
	mov	w8, #1
	lsl	x8, x8, x3
	mov	w9, #8225
	movk	w9, #1, lsl #16
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x3
	bl	_os_memcpy
	mov	x0, x22
	bl	_str_clear_free
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #20
	mov	w1, #20
	mov	x3, x19
	bl	_os_snprintf
	mov	x1, x0
	mov	w0, #20
	bl	_os_snprintf_error
	cbnz	w0, LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x3, [x21]
	add	x1, sp, #20
	mov	x2, x20
	bl	_wpa_hexdump_key
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldr	x8, [sp, #40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh24:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_printf
	ldr	x3, [x21]
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line %d: Invalid WEP key %d '%s'."

	.comm	_MAX_WEP_KEY_LEN,8,3            ; @MAX_WEP_KEY_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Line %d: Too long WEP key %d '%s'."

l_.str.2:                               ; @.str.2
	.asciz	"Line %d: Invalid WEP key length %u - this network block will be ignored"

l_.str.3:                               ; @.str.3
	.asciz	"wep_key%d"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.no_dead_strip	_wpa_config_parse_wep_key
.subsections_via_symbols
