	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_pwd_get_element            ## -- Begin function eap_pwd_get_element
	.p2align	4, 0x90
_eap_pwd_get_element:                   ## @eap_pwd_get_element
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_crypto_ec_get_prime
	movq	%rax, %r12
	movl	(%r15), %edi
	callq	_crypto_ec_prime_len
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_eap_pwd_element_coord_ok
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	(%r14,%rbx,4), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_eap_pwd_element_coord_ok
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_crypto_ec_point_from_bin
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r14
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_crypto_ec_point_is_on_curve
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_crypto_ec_point_is_at_infinity
	testq	%rax, %rax
	je	LBB0_10
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_crypto_ec_point_deinit
	jmp	LBB0_9
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	callq	_wpa_printf
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-pwd: Invalid coordinate in element"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-pwd: EC point from element failed"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-pwd: Invalid element"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_pwd_get_element            ; -- Begin function eap_pwd_get_element
	.p2align	2
_eap_pwd_get_element:                   ; @eap_pwd_get_element
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_crypto_ec_get_prime
	mov	x21, x0
	ldr	w0, [x19]
	bl	_crypto_ec_prime_len
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_eap_pwd_element_coord_ok
	cbz	w0, LBB0_6
; %bb.1:
	add	x1, x20, x22, lsl #2
	mov	x0, x21
	mov	x2, x22
	bl	_eap_pwd_element_coord_ok
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_crypto_ec_point_from_bin
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_crypto_ec_point_is_on_curve
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_crypto_ec_point_is_at_infinity
	cbz	x0, LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x0, x20
	mov	w1, #0
	bl	_crypto_ec_point_deinit
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	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_9:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-pwd: Invalid coordinate in element"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-pwd: EC point from element failed"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-pwd: Invalid element"

.subsections_via_symbols
