	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_mesh_init_rsn
_wpas_mesh_init_rsn:                    ## @wpas_mesh_init_rsn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %r12
	movq	8(%r12), %rcx
	movq	(%rcx), %r14
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	LBB0_2
LBB0_3:
	movl	20(%rax), %ecx
	movq	(%r14), %rdx
	movl	%ecx, 12(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 8(%rdx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpas_mesh_copy_groups
	jmp	LBB0_6
LBB0_7:
	leaq	_wpas_mesh_init_rsn.default_groups(%rip), %rdi
	movl	$24, %esi
	callq	_os_memdup
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dup_binstr
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_mesh_rsn_auth_init
	movl	%eax, %ecx
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_8:
	movl	$-1, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @wpas_mesh_init_rsn.default_groups
_wpas_mesh_init_rsn.default_groups:
	.long	19                              ## 0x13
	.long	20                              ## 0x14
	.long	21                              ## 0x15
	.long	25                              ## 0x19
	.long	26                              ## 0x1a
	.long	4294967295                      ## 0xffffffff

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mesh: Passphrase for SAE not configured"

	.no_dead_strip	_wpas_mesh_init_rsn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_mesh_init_rsn
_wpas_mesh_init_rsn:                    ; @wpas_mesh_init_rsn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldp	x8, x22, [x0, #16]
	ldr	x9, [x22, #8]
	ldr	x20, [x9]
	ldr	x21, [x8]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_7
LBB0_2:
	ldr	x9, [x20]
	ldr	d0, [x8, #16]
	str	d0, [x9, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_wpas_mesh_copy_groups
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x0, _wpas_mesh_init_rsn.default_groups@PAGE
Lloh1:
	add	x0, x0, _wpas_mesh_init_rsn.default_groups@PAGEOFF
	mov	w1, #24
	bl	_os_memdup
	ldr	x8, [x20]
	str	w0, [x8, #4]
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_os_strlen
	mov	x1, x0
	mov	x0, x21
	bl	_dup_binstr
	ldr	x8, [x20]
	str	w0, [x8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_mesh_rsn_auth_init
	str	w0, [x19]
	cmp	w0, #0
	csetm	w0, eq
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @wpas_mesh_init_rsn.default_groups
_wpas_mesh_init_rsn.default_groups:
	.long	19                              ; 0x13
	.long	20                              ; 0x14
	.long	21                              ; 0x15
	.long	25                              ; 0x19
	.long	26                              ; 0x1a
	.long	4294967295                      ; 0xffffffff

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mesh: Passphrase for SAE not configured"

	.no_dead_strip	_wpas_mesh_init_rsn
.subsections_via_symbols
