	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_pwd_process_confirm_resp
_eap_pwd_process_confirm_resp:          ## @eap_pwd_process_confirm_resp
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	32(%r12), %rax
	movl	(%rax), %edi
	callq	_crypto_ec_prime_len
	movq	%rax, %r14
	movq	32(%r12), %rax
	movl	(%rax), %edi
	callq	_crypto_ec_order_len
	movslq	(%r13), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_7
## %bb.1:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	48(%r12), %edi
	callq	_htons
	movl	%eax, -64(%rbp)
	leaq	-60(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$4, %edx
	callq	_os_memcpy
	movq	_EAP_PWD_DEFAULT_PRF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	(%r14,%r14), %rbx
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_eap_pwd_h_init
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	24(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_crypto_bignum_to_bin
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_eap_pwd_h_update
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	44(%r12), %esi
	leaq	(%r15,%r14,4), %rbx
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_crypto_ec_point_to_bin
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_eap_pwd_h_update
	movl	20(%r12), %edi
	movq	%r15, %rsi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_crypto_bignum_to_bin
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_eap_pwd_h_update
	movq	32(%r12), %rax
	movl	(%rax), %edi
	movl	40(%r12), %esi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_crypto_ec_point_to_bin
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_eap_pwd_h_update
	movl	16(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_crypto_bignum_to_bin
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_eap_pwd_h_update
	leaq	-60(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_eap_pwd_h_update
	movq	%r13, %rdi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_eap_pwd_h_final
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_12
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	addq	%r14, %r14
	movq	%r14, %rbx
	jmp	LBB0_11
LBB0_8:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_11:
	xorl	%r13d, %r13d
LBB0_12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bin_clear_free
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_eap_pwd_h_final
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_14:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%r12), %rdi
	movl	24(%r12), %esi
	movl	20(%r12), %edx
	movl	16(%r12), %ecx
	movl	12(%r12), %r9d
	movl	8(%r12), %r10d
	movl	(%r12), %ebx
	movl	4(%r12), %eax
	movq	%r13, %r8
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	%r14
	callq	_compute_keys
	addq	$32, %rsp
	testq	%rax, %rax
	js	LBB0_16
## %bb.15:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_FAILURE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_eap_pwd_state
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-pwd: Unexpected Confirm payload length %u (expected %u)"

	.comm	_EAP_PWD_DEFAULT_RAND_FUNC,4,2  ## @EAP_PWD_DEFAULT_RAND_FUNC
	.comm	_EAP_PWD_DEFAULT_PRF,4,2        ## @EAP_PWD_DEFAULT_PRF
L_.str.1:                               ## @.str.1
	.asciz	"EAP-PWD (peer): allocation fail"

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

L_.str.3:                               ## @.str.3
	.asciz	"EAP-PWD (server): confirm did not verify"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"EAP-pwd (server): confirm verified"

	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_eap_pwd_process_confirm_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_pwd_process_confirm_resp
_eap_pwd_process_confirm_resp:          ; @eap_pwd_process_confirm_resp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SHA256_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x28]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x1, #32]
	ldr	w0, [x8]
	bl	_crypto_ec_prime_len
	mov	x26, x0
	ldr	x8, [x21, #32]
	ldr	w0, [x8]
	bl	_crypto_ec_order_len
	ldrsw	x8, [x28]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.1:
	mov	x25, x0
	ldr	w0, [x21, #48]
	bl	_htons
	stur	w0, [x29, #-96]
	sub	x0, x29, #92
	sub	x1, x29, #96
	mov	w2, #4
	bl	_os_memcpy
Lloh7:
	adrp	x8, _EAP_PWD_DEFAULT_PRF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_PWD_DEFAULT_PRF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stur	w8, [x29, #-60]
	lsl	x19, x26, #1
	mov	x0, x19
	bl	_os_malloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	bl	_eap_pwd_h_init
	mov	x24, x0
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w0, [x21, #24]
	mov	x1, x20
	mov	x2, x26
	mov	x3, x26
	bl	_crypto_bignum_to_bin
	mov	x0, x24
	mov	x1, x20
	mov	x2, x26
	bl	_eap_pwd_h_update
	ldr	x8, [x21, #32]
	ldr	w0, [x8]
	ldr	w1, [x21, #44]
	add	x26, x20, x26, lsl #2
	mov	x2, x20
	mov	x3, x26
	bl	_crypto_ec_point_to_bin
	tbnz	x0, #63, LBB0_11
; %bb.4:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_eap_pwd_h_update
	ldr	w0, [x21, #20]
	mov	x1, x20
	mov	x2, x25
	mov	x3, x25
	bl	_crypto_bignum_to_bin
	mov	x0, x24
	mov	x1, x20
	mov	x2, x25
	bl	_eap_pwd_h_update
	ldr	x8, [x21, #32]
	ldr	w0, [x8]
	ldr	w1, [x21, #40]
	mov	x2, x20
	mov	x3, x26
	bl	_crypto_ec_point_to_bin
	tbnz	x0, #63, LBB0_11
; %bb.5:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_eap_pwd_h_update
	ldr	w0, [x21, #16]
	mov	x1, x20
	mov	x2, x25
	mov	x3, x25
	bl	_crypto_bignum_to_bin
	mov	x0, x24
	mov	x1, x20
	mov	x2, x25
	bl	_eap_pwd_h_update
	sub	x1, x29, #92
	mov	x0, x24
	mov	w2, #4
	bl	_eap_pwd_h_update
	mov	x0, x24
	mov	x1, x22
	bl	_eap_pwd_h_final
	ldr	w2, [x28]
	mov	x0, x22
	mov	x1, x23
	bl	_os_memcmp_const
	cbz	x0, LBB0_14
; %bb.6:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x9]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x19, x8, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
	mov	x20, #0
	mov	x24, #0
	lsl	x19, x26, #1
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_wpa_printf
LBB0_10:
	mov	x24, #0
	b	LBB0_12
LBB0_11:
Lloh25:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_bin_clear_free
	mov	x0, x24
	mov	x1, #0
	bl	_eap_pwd_h_final
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh33:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x21, #32]
	ldp	w2, w1, [x21, #20]
	ldp	w5, w3, [x21, #12]
	ldp	w8, w7, [x21, #4]
	ldr	w9, [x21]
	stp	w8, w9, [sp, #-16]!
	sub	x6, x29, #92
	mov	x4, x22
	bl	_compute_keys
	add	sp, sp, #16
	tbnz	x0, #63, LBB0_16
; %bb.15:
Lloh38:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh40:
	adrp	x8, _FAILURE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_eap_pwd_state
	b	LBB0_10
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-pwd: Unexpected Confirm payload length %u (expected %u)"

	.comm	_EAP_PWD_DEFAULT_RAND_FUNC,4,2  ; @EAP_PWD_DEFAULT_RAND_FUNC
	.comm	_EAP_PWD_DEFAULT_PRF,4,2        ; @EAP_PWD_DEFAULT_PRF
l_.str.1:                               ; @.str.1
	.asciz	"EAP-PWD (peer): allocation fail"

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

l_.str.3:                               ; @.str.3
	.asciz	"EAP-PWD (server): confirm did not verify"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"EAP-pwd (server): confirm verified"

	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_eap_pwd_process_confirm_resp
.subsections_via_symbols
