	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_config_write_proto
_wpa_config_write_proto:                ## @wpa_config_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	$20, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %eax
	movq	_WPA_PROTO_WPA@GOTPCREL(%rip), %rcx
	movq	%rbx, %r14
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	$20, %esi
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	$20, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movslq	%r14d, %r14
	addq	%rbx, %r14
	movl	(%r15), %eax
LBB0_4:
	leaq	20(%rbx), %r12
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12
	subl	%r14d, %r12d
	cmpq	%rbx, %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, %r13d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movslq	%r13d, %rax
	addq	%rax, %r14
	movl	(%r15), %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_7:
	movq	_WPA_PROTO_OSEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.8:
	subl	%r14d, %r12d
	cmpq	%rbx, %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	%r12d, %esi
	callq	_os_snprintf
	movl	%eax, %r15d
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movslq	%r15d, %rax
	addq	%rax, %r14
LBB0_10:
	cmpq	%rbx, %r14
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_PROTO_WPA,4,2              ## @WPA_PROTO_WPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sWPA"

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

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

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

	.comm	_WPA_PROTO_OSEN,4,2             ## @WPA_PROTO_OSEN
L_.str.4:                               ## @.str.4
	.asciz	"%sOSEN"

	.no_dead_strip	_wpa_config_write_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_write_proto
_wpa_config_write_proto:                ; @wpa_config_write_proto
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	w0, #20
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WPA_PROTO_WPA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_PROTO_WPA@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, #20
	bl	_os_snprintf
	mov	x20, x0
	mov	w0, #20
	mov	x1, x20
	bl	_os_snprintf_error
	cbnz	x0, LBB0_13
; %bb.3:
	add	x20, x19, w20, sxtw
	ldr	w8, [x21]
	b	LBB0_5
LBB0_4:
	mov	x20, x19
LBB0_5:
	add	x24, x19, #20
Lloh7:
	adrp	x9, _WPA_PROTO_RSN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WPA_PROTO_RSN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	sub	w23, w24, w20
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x20, x19
	csel	x3, x9, x8, 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_13
; %bb.7:
	add	x20, x20, w22, sxtw
	ldr	w8, [x21]
LBB0_8:
Lloh16:
	adrp	x9, _WPA_PROTO_OSEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_PROTO_OSEN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	sub	w22, w24, w20
Lloh19:
	adrp	x8, l_.str.2@PAGE
Lloh20:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh21:
	adrp	x9, l_.str.1@PAGE
Lloh22:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x20, x19
	csel	x3, x9, x8, eq
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_13
; %bb.10:
	add	x20, x20, w21, sxtw
LBB0_11:
	cmp	x20, x19
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_PROTO_WPA,4,2              ; @WPA_PROTO_WPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sWPA"

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

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

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

	.comm	_WPA_PROTO_OSEN,4,2             ; @WPA_PROTO_OSEN
l_.str.4:                               ; @.str.4
	.asciz	"%sOSEN"

	.no_dead_strip	_wpa_config_write_proto
.subsections_via_symbols
