	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_parse_proto
_wpa_config_parse_proto:                ## @wpa_config_parse_proto
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rcx, %rdi
	callq	_os_strdup
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	(%rax), %r15b
	testb	%r15b, %r15b
	je	LBB0_24
## %bb.2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movabsq	$4294967809, %rcx               ## imm = 0x100000201
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rbx
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rbx, %r13
	incq	%rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	movzbl	1(%r13), %r15d
	incq	%r13
	incq	%rbx
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$9, %r15b
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpb	$32, %r15b
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%r15b, %r15b
	je	LBB0_22
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=2
	movzbl	(%rbx), %r15d
	incq	%rbx
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, %r15b
	ja	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	%r15b, %eax
	btq	%rax, %rcx
	jae	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, -1(%rbx)
	movq	%r13, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	incl	-48(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_WPA_PROTO_OSEN@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	orl	(%rax), %r12d
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$4294967809, %rcx               ## imm = 0x100000201
	leaq	L_.str(%rip), %rsi
	testb	%r15b, %r15b
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	(%rbx), %r15b
	testb	%r15b, %r15b
	jne	LBB0_3
LBB0_22:
	movq	%r14, %rdi
	callq	_os_free
	testl	%r12d, %r12d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jne	LBB0_26
	jmp	LBB0_25
LBB0_23:
	movl	$-1, %ebx
	jmp	LBB0_29
LBB0_24:
	movq	%r14, %rdi
	callq	_os_free
	xorl	%r15d, %r15d
LBB0_25:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	incl	%r15d
LBB0_26:
	testl	%r15d, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_28
## %bb.27:
	movl	$1, %ebx
	cmpl	%r12d, (%r14)
	je	LBB0_29
LBB0_28:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	%r12d, (%r14)
	negl	%r15d
	sbbl	%ebx, %ebx
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA"

	.comm	_WPA_PROTO_WPA,4,2              ## @WPA_PROTO_WPA
L_.str.1:                               ## @.str.1
	.asciz	"RSN"

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

	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
L_.str.3:                               ## @.str.3
	.asciz	"OSEN"

	.comm	_WPA_PROTO_OSEN,4,2             ## @WPA_PROTO_OSEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Line %d: invalid proto '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"Line %d: no proto values configured."

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.6:                               ## @.str.6
	.asciz	"proto: 0x%x"

	.no_dead_strip	_wpa_config_parse_proto
.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_proto
_wpa_config_parse_proto:                ; @wpa_config_parse_proto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x0, x3
	mov	x20, x2
	mov	x25, x1
	bl	_os_strdup
	cbz	x0, LBB0_24
; %bb.1:
	mov	x26, x0
	ldrb	w24, [x0]
Lloh0:
	adrp	x22, _MSG_ERROR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_ERROR@GOTPAGEOFF]
	cbz	w24, LBB0_25
; %bb.2:
	mov	w27, #0
	mov	w21, #0
	mov	w9, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x23, #513
	movk	x23, #1, lsl #32
	mov	x22, x26
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	mov	x28, x22
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w24, [x28, #1]!
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x22, x22, #1
	cmp	w24, #9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w24, #32
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w24, LBB0_22
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w24, [x22], #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w24, #32
	b.hi	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w8, w24
	lsl	x8, x9, x8
	tst	x8, x23
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	sturb	wzr, [x22, #-1]
	mov	x0, x28
	mov	x19, x1
	bl	_os_strcmp
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_os_strcmp
	cbz	x0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x28, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	add	w27, w27, #1
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _WPA_PROTO_RSN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WPA_PROTO_RSN@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _WPA_PROTO_WPA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WPA_PROTO_WPA@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh19:
	adrp	x8, _WPA_PROTO_OSEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WPA_PROTO_OSEN@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x19
	mov	w9, #1
	cbz	w24, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w24, [x22]
	cbnz	w24, LBB0_3
LBB0_22:
	mov	x0, x26
	bl	_os_free
Lloh21:
	adrp	x22, _MSG_ERROR@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MSG_ERROR@GOTPAGEOFF]
	cbz	w21, LBB0_26
; %bb.23:
	cbnz	w27, LBB0_29
	b	LBB0_27
LBB0_24:
	mov	w0, #-1
	b	LBB0_30
LBB0_25:
	mov	x0, x26
	bl	_os_free
	mov	w27, #0
LBB0_26:
	ldr	w0, [x22]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	bl	_wpa_printf
	mov	w21, #0
	add	w27, w27, #1
	cbnz	w27, LBB0_29
LBB0_27:
	ldr	w8, [x25]
	cmp	w8, w21
	b.ne	LBB0_29
; %bb.28:
	mov	w0, #1
	b	LBB0_30
LBB0_29:
Lloh25:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_wpa_printf
	str	w21, [x25]
	cmp	w27, #0
	csetm	w0, ne
LBB0_30:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA"

	.comm	_WPA_PROTO_WPA,4,2              ; @WPA_PROTO_WPA
l_.str.1:                               ; @.str.1
	.asciz	"RSN"

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

	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
l_.str.3:                               ; @.str.3
	.asciz	"OSEN"

	.comm	_WPA_PROTO_OSEN,4,2             ; @WPA_PROTO_OSEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Line %d: invalid proto '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"Line %d: no proto values configured."

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.6:                               ; @.str.6
	.asciz	"proto: 0x%x"

	.no_dead_strip	_wpa_config_parse_proto
.subsections_via_symbols
