	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_write_key_mgmt
_wpa_config_write_key_mgmt:             ## @wpa_config_write_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
	movq	%rsi, %rbx
	movl	$100, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%rax, %r13
	movl	(%rbx), %eax
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rcx
	movq	%r13, %r14
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	movl	$100, %esi
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	$100, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movslq	%r14d, %r14
	addq	%r13, %r14
	movl	(%rbx), %eax
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	100(%r13), %r15
	movq	_WPA_KEY_MGMT_IEEE8021X@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	movl	%r15d, %r12d
	subl	%r14d, %r12d
	cmpq	%r13, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.8:
	movslq	%ebx, %rax
	addq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_9:
	movq	_WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.10:
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	cmpq	%r13, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.12:
	movslq	%r12d, %rax
	addq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_13:
	movq	_WPA_KEY_MGMT_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.14:
	movl	%r15d, %ebx
	subl	%r14d, %ebx
	cmpq	%r13, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.16:
	movslq	%r12d, %rax
	addq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_17:
	movq	_WPA_KEY_MGMT_WPA_NONE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.18:
	subl	%r14d, %r15d
	cmpq	%r13, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_20
LBB0_3:
	movb	$0, 99(%r13)
	jmp	LBB0_24
LBB0_20:
	movslq	%ebx, %rax
	addq	%rax, %r14
LBB0_21:
	cmpq	%r13, %r14
	jne	LBB0_24
## %bb.22:
	movq	%r13, %rdi
	callq	_os_free
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KEY_MGMT_PSK,4,2           ## @WPA_KEY_MGMT_PSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sWPA-PSK"

L_.str.1:                               ## @.str.1
	.space	1

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

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ## @WPA_KEY_MGMT_IEEE8021X
L_.str.3:                               ## @.str.3
	.asciz	"%sWPA-EAP"

	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,4,2 ## @WPA_KEY_MGMT_IEEE8021X_NO_WPA
L_.str.4:                               ## @.str.4
	.asciz	"%sIEEE8021X"

	.comm	_WPA_KEY_MGMT_NONE,4,2          ## @WPA_KEY_MGMT_NONE
L_.str.5:                               ## @.str.5
	.asciz	"%sNONE"

	.comm	_WPA_KEY_MGMT_WPA_NONE,4,2      ## @WPA_KEY_MGMT_WPA_NONE
L_.str.6:                               ## @.str.6
	.asciz	"%sWPA-NONE"

	.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
	.comm	_WPA_KEY_MGMT_WPS,4,2           ## @WPA_KEY_MGMT_WPS
	.no_dead_strip	_wpa_config_write_key_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_config_write_key_mgmt
_wpa_config_write_key_mgmt:             ; @wpa_config_write_key_mgmt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	w0, #100
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_17
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #100
	bl	_os_snprintf
	mov	x20, x0
	mov	w0, #100
	mov	x1, x20
	bl	_os_snprintf_error
	cbnz	x0, LBB0_16
; %bb.3:
	add	x20, x19, w20, sxtw
	ldr	w8, [x21]
	b	LBB0_5
LBB0_4:
	mov	x20, x19
LBB0_5:
	add	x24, x19, #100
Lloh7:
	adrp	x25, l_.str.1@PAGE
Lloh8:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x26, l_.str.2@PAGE
Lloh13:
	add	x26, x26, l_.str.2@PAGEOFF
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	sub	w23, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_16
; %bb.7:
	add	x20, x20, w22, sxtw
	ldr	w8, [x21]
LBB0_8:
Lloh16:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X_NO_WPA@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	sub	w23, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_16
; %bb.10:
	add	x20, x20, w22, sxtw
	ldr	w8, [x21]
LBB0_11:
Lloh21:
	adrp	x9, _WPA_KEY_MGMT_NONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WPA_KEY_MGMT_NONE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	sub	w23, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh24:
	adrp	x2, l_.str.5@PAGE
Lloh25:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_16
; %bb.13:
	add	x20, x20, w22, sxtw
	ldr	w8, [x21]
LBB0_14:
Lloh26:
	adrp	x9, _WPA_KEY_MGMT_WPA_NONE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WPA_KEY_MGMT_WPA_NONE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.15:
	sub	w22, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh29:
	adrp	x2, l_.str.6@PAGE
Lloh30:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbz	x0, LBB0_18
LBB0_16:
	strb	wzr, [x19, #99]
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	add	x20, x20, w21, sxtw
LBB0_19:
	cmp	x20, x19
	b.ne	LBB0_17
; %bb.20:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KEY_MGMT_PSK,4,2           ; @WPA_KEY_MGMT_PSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sWPA-PSK"

l_.str.1:                               ; @.str.1
	.space	1

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

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ; @WPA_KEY_MGMT_IEEE8021X
l_.str.3:                               ; @.str.3
	.asciz	"%sWPA-EAP"

	.comm	_WPA_KEY_MGMT_IEEE8021X_NO_WPA,4,2 ; @WPA_KEY_MGMT_IEEE8021X_NO_WPA
l_.str.4:                               ; @.str.4
	.asciz	"%sIEEE8021X"

	.comm	_WPA_KEY_MGMT_NONE,4,2          ; @WPA_KEY_MGMT_NONE
l_.str.5:                               ; @.str.5
	.asciz	"%sNONE"

	.comm	_WPA_KEY_MGMT_WPA_NONE,4,2      ; @WPA_KEY_MGMT_WPA_NONE
l_.str.6:                               ; @.str.6
	.asciz	"%sWPA-NONE"

	.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
	.comm	_WPA_KEY_MGMT_WPS,4,2           ; @WPA_KEY_MGMT_WPS
	.no_dead_strip	_wpa_config_write_key_mgmt
.subsections_via_symbols
