	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_pwd_build_commit_req
_eap_pwd_build_commit_req:              ## @eap_pwd_build_commit_req
	.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	%rsi, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	cmpq	$0, 56(%rbx)
	jne	LBB0_21
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_crypto_ec_prime_len
	movq	%rax, %r15
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_crypto_ec_order_len
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_crypto_bignum_init
	movq	%rax, 48(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_crypto_ec_point_init
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_crypto_bignum_init
	movq	%rax, 32(%rbx)
	xorl	%eax, %eax
	callq	_crypto_bignum_init
	movq	%rax, %r14
	movq	48(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	cmpl	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	movq	24(%rbx), %rdi
	movq	%r14, %rdx
	callq	_eap_pwd_get_rand_mask
	testq	%rax, %rax
	js	LBB0_20
## %bb.7:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	16(%rbx), %ecx
	movq	%r14, %rdx
	callq	_crypto_ec_point_mul
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_crypto_ec_point_invert
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	leaq	(%r12,%r15,2), %rdi
	cmpq	$0, 40(%rbx)
	je	LBB0_12
## %bb.13:
	movl	(%rbx), %eax
	incl	%eax
	jmp	LBB0_14
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_19:
	callq	_wpa_printf
LBB0_20:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_crypto_bignum_deinit
	cmpq	$0, 8(%rbx)
	je	LBB0_22
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_pwd_state                  ## TAILCALL
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_pwd_state
	jmp	LBB0_20
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_19
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_wpabuf_alloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	leaq	(%r15,%r15), %r13
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.16:
	movq	%rax, %rdi
	callq	_wpabuf_put_u8
	movq	8(%rbx), %rdi
	movq	40(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_wpabuf_put_data
	movq	8(%rbx), %rax
LBB0_17:
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put
	movq	%rax, %r13
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put
	movq	32(%rbx), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	movq	%r12, %rcx
	callq	_crypto_bignum_to_bin
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	leaq	(,%r15,4), %rcx
	addq	%r13, %rcx
	movq	%r13, %rdx
	callq	_crypto_ec_point_to_bin
	testq	%rax, %rax
	jns	LBB0_20
## %bb.18:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-pwd: Commit/Request"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PWD (server): scalar allocation fail"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-PWD (server): element allocation fail"

	.comm	_FAILURE,4,2                    ## @FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-PWD (server): element inversion fail"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-PWD (server): point assignment fail"

	.no_dead_strip	_eap_pwd_build_commit_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_pwd_build_commit_req
_eap_pwd_build_commit_req:              ; @eap_pwd_build_commit_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
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
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_18
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_crypto_ec_prime_len
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_crypto_ec_order_len
	mov	x22, x0
	bl	_crypto_bignum_init
	str	x0, [x19, #48]
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_crypto_ec_point_init
	str	w0, [x19, #16]
	bl	_crypto_bignum_init
	str	x0, [x19, #32]
	bl	_crypto_bignum_init
	mov	x20, x0
	ldr	x1, [x19, #48]
	cbz	x1, LBB0_15
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_15
; %bb.3:
	ldr	x3, [x19, #32]
	cbz	x3, LBB0_15
; %bb.4:
	cbz	x20, LBB0_15
; %bb.5:
	ldr	x0, [x19, #24]
	mov	x2, x20
	bl	_eap_pwd_get_rand_mask
	tbnz	x0, #63, LBB0_17
; %bb.6:
	ldr	x8, [x19, #24]
	ldp	w0, w1, [x8]
	ldr	w3, [x19, #16]
	mov	x2, x20
	bl	_crypto_ec_point_mul
	tbnz	x0, #63, LBB0_20
; %bb.7:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_crypto_ec_point_invert
	tbnz	x0, #63, LBB0_21
; %bb.8:
	lsl	x23, x21, #1
	add	x8, x22, x23
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	w9, [x19]
	add	w9, w9, #1
LBB0_10:
	add	w0, w8, w9
	bl	_wpabuf_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.11:
	ldr	w1, [x19]
	cbz	w1, LBB0_13
; %bb.12:
	bl	_wpabuf_put_u8
	ldr	x0, [x19, #8]
	ldr	x1, [x19, #40]
	ldr	w2, [x19]
	bl	_wpabuf_put_data
	ldr	x0, [x19, #8]
LBB0_13:
	mov	x1, x23
	bl	_wpabuf_put
	mov	x23, x0
	ldr	x0, [x19, #8]
	mov	x1, x22
	bl	_wpabuf_put
	mov	x1, x0
	ldr	x0, [x19, #32]
	mov	x2, x22
	mov	x3, x22
	bl	_crypto_bignum_to_bin
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	add	x3, x23, x21, lsl #2
	mov	x2, x23
	bl	_crypto_ec_point_to_bin
	tbz	x0, #63, LBB0_17
; %bb.14:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:
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
LBB0_16:
	bl	_wpa_printf
LBB0_17:
	mov	x0, x20
	mov	w1, #1
	bl	_crypto_bignum_deinit
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
LBB0_18:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh15:
	adrp	x8, _FAILURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_eap_pwd_state
LBB0_20:
Lloh18:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh23:
	adrp	x8, _FAILURE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_eap_pwd_state
	b	LBB0_17
LBB0_21:
Lloh26:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-pwd: Commit/Request"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PWD (server): scalar allocation fail"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-PWD (server): element allocation fail"

	.comm	_FAILURE,4,2                    ; @FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-PWD (server): element inversion fail"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-PWD (server): point assignment fail"

	.no_dead_strip	_eap_pwd_build_commit_req
.subsections_via_symbols
