	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sae_parse_commit_element_ecc
_sae_parse_commit_element_ecc:          ## @sae_parse_commit_element_ecc
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SAE_MAX_ECC_PRIME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	leaq	(%rcx,%rcx), %rdx
	subq	(%r14), %rbx
	sarq	$2, %rbx
	cmpq	%rdx, %rbx
	jge	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_2:
	movl	20(%rax), %edi
	shll	$2, %r13d
	movq	%r12, %rsi
	movl	%r13d, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_crypto_bignum_to_bin
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	movq	(%r14), %rdi
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_os_memcmp
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	movq	(%r15), %rax
	movslq	(%rax), %rdx
	movq	%rdx, %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcmp
	testq	%rax, %rax
	js	LBB0_9
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	callq	_wpa_printf
LBB0_7:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	(%r14), %rdx
	movq	(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	movq	%rcx, %rdx
	shlq	$2, %rdx
	addq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_crypto_ec_point_deinit
	movq	(%r15), %rax
	movl	16(%rax), %edi
	movq	(%r14), %rsi
	callq	_crypto_ec_point_from_bin
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movl	16(%rcx), %edi
	movq	%rax, %rsi
	callq	_crypto_ec_point_is_on_curve
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	(%r15), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	addq	%rax, (%r14)
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SAE_MAX_ECC_PRIME_LEN,4,2      ## @SAE_MAX_ECC_PRIME_LEN
	.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: Invalid coordinates in peer element"

L_.str.2:                               ## @.str.2
	.asciz	"SAE: Peer commit-element(x)"

L_.str.3:                               ## @.str.3
	.asciz	"SAE: Peer commit-element(y)"

L_.str.4:                               ## @.str.4
	.asciz	"SAE: Peer element is not on curve"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.no_dead_strip	_sae_parse_commit_element_ecc
.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_ecc
_sae_parse_commit_element_ecc:          ; @sae_parse_commit_element_ecc
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _SAE_MAX_ECC_PRIME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAE_MAX_ECC_PRIME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x8, [x0]
	ldrsw	x3, [x8]
	ldr	x9, [x1]
	sub	x9, x2, x9
	asr	x9, x9, #2
	cmp	x9, x3, lsl #1
	b.ge	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	w0, [x8, #20]
	lsl	w2, w12, #2
	mov	x1, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_crypto_bignum_to_bin
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	x0, [x19]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x1, x21
	bl	_os_memcmp
	tbz	x0, #63, LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldrsw	x2, [x9]
	add	x0, x8, x2, lsl #2
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcmp
	tbnz	x0, #63, LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wpa_printf
LBB0_7:
Lloh18:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.9:
	sub	sp, x29, #32
	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
LBB0_10:
Lloh23:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh24:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x2, [x19]
	ldr	x8, [x20]
	ldr	w3, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldrsw	x3, [x9]
	add	x2, x8, x3, lsl #2
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldr	x8, [x20]
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_crypto_ec_point_deinit
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x1, [x19]
	bl	_crypto_ec_point_from_bin
	ldr	x8, [x20]
	str	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.11:
	mov	x1, x0
	ldr	w0, [x8, #16]
	bl	_crypto_ec_point_is_on_curve
	cbz	w0, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldrsw	x8, [x8]
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #3
	str	x8, [x19]
Lloh29:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_13:
	ldr	w0, [x21]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SAE_MAX_ECC_PRIME_LEN,4,2      ; @SAE_MAX_ECC_PRIME_LEN
	.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: Invalid coordinates in peer element"

l_.str.2:                               ; @.str.2
	.asciz	"SAE: Peer commit-element(x)"

l_.str.3:                               ; @.str.3
	.asciz	"SAE: Peer commit-element(y)"

l_.str.4:                               ; @.str.4
	.asciz	"SAE: Peer element is not on curve"

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