	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_config_read            ## -- Begin function hostapd_config_read
	.p2align	4, 0x90
_hostapd_config_read:                   ## @hostapd_config_read
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_hostapd_config_defaults
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	_wpa_drivers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, -4160(%rbp)               ## 8-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	-4144(%rbp), %rbx
	movl	$0, -4148(%rbp)                 ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, (%rax)
	incq	%rax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	movl	%r14d, %r8d
	callq	_hostapd_config_fill
	addl	%eax, -4148(%rbp)               ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_20
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	incl	%r14d
	movb	-4144(%rbp), %al
	cmpb	$35, %al
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r13), %r12
	leaq	-4143(%rbp), %rcx
	movl	%eax, %edx
	testb	%dl, %dl
	je	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, %dl
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=2
	movzbl	(%rcx), %edx
	incq	%rcx
	testb	%dl, %dl
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	testb	%al, %al
	jne	LBB0_15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movb	$0, -1(%rcx)
	movb	-4144(%rbp), %al
	testb	%al, %al
	je	LBB0_19
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_os_strchr
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	incl	-4148(%rbp)                     ## 4-byte Folded Spill
	jmp	LBB0_19
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_26
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_hostapd_config_free
LBB0_3:
	movq	%r15, %rdi
	callq	_fclose
	jmp	LBB0_25
LBB0_7:
	movl	$0, -4148(%rbp)                 ## 4-byte Folded Spill
LBB0_20:
	movq	%r15, %rdi
	callq	_fclose
	cmpq	$0, (%r13)
	je	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	$1, %esi
	callq	_hostapd_set_security_params
	incq	%rbx
	cmpq	(%r13), %rbx
	jb	LBB0_22
LBB0_23:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_hostapd_config_check
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	-4148(%rbp), %edx               ## 4-byte Reload
	addl	%ecx, %edx
	je	LBB0_26
## %bb.24:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	-4160(%rbp), %rcx               ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_hostapd_config_free
LBB0_25:
	xorl	%r13d, %r13d
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.27:
	movq	%r13, %rax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Could not open configuration file '%s' for reading."

	.comm	_wpa_drivers,8,3                ## @wpa_drivers
L_.str.2:                               ## @.str.2
	.asciz	"No driver wrappers registered!"

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

L_.str.4:                               ## @.str.4
	.asciz	"%d errors found in configuration file '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_config_read            ; -- Begin function hostapd_config_read
	.p2align	2
_hostapd_config_read:                   ; @hostapd_config_read
	.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
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_15
; %bb.1:
	mov	x21, x0
	bl	_hostapd_config_defaults
	mov	x19, x0
	cbz	x0, LBB0_21
; %bb.2:
Lloh7:
	adrp	x8, _wpa_drivers@GOTPAGE
Lloh8:
	ldr	x8, [x8, _wpa_drivers@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x19, #24]
	cbz	x8, LBB0_22
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	add	x27, sp, #16
	add	x0, sp, #16
	mov	w1, #4096
	mov	x2, x21
	bl	_fgets
Lloh10:
	adrp	x25, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MSG_ERROR@GOTPAGEOFF]
	mov	w26, #0
	cbz	x0, LBB0_16
; %bb.4:
	mov	w22, #0
	add	x28, x27, #1
Lloh12:
	adrp	x23, l_.str.3@PAGE
Lloh13:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x3, x0
	strb	wzr, [x3], #1
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x24
	mov	x4, x22
	bl	_hostapd_config_fill
	add	w26, w26, w0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	mov	w1, #4096
	mov	x2, x21
	bl	_fgets
	cbz	x0, LBB0_16
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	w22, w22, #1
	ldrb	w8, [sp, #16]
	cmp	w8, #35
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x24, [x19, #16]
	mov	x9, x28
	mov	x10, x8
	cbz	w10, LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #10
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w10, [x9], #1
	cbnz	w10, LBB0_9
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w8, LBB0_13
	b	LBB0_6
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	sturb	wzr, [x9, #-1]
	ldrb	w8, [sp, #16]
	cbz	w8, LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	mov	w1, #61
	bl	_os_strchr
	cbnz	x0, LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25]
	stp	x22, x27, [sp]
	mov	x1, x23
	bl	_wpa_printf
	add	w26, w26, #1
	b	LBB0_6
LBB0_15:
Lloh14:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_23
LBB0_16:
	mov	x0, x21
	bl	_fclose
	ldr	x8, [x19]
	cbz	x8, LBB0_19
; %bb.17:
	mov	x21, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	mov	w1, #1
	bl	_hostapd_set_security_params
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lo	LBB0_18
LBB0_19:
	mov	x0, x19
	mov	w1, #1
	bl	_hostapd_config_check
	cmp	x0, #0
	cinc	w8, w26, ne
	cbz	w8, LBB0_24
; %bb.20:
	ldr	w0, [x25]
	stp	x8, x20, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_hostapd_config_free
	b	LBB0_23
LBB0_21:
	mov	x0, x21
	bl	_fclose
	b	LBB0_24
LBB0_22:
Lloh21:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_hostapd_config_free
	mov	x0, x21
	bl	_fclose
LBB0_23:
	mov	x19, #0
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x19
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Could not open configuration file '%s' for reading."

	.comm	_wpa_drivers,8,3                ; @wpa_drivers
l_.str.2:                               ; @.str.2
	.asciz	"No driver wrappers registered!"

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

l_.str.4:                               ; @.str.4
	.asciz	"%d errors found in configuration file '%s'"

.subsections_via_symbols
