	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_eke_build_confirm
_eap_eke_build_confirm:                 ## @eap_eke_build_confirm
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_EKE_MAX_NONCE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	8(%rbx), %rdx
	addq	(%rbx), %rdx
	movq	_EAP_EKE_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_eap_eke_build_msg
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	16(%rbx), %esi
	movl	28(%rbx), %edi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_wpabuf_free
LBB0_1:
	movq	_EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_eke_fail
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_eap_eke_build_failure
	movq	%rax, %r15
	jmp	LBB0_10
LBB0_4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %ecx
	movl	28(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	16(%rbx), %edx
	movl	32(%rbx), %esi
	movq	%r13, %rdi
	callq	_os_memcpy
	movslq	16(%rbx), %rdx
	leaq	(,%rdx,4), %rdi
	addq	%r13, %rdi
	movl	28(%rbx), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movq	%r15, %rdi
	callq	_wpabuf_tailroom
	movq	%rax, -64(%rbp)
	movl	16(%rbx), %r12d
	addl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_eap_eke_prot
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	40(%rbx), %ecx
	movl	36(%rbx), %r8d
	movl	28(%rbx), %eax
	movl	32(%rbx), %r9d
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%rax
	callq	_eap_eke_derive_ka
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_5
## %bb.7:
	movq	8(%rbx), %rsi
	movq	%r15, %rdi
	callq	_wpabuf_put
	movq	%rax, %r12
	movl	24(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rcx
	callq	_eap_eke_auth
	testq	%rax, %rax
	js	LBB0_5
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump
	jmp	LBB0_9
LBB0_5:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	_EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_eap_eke_fail
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_eap_eke_build_failure
	movq	%rax, %r15
LBB0_9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_10:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_EKE_MAX_NONCE_LEN,4,2      ## @EAP_EKE_MAX_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-EKE: Request/Confirm"

	.comm	_EAP_EKE_CONFIRM,4,2            ## @EAP_EKE_CONFIRM
	.comm	_EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR,4,2 ## @EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: Nonce_S"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-EKE server"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-EKE: Auth_S"

	.no_dead_strip	_eap_eke_build_confirm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_eke_build_confirm
_eap_eke_build_confirm:                 ; @eap_eke_build_confirm
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _EAP_EKE_MAX_NONCE_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_EKE_MAX_NONCE_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	lsl	x8, x8, #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	x23, x9, x8
	mov	sp, x23
Lloh8:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	x8, x9, [x20]
	add	x2, x9, x8
Lloh12:
	adrp	x8, _EAP_EKE_CONFIRM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_EKE_CONFIRM@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_eap_eke_build_msg
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #28]
	ldr	w1, [x20, #16]
	bl	_random_get_bytes
	cbz	x0, LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_3:
Lloh15:
	adrp	x8, _EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_eap_eke_fail
	mov	x0, x20
	mov	x1, x19
	bl	_eap_eke_build_failure
	mov	x21, x0
LBB0_4:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x26]
	ldr	w2, [x20, #28]
	ldr	w3, [x20, #16]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w1, [x20, #32]
	ldr	w2, [x20, #16]
	mov	x0, x23
	bl	_os_memcpy
	ldrsw	x2, [x20, #16]
	add	x0, x23, x2, lsl #2
	ldr	w1, [x20, #28]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	mov	x0, x21
	bl	_wpabuf_tailroom
	stur	x0, [x29, #-80]
	ldr	w8, [x20, #16]
	lsl	w24, w8, #1
	mov	x0, x21
	mov	x1, #0
	bl	_wpabuf_put
	mov	x3, x0
	sub	x4, x29, #80
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_eap_eke_prot
	tbnz	x0, #63, LBB0_2
; %bb.7:
	ldur	x1, [x29, #-80]
	mov	x0, x21
	bl	_wpabuf_put
	ldp	w2, w1, [x22]
	ldp	w4, w3, [x20, #36]
	ldp	w6, w5, [x20, #28]
	mov	x0, x20
	bl	_eap_eke_derive_ka
	tbnz	x0, #63, LBB0_2
; %bb.8:
	ldr	x1, [x20, #8]
	mov	x0, x21
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w2, [x20, #24]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_eap_eke_auth
	tbnz	x0, #63, LBB0_2
; %bb.9:
	ldr	w0, [x26]
	ldr	x3, [x20, #8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump
	b	LBB0_4
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_EKE_MAX_NONCE_LEN,4,2      ; @EAP_EKE_MAX_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE: Request/Confirm"

	.comm	_EAP_EKE_CONFIRM,4,2            ; @EAP_EKE_CONFIRM
	.comm	_EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR,4,2 ; @EAP_EKE_FAIL_PRIVATE_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: Nonce_S"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-EKE server"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-EKE: Auth_S"

	.no_dead_strip	_eap_eke_build_confirm
.subsections_via_symbols
