	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_config_parse_key_mgmt
_hostapd_config_parse_key_mgmt:         ## @hostapd_config_parse_key_mgmt
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	%rsi, %rdi
	callq	_os_strdup
	movq	%rax, %r12
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_19
## %bb.1:
	movb	(%r12), %r14b
	testb	%r14b, %r14b
	je	LBB0_3
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movabsq	$4294967809, %rcx               ## imm = 0x100000201
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rbx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	%rbx, %r13
	incq	%rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=2
	movzbl	1(%r13), %r14d
	incq	%r13
	incq	%rbx
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$9, %r14b
	je	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$32, %r14b
	je	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%r14b, %r14b
	je	LBB0_16
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movzbl	(%rbx), %r14d
	incq	%rbx
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, %r14b
	ja	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movzbl	%r14b, %eax
	btq	%rax, %rcx
	jae	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, -1(%rbx)
	movq	%r13, %rdi
	callq	_os_strcmp
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_os_strcmp
	movq	_WPA_KEY_MGMT_IEEE8021X@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	orl	(%rcx), %r15d
	testb	%r14b, %r14b
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rbx), %r14b
	testb	%r14b, %r14b
	movabsq	$4294967809, %rcx               ## imm = 0x100000201
	leaq	L_.str(%rip), %rsi
	jne	LBB0_5
LBB0_16:
	movq	%r12, %rdi
	callq	_os_free
	movl	%r15d, %eax
	testl	%r15d, %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_19
	jmp	LBB0_17
LBB0_3:
	movq	%r12, %rdi
	callq	_os_free
LBB0_17:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	callq	_os_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA-PSK"

	.comm	_WPA_KEY_MGMT_PSK,4,2           ## @WPA_KEY_MGMT_PSK
L_.str.1:                               ## @.str.1
	.asciz	"WPA-EAP"

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ## @WPA_KEY_MGMT_IEEE8021X
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Line %d: invalid key_mgmt '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"Line %d: no key_mgmt values configured."

	.comm	_WPA_KEY_MGMT_DPP,4,2           ## @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ## @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ## @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ## @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ## @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ## @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ## @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
	.comm	_WPA_KEY_MGMT_OSEN,4,2          ## @WPA_KEY_MGMT_OSEN
	.comm	_WPA_KEY_MGMT_OWE,4,2           ## @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ## @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ## @WPA_KEY_MGMT_SAE
	.no_dead_strip	_hostapd_config_parse_key_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_config_parse_key_mgmt
_hostapd_config_parse_key_mgmt:         ; @hostapd_config_parse_key_mgmt
	.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	x19, x0
	mov	x0, x1
	bl	_os_strdup
	cbz	x0, LBB0_19
; %bb.1:
	mov	x20, x0
	ldrb	w25, [x0]
	cbz	w25, LBB0_17
; %bb.2:
	mov	w21, #0
	mov	w26, #1
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	mov	x28, #513
	movk	x28, #1, lsl #32
	mov	x24, x20
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
	mov	x27, x24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w25, [x27, #1]!
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x24, #1
	cmp	w25, #9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w25, #32
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldrb	w25, [x24], #1
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w25, #32
	b.hi	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w8, w25
	lsl	x8, x26, x8
	tst	x8, x28
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	sturb	wzr, [x24, #-1]
	mov	x0, x27
	mov	x1, x22
	bl	_os_strcmp
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_os_strcmp
Lloh4:
	adrp	x8, _WPA_KEY_MGMT_IEEE8021X@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WPA_KEY_MGMT_IEEE8021X@GOTPAGEOFF]
	cbz	x0, LBB0_14
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	orr	w21, w8, w21
	cbz	w25, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w25, [x24]
	cbnz	w25, LBB0_3
LBB0_16:
	mov	x0, x20
	bl	_os_free
	cbnz	w21, LBB0_20
	b	LBB0_18
LBB0_17:
	mov	x0, x20
	bl	_os_free
LBB0_18:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
LBB0_19:
	mov	w21, #-1
LBB0_20:
	mov	x0, x21
	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
LBB0_21:
Lloh13:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	x27, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wpa_printf
	mov	x0, x20
	bl	_os_free
	b	LBB0_19
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA-PSK"

	.comm	_WPA_KEY_MGMT_PSK,4,2           ; @WPA_KEY_MGMT_PSK
l_.str.1:                               ; @.str.1
	.asciz	"WPA-EAP"

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ; @WPA_KEY_MGMT_IEEE8021X
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Line %d: invalid key_mgmt '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"Line %d: no key_mgmt values configured."

	.comm	_WPA_KEY_MGMT_DPP,4,2           ; @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ; @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ; @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ; @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ; @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ; @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ; @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B
	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
	.comm	_WPA_KEY_MGMT_OSEN,4,2          ; @WPA_KEY_MGMT_OSEN
	.comm	_WPA_KEY_MGMT_OWE,4,2           ; @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ; @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ; @WPA_KEY_MGMT_SAE
	.no_dead_strip	_hostapd_config_parse_key_mgmt
.subsections_via_symbols
