	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_init                       ## -- Begin function wpa_init
	.p2align	4, 0x90
_wpa_init:                              ## @wpa_init
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	$80, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movq	72(%rax), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_os_memcpy
	movq	%rbx, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_os_memcpy
	movq	%r12, 64(%rbx)
	movq	%r15, 56(%rbx)
	movq	%rbx, %rdi
	callq	_wpa_auth_gen_wpa_ie
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_wpa_group_init
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	_wpa_auth_pmksa_free_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pmksa_cache_auth_init
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	_wpa_rekey_gmk@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_8:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.9:
	movq	_wpa_rekey_gtk@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_14
LBB0_10:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	40(%rbx), %rdi
	callq	_os_free
LBB0_11:
	movq	32(%rbx), %rdi
	callq	_os_free
LBB0_12:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not generate WPA IE."

	.comm	_wpa_auth_pmksa_free_cb,4,2     ## @wpa_auth_pmksa_free_cb
L_.str.1:                               ## @.str.1
	.asciz	"PMKSA cache initialization failed."

	.comm	_wpa_rekey_gmk,4,2              ## @wpa_rekey_gmk
	.comm	_wpa_rekey_gtk,4,2              ## @wpa_rekey_gtk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_init                       ; -- Begin function wpa_init
	.p2align	2
_wpa_init:                              ; @wpa_init
	.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, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	w0, #80
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x0, [x19, #72]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_os_memcpy
	add	x20, x19, #8
	mov	x0, x20
	mov	x1, x23
	mov	w2, #8
	bl	_os_memcpy
	stp	x21, x22, [x19, #56]
	mov	x0, x19
	bl	_wpa_auth_gen_wpa_ie
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_wpa_group_init
	str	x0, [x19, #40]
	cbz	x0, LBB0_10
; %bb.4:
Lloh8:
	adrp	x8, _wpa_auth_pmksa_free_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wpa_auth_pmksa_free_cb@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pmksa_cache_auth_init
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _wpa_rekey_gmk@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wpa_rekey_gmk@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_7:
	ldr	x0, [x20]
	cbz	x0, LBB0_12
; %bb.8:
Lloh14:
	adrp	x8, _wpa_rekey_gtk@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wpa_rekey_gtk@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_12
LBB0_9:
Lloh17:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #40]
	bl	_os_free
LBB0_10:
	ldr	x0, [x19, #32]
	bl	_os_free
LBB0_11:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_12:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not generate WPA IE."

	.comm	_wpa_auth_pmksa_free_cb,4,2     ; @wpa_auth_pmksa_free_cb
l_.str.1:                               ; @.str.1
	.asciz	"PMKSA cache initialization failed."

	.comm	_wpa_rekey_gmk,4,2              ; @wpa_rekey_gmk
	.comm	_wpa_rekey_gtk,4,2              ; @wpa_rekey_gtk
.subsections_via_symbols
