	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_read_network
_wpa_config_read_network:               ## @wpa_config_read_network
	.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	$2024, %rsp                     ## imm = 0x7E8
	.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
	movq	%rax, %rdi
	addq	$4, %rdi
	callq	_dl_list_init
	movl	%r12d, (%r14)
	movq	%r14, %rdi
	callq	_wpa_config_set_network_defaults
	leaq	-2048(%rbp), %rdi
	leaq	-2056(%rbp), %r8
	movl	$2000, %esi                     ## imm = 0x7D0
	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	-2056(%rbp), %rsi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_wpa_config_set
	shrq	$63, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %r13d
	leaq	-2048(%rbp), %rdi
	movl	$2000, %esi                     ## imm = 0x7D0
	movq	%r15, %rdx
	movq	%rbx, %rcx
	leaq	-2056(%rbp), %r8
	callq	_wpa_config_get_line
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-2056(%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	-2056(%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	-2056(%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:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_wpa_config_validate_network
	addl	%r13d, %eax
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_wpa_config_free_ssid
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	$2024, %rsp                     ## imm = 0x7E8
	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 network block"

L_.str.1:                               ## @.str.1
	.asciz	"}"

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

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

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

	.no_dead_strip	_wpa_config_read_network
.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_network
_wpa_config_read_network:               ; @wpa_config_read_network
	.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, #2032
	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:
	add	x0, x19, #4
	bl	_dl_list_init
	str	w22, [x19]
	mov	x0, x19
	bl	_wpa_config_set_network_defaults
	add	x0, sp, #24
	add	x4, sp, #16
	mov	w1, #2000
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_config_get_line
Lloh8:
	adrp	x27, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x27, [x27, _MSG_ERROR@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.2:
	mov	w26, #0
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh12:
	adrp	x23, l_.str.2@PAGE
Lloh13:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh14:
	adrp	x24, l_.str.3@PAGE
Lloh15:
	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
	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, #2000
	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]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
LBB0_15:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wpa_config_validate_network
	cmn	w26, w0
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_wpa_config_free_ssid
	mov	x19, #0
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	add	sp, sp, #2032
	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_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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 network block"

l_.str.1:                               ; @.str.1
	.asciz	"}"

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

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

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

	.no_dead_strip	_wpa_config_read_network
.subsections_via_symbols
