	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sae_parse_commit_element_ffc
_sae_parse_commit_element_ffc:          ## @sae_parse_commit_element_ffc
	.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, %rax
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, -44(%rbp)
	movq	(%rdi), %rcx
	movslq	(%rcx), %rcx
	movq	(%rsi), %rdx
	subq	%rdx, %rax
	sarq	$2, %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	cmpq	%rcx, %rax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	(%r14), %rdi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_crypto_bignum_init_set
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	xorl	%eax, %eax
	callq	_crypto_bignum_init
	movq	%rax, %r15
	leaq	-44(%rbp), %rdi
	movl	$4, %esi
	callq	_crypto_bignum_init_set
	movq	%rax, %r12
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_crypto_bignum_sub
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_crypto_bignum_is_zero
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_crypto_bignum_is_one
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	movq	%r15, %rsi
	callq	_crypto_bignum_cmp
	testq	%rax, %rax
	js	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
LBB0_14:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	%r15, %rcx
	callq	_crypto_bignum_exptmod
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_crypto_bignum_is_one
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	(%rbx), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, (%r14)
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: Not enough data for commit-element"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
L_.str.1:                               ## @.str.1
	.asciz	"SAE: Peer commit-element"

L_.str.2:                               ## @.str.2
	.asciz	"SAE: Invalid peer element"

L_.str.3:                               ## @.str.3
	.asciz	"SAE: Invalid peer element (scalar-op)"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sae_parse_commit_element_ffc
_sae_parse_commit_element_ffc:          ; @sae_parse_commit_element_ffc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, x2
	mov	x20, x0
	mov	w9, #1
	str	w9, [sp, #12]
	ldr	x9, [x0]
	ldrsw	x3, [x9]
	ldr	x2, [x1]
	sub	x8, x8, x2
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	cmp	x3, x8, asr #2
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_2:
	mov	x19, x1
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	x0, [x19]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_crypto_bignum_init_set
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_11
; %bb.3:
	bl	_crypto_bignum_init
	mov	x21, x0
	add	x0, sp, #12
	mov	w1, #4
	bl	_crypto_bignum_init_set
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.4:
	cbz	x22, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	mov	x1, x22
	mov	x2, x21
	bl	_crypto_bignum_sub
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	bl	_crypto_bignum_is_zero
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	bl	_crypto_bignum_is_one
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	mov	x1, x21
	bl	_crypto_bignum_cmp
	tbnz	x0, #63, LBB0_13
LBB0_9:
	mov	x0, x21
	mov	w1, #0
	bl	_crypto_bignum_deinit
	mov	x0, x22
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	bl	_wpa_printf
LBB0_11:
Lloh8:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x0, x22
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	ldp	w2, w1, [x8, #4]
	mov	x3, x21
	bl	_crypto_bignum_exptmod
	tbnz	x0, #63, LBB0_16
; %bb.14:
	mov	x0, x21
	bl	_crypto_bignum_is_one
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	w1, #0
	bl	_crypto_bignum_deinit
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #2
	str	x8, [x19]
Lloh10:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	mov	w1, #0
	bl	_crypto_bignum_deinit
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: Not enough data for commit-element"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
l_.str.1:                               ; @.str.1
	.asciz	"SAE: Peer commit-element"

l_.str.2:                               ; @.str.2
	.asciz	"SAE: Invalid peer element"

l_.str.3:                               ; @.str.3
	.asciz	"SAE: Invalid peer element (scalar-op)"

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