	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_config_read_wpa_psk
_hostapd_config_read_wpa_psk:           ## @hostapd_config_read_wpa_psk
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	movq	%rbx, -232(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r12
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r15, -208(%rbp)                ## 8-byte Spill
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	-175(%rbp), %r14
	movq	%r12, -200(%rbp)                ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rax
	movq	%rax, 8(%r14)
	movq	%r14, (%r12)
	movq	-200(%rbp), %r12                ## 8-byte Reload
	movl	-180(%rbp), %ebx                ## 4-byte Reload
	leaq	-175(%rbp), %r14
LBB0_46:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_47
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
	incl	%ebx
	movb	-176(%rbp), %al
	cmpb	$35, %al
	je	LBB0_46
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rcx
	movl	%eax, %edx
	testb	%dl, %dl
	je	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, %dl
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=2
	movzbl	(%rcx), %edx
	incq	%rcx
	testb	%dl, %dl
	jne	LBB0_10
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, -1(%rcx)
	movb	-176(%rbp), %al
	testb	%al, %al
	je	LBB0_46
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, -180(%rbp)                ## 4-byte Spill
	movq	$0, -224(%rbp)
	leaq	-176(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-224(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, -216(%rbp)                ## 8-byte Spill
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=2
	leaq	-176(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-224(%rbp), %rdx
	callq	_str_token
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_24
LBB0_17:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	$61, %esi
	callq	_os_strchr
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	$0, -248(%rbp)
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-248(%rbp), %r15
	movq	%r15, %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rax, %rbx
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %r13
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_str_token
	movq	%rax, %r14
	testq	%rax, %rax
	cmoveq	%r13, %r14
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_os_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_os_strcmp
	testl	%eax, %eax
	jne	LBB0_51
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, %r12d
	jmp	LBB0_23
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.4(%rip), %r14
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	-240(%rbp), %rsi                ## 8-byte Reload
	callq	_hwaddr_aton
	testq	%rax, %rax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$32, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movq	-240(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, 4(%r14)
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r14), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
LBB0_32:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-232(%rbp), %r12                ## 8-byte Reload
	leaq	-176(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-224(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_33
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_os_strlen
	cmpl	$64, %eax
	jne	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	20(%r14), %esi
	movq	_PMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hexstr2bin
	testq	%rax, %rax
	je	LBB0_42
	jmp	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	$-8, %eax
	cmpl	$55, %eax
	ja	LBB0_39
## %bb.41:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r12), %edx
	movl	12(%r12), %esi
	movl	20(%r14), %r8d
	movq	_PMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_pbkdf2_sha1
LBB0_42:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-216(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r14), %edi
	movl	$4, %edx
	callq	_os_strlcpy
	cmpl	$4, %eax
	jb	LBB0_45
## %bb.44:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_34
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_49
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r15d
	jmp	LBB0_49
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_48
LBB0_51:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	movq	-208(%rbp), %r9                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_36
LBB0_47:
	xorl	%r15d, %r15d
	movq	-192(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_48
LBB0_26:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdx
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	movq	-208(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_36
LBB0_28:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_36
LBB0_33:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
LBB0_34:
	movl	-180(%rbp), %edx                ## 4-byte Reload
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_35
LBB0_39:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdx
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	movq	-208(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_35:
	movq	%r14, %rdi
	callq	_os_free
LBB0_36:
	movl	$-1, %r15d
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movq	-200(%rbp), %r12                ## 8-byte Reload
LBB0_48:
	movq	%r12, %rdi
	callq	_fclose
LBB0_49:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.50:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"WPA PSK file '%s' not found."

L_.str.2:                               ## @.str.2
	.asciz	" "

L_.str.3:                               ## @.str.3
	.asciz	"="

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"keyid"

L_.str.6:                               ## @.str.6
	.asciz	"vlanid"

L_.str.7:                               ## @.str.7
	.asciz	"Unrecognized '%s=%s' on line %d in '%s'"

L_.str.8:                               ## @.str.8
	.asciz	"Invalid MAC address '%s' on line %d in '%s'"

L_.str.9:                               ## @.str.9
	.asciz	"WPA PSK allocation failed"

L_.str.10:                              ## @.str.10
	.asciz	"No PSK on line %d in '%s'"

	.comm	_PMK_LEN,4,2                    ## @PMK_LEN
L_.str.11:                              ## @.str.11
	.asciz	"Invalid PSK '%s' on line %d in '%s'"

L_.str.12:                              ## @.str.12
	.asciz	"PSK keyid too long on line %d in '%s'"

	.no_dead_strip	_hostapd_config_read_wpa_psk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_config_read_wpa_psk
_hostapd_config_read_wpa_psk:           ; @hostapd_config_read_wpa_psk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #192
	stur	x1, [x29, #-248]                ; 8-byte Folded Spill
	mov	x20, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	cbz	x0, LBB0_50
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fopen
	cbz	x0, LBB0_36
; %bb.2:
	mov	x19, x0
	sub	x24, x29, #224
	sub	x0, x29, #224
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_37
; %bb.3:
	sub	x8, x29, #8
	stur	x21, [x8, #-256]                ; 8-byte Folded Spill
	mov	w21, #0
Lloh10:
	adrp	x23, l_.str.2@PAGE
Lloh11:
	add	x23, x23, l_.str.2@PAGEOFF
	add	x25, x24, #1
Lloh12:
	adrp	x24, l_.str.4@PAGE
Lloh13:
	add	x24, x24, l_.str.4@PAGEOFF
	stur	x25, [x29, #-256]               ; 8-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	x25, x9, [x29, #-256]           ; 16-byte Folded Reload
	ldr	x8, [x9]
	str	x8, [x27, #8]
	str	x27, [x9]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x0, x29, #224
	mov	w1, #128
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_39
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	add	w21, w21, #1
	ldurb	w8, [x29, #-224]
	cmp	w8, #35
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x9, x25
	mov	x10, x8
	cbz	w10, LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #10
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w10, [x9], #1
	cbnz	w10, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w8, LBB0_12
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	sturb	wzr, [x9, #-1]
	ldurb	w8, [x29, #-224]
	cbz	w8, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	xzr, [x29, #-232]
	sub	x0, x29, #224
	sub	x2, x29, #232
	mov	x1, x23
	bl	_str_token
	cbz	x0, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	mov	w26, #0
	mov	x28, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	x28, x27
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	sub	x0, x29, #224
	sub	x2, x29, #232
	mov	x1, x23
	bl	_str_token
	mov	x27, x0
	cbz	x0, LBB0_22
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	mov	w1, #61
	bl	_os_strchr
	cbz	w0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	stur	xzr, [x29, #-240]
	sub	x2, x29, #240
	mov	x0, x27
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_str_token
	cbz	x0, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x25, x0
	sub	x2, x29, #240
	mov	x0, x27
	mov	x1, x24
	bl	_str_token
	cmp	x0, #0
	csel	x27, x24, x0, eq
	mov	x0, x25
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_os_strcmp
	cbz	w0, LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x25
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_os_strcmp
	cbnz	w0, LBB0_38
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x27
	bl	_atoi
	mov	x26, x0
	b	LBB0_15
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w26, #0
	mov	x28, #0
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x24
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x27
	mov	x1, x22
	bl	_hwaddr_aton
	cbnz	x0, LBB0_40
; %bb.24:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #32
	bl	_os_zalloc
	cbz	x0, LBB0_42
; %bb.25:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	str	w26, [x0]
	mov	x0, x22
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w8, #1
	str	w8, [x27, #4]
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27, #24]
Lloh20:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_os_memcpy
LBB0_28:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x0, x29, #224
	sub	x2, x29, #232
	mov	x1, x24
	bl	_str_token
	cbz	x0, LBB0_43
; %bb.29:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x0
	bl	_os_strlen
	cmp	w0, #64
	b.ne	LBB0_32
; %bb.30:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x27, #20]
Lloh23:
	adrp	x8, _PMK_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PMK_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x26
	bl	_hexstr2bin
	cbnz	x0, LBB0_45
; %bb.31:                               ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x28, LBB0_34
	b	LBB0_4
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w0, #8
	cmp	w8, #55
	b.hi	LBB0_45
; %bb.33:                               ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-248]                ; 8-byte Folded Reload
	ldp	w2, w1, [x8, #8]
	ldr	w4, [x27, #20]
Lloh26:
	adrp	x8, _PMK_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PMK_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	mov	x0, x26
	mov	w3, #4096
	bl	_pbkdf2_sha1
	cbz	x28, LBB0_4
LBB0_34:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x27, #16]
	mov	x1, x28
	mov	w2, #4
	bl	_os_strlcpy
	cmp	w0, #4
	b.lo	LBB0_4
; %bb.35:
Lloh29:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x20, [sp, #-16]!
Lloh32:
	adrp	x1, l_.str.12@PAGE
Lloh33:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_44
LBB0_36:
Lloh34:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	w20, #-1
	b	LBB0_50
LBB0_37:
	mov	w20, #0
	b	LBB0_49
LBB0_38:
Lloh39:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	sub	sp, sp, #32
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x20, [sp, #16]
	stp	x25, x27, [sp]
Lloh42:
	adrp	x1, l_.str.7@PAGE
Lloh43:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_41
LBB0_39:
	mov	w20, #0
	b	LBB0_48
LBB0_40:
Lloh44:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	sub	sp, sp, #32
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x20, [sp, #8]
	str	x27, [sp]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_41:
	bl	_wpa_printf
	add	sp, sp, #32
	b	LBB0_47
LBB0_42:
Lloh49:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
Lloh52:
	adrp	x1, l_.str.9@PAGE
Lloh53:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	b	LBB0_47
LBB0_43:
Lloh54:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x20, [sp, #-16]!
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_44:
	bl	_wpa_printf
	add	sp, sp, #16
	b	LBB0_46
LBB0_45:
Lloh59:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	sub	sp, sp, #32
	stp	x21, x20, [sp, #8]
	str	x26, [sp]
Lloh62:
	adrp	x1, l_.str.11@PAGE
Lloh63:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #32
LBB0_46:
	mov	x0, x27
	bl	_os_free
LBB0_47:
	mov	w20, #-1
LBB0_48:
	sub	x8, x29, #8
	ldur	x21, [x8, #-256]                ; 8-byte Folded Reload
LBB0_49:
	mov	x0, x19
	bl	_fclose
LBB0_50:
	mov	sp, x21
	ldur	x8, [x29, #-96]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_52
; %bb.51:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_52:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"WPA PSK file '%s' not found."

l_.str.2:                               ; @.str.2
	.asciz	" "

l_.str.3:                               ; @.str.3
	.asciz	"="

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"keyid"

l_.str.6:                               ; @.str.6
	.asciz	"vlanid"

l_.str.7:                               ; @.str.7
	.asciz	"Unrecognized '%s=%s' on line %d in '%s'"

l_.str.8:                               ; @.str.8
	.asciz	"Invalid MAC address '%s' on line %d in '%s'"

l_.str.9:                               ; @.str.9
	.asciz	"WPA PSK allocation failed"

l_.str.10:                              ; @.str.10
	.asciz	"No PSK on line %d in '%s'"

	.comm	_PMK_LEN,4,2                    ; @PMK_LEN
l_.str.11:                              ; @.str.11
	.asciz	"Invalid PSK '%s' on line %d in '%s'"

l_.str.12:                              ; @.str.12
	.asciz	"PSK keyid too long on line %d in '%s'"

	.no_dead_strip	_hostapd_config_read_wpa_psk
.subsections_via_symbols
