	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_read_cred
_wpa_config_read_cred:                  ## @wpa_config_read_cred
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$8, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r14
	movl	%r12d, (%rax)
	movq	_DEFAULT_USER_SELECTED_SIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	leaq	-304(%rbp), %rdi
	leaq	-312(%rbp), %r8
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_wpa_config_get_line
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-312(%rbp), %rsi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_wpa_config_set_cred
	shrq	$63, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r13d
	leaq	-304(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	movq	%rbx, %rcx
	leaq	-312(%rbp), %r8
	callq	_wpa_config_get_line
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-312(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-312(%rbp), %rdi
	movl	$61, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rax), %r12
	movb	$0, (%rax)
	cmpb	$34, 1(%rax)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rax
	movq	%rax, %rdi
	movl	$34, %esi
	callq	_os_strchr
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movq	-312(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$1, %eax
	jmp	LBB0_8
LBB0_2:
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_9:
	incl	%r13d
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_wpa_config_free_cred
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.20:
	movq	%r14, %rax
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Line: %d - start of a new cred block"

	.comm	_DEFAULT_USER_SELECTED_SIM,4,2  ## @DEFAULT_USER_SELECTED_SIM
L_.str.1:                               ## @.str.1
	.asciz	"}"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Line %d: Invalid cred line '%s'."

L_.str.3:                               ## @.str.3
	.asciz	"Line %d: invalid quotation '%s'."

L_.str.4:                               ## @.str.4
	.asciz	"Line %d: cred block was not terminated properly."

	.no_dead_strip	_wpa_config_read_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_read_cred
_wpa_config_read_cred:                  ; @wpa_config_read_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x1]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #8
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	str	w22, [x19]
Lloh8:
	adrp	x8, _DEFAULT_USER_SELECTED_SIM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEFAULT_USER_SELECTED_SIM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #256
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_config_get_line
Lloh11:
	adrp	x27, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x27, [x27, _MSG_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.2:
	mov	w26, #0
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh15:
	adrp	x23, l_.str.2@PAGE
Lloh16:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh17:
	adrp	x24, l_.str.3@PAGE
Lloh18:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #16]
	ldr	w3, [x20]
	mov	x0, x19
	mov	x2, x25
	bl	_wpa_config_set_cred
	lsr	x8, x0, #63
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, w8
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #256
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_config_get_line
	cbz	x0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #16]
	mov	x1, x22
	bl	_os_strcmp
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #16]
	mov	w1, #61
	bl	_os_strchr
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldrb	w8, [x25, #1]!
	strb	wzr, [x0]
	cmp	w8, #34
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #2
	mov	w1, #34
	bl	_os_strchr
	cbnz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	ldr	w2, [x20]
	str	x25, [sp]
	mov	x1, x24
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	ldr	w2, [x20]
	ldr	x8, [sp, #16]
	str	x8, [sp]
	mov	x1, x23
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_wpa_printf
	mov	w8, #1
	b	LBB0_4
LBB0_12:
	mov	w26, #1
	b	LBB0_14
LBB0_13:
	add	w26, w26, #1
LBB0_14:
	ldr	w0, [x27]
	ldr	w2, [x20]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_15:
	cbz	w26, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_wpa_config_free_cred
	mov	x19, #0
LBB0_17:
	ldur	x8, [x29, #-88]
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_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Line: %d - start of a new cred block"

	.comm	_DEFAULT_USER_SELECTED_SIM,4,2  ; @DEFAULT_USER_SELECTED_SIM
l_.str.1:                               ; @.str.1
	.asciz	"}"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Line %d: Invalid cred line '%s'."

l_.str.3:                               ; @.str.3
	.asciz	"Line %d: invalid quotation '%s'."

l_.str.4:                               ; @.str.4
	.asciz	"Line %d: cred block was not terminated properly."

	.no_dead_strip	_wpa_config_read_cred
.subsections_via_symbols
