	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sae_group_allowed              ## -- Begin function sae_group_allowed
	.p2align	4, 0x90
_sae_group_allowed:                     ## @sae_group_allowed
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rax
	cmpl	%ebx, %ecx
	jne	LBB0_2
LBB0_4:
	cmpl	%ebx, %ecx
	jne	LBB0_5
LBB0_6:
	movq	(%r15), %rcx
	movq	_SAE_COMMITTED@GOTPCREL(%rip), %rdx
	movl	8(%r15), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.7:
	cmpl	%ebx, %eax
	je	LBB0_12
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_18
LBB0_9:
	cmpl	%ebx, %eax
	je	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_sae_set_group
	testq	%rax, %rax
	js	LBB0_11
LBB0_12:
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.14:
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	jne	LBB0_19
## %bb.15:
	cmpq	$0, (%rcx)
	je	LBB0_19
## %bb.16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_17:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_18:
	movq	_WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: Proposed group %u not enabled in the current configuration"

	.comm	_WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED,4,2 ## @WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED
	.comm	_SAE_COMMITTED,8,3              ## @SAE_COMMITTED
L_.str.1:                               ## @.str.1
	.asciz	"SAE: Do not allow group to be changed"

L_.str.2:                               ## @.str.2
	.asciz	"SAE: Unsupported Finite Cyclic Group %u"

L_.str.3:                               ## @.str.3
	.asciz	"SAE: Group information not yet initialized"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
L_.str.4:                               ## @.str.4
	.asciz	"SAE: Do not allow FFC group %u without explicit configuration enabling it"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sae_group_allowed              ; -- Begin function sae_group_allowed
	.p2align	2
_sae_group_allowed:                     ; @sae_group_allowed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x8, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	cmp	w9, #1
	ccmp	w9, w19, #4, ge
	b.ne	LBB0_2
; %bb.3:
	cmp	w9, w19
	b.ne	LBB0_13
LBB0_4:
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _SAE_COMMITTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAE_COMMITTED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x21, #8]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.6:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_7:
	cmp	w8, w19
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	bl	_sae_set_group
	tbnz	x0, #63, LBB0_17
LBB0_9:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_16
; %bb.10:
Lloh8:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
	cbnz	x20, LBB0_15
; %bb.11:
	ldr	x9, [x9]
	cbz	x9, LBB0_15
; %bb.12:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	bl	_wpa_printf
Lloh20:
	adrp	x8, _WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_16:
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
	b	LBB0_15
LBB0_17:
Lloh29:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	str	x19, [sp]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: Proposed group %u not enabled in the current configuration"

	.comm	_WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED,4,2 ; @WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED
	.comm	_SAE_COMMITTED,8,3              ; @SAE_COMMITTED
l_.str.1:                               ; @.str.1
	.asciz	"SAE: Do not allow group to be changed"

l_.str.2:                               ; @.str.2
	.asciz	"SAE: Unsupported Finite Cyclic Group %u"

l_.str.3:                               ; @.str.3
	.asciz	"SAE: Group information not yet initialized"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
l_.str.4:                               ; @.str.4
	.asciz	"SAE: Do not allow FFC group %u without explicit configuration enabling it"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
.subsections_via_symbols
