	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sae_derive_commit_element_ecc
_sae_derive_commit_element_ecc:         ## @sae_derive_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movl	8(%rax), %edi
	callq	_crypto_ec_point_init
	movq	%rax, %rcx
	movq	(%rbx), %rax
	movq	%rcx, (%rax)
	testq	%rcx, %rcx
	je	LBB0_5
LBB0_2:
	movl	8(%rax), %edi
	movl	12(%rax), %esi
	movq	%r14, %rdx
	callq	_crypto_ec_point_mul
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	movq	(%rax), %rsi
	callq	_crypto_ec_point_invert
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jns	LBB0_6
LBB0_4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: Could not compute commit-element"

	.no_dead_strip	_sae_derive_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_derive_commit_element_ecc
_sae_derive_commit_element_ecc:         ; @sae_derive_commit_element_ecc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x3, [x8]
	cbnz	x3, LBB0_3
; %bb.1:
	ldr	w0, [x8, #8]
	bl	_crypto_ec_point_init
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.2:
	mov	x3, x0
LBB0_3:
	ldp	w0, w1, [x8, #8]
	mov	x2, x20
	bl	_crypto_ec_point_mul
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	x1, [x8]
	bl	_crypto_ec_point_invert
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: Could not compute commit-element"

	.no_dead_strip	_sae_derive_commit_element_ecc
.subsections_via_symbols
