	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_rsn_build_sae_commit
_mesh_rsn_build_sae_commit:             ## @mesh_rsn_build_sae_commit
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rsi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.1:
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_4:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_mesh_rsn_sae_group
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_11:
	movl	(%r14), %r14d
	movl	8(%r15), %r13d
	movq	%rbx, %rdi
	callq	_os_strlen
	movl	16(%r12), %r8d
	movq	(%r15), %r9
	movl	%r14d, %edi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sae_prepare_commit             ## TAILCALL
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%r14, %rdi
	callq	_wpa_msg
LBB0_10:
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	16(%r12), %edi
	testl	%edi, %edi
	je	LBB0_11
## %bb.9:
	callq	_os_strdup
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: No password available"

L_.str.1:                               ## @.str.1
	.asciz	"SAE: Failed to select group"

	.no_dead_strip	_mesh_rsn_build_sae_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_rsn_build_sae_commit
_mesh_rsn_build_sae_commit:             ; @mesh_rsn_build_sae_commit
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x1]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x21, [x22, #8]
	cbz	x21, LBB0_7
LBB0_2:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_mesh_rsn_sae_group
	tbnz	x0, #63, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
LBB0_5:
	ldr	w19, [x19]
	ldr	w23, [x20, #8]
	mov	x0, x21
	bl	_os_strlen
	mov	x3, x0
	ldr	w4, [x22, #16]
	ldr	x5, [x20]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	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
	b	_sae_prepare_commit
LBB0_6:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_wpa_msg
LBB0_9:
	mov	w0, #-1
	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
LBB0_10:
	ldr	w0, [x22, #16]
	cbz	w0, LBB0_5
; %bb.11:
	bl	_os_strdup
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x0, [x8]
	cbnz	x0, LBB0_5
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: No password available"

l_.str.1:                               ; @.str.1
	.asciz	"SAE: Failed to select group"

	.no_dead_strip	_mesh_rsn_build_sae_commit
.subsections_via_symbols
