	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_ecdh
_dpp_ecdh:                              ## @dpp_ecdh
	.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	$808, %rsp                      ## imm = 0x328
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	$0, (%r12)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_PKEY_CTX_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_EVP_PKEY_derive_init
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_EVP_PKEY_derive_set_peer
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_EVP_PKEY_derive
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.8:
	movq	(%r12), %rdx
	movq	_DPP_MAX_SHARED_SECRET_LEN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jbe	LBB0_17
## %bb.9:
	cmpq	$201, %rdx
	jb	LBB0_10
## %bb.11:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_23
LBB0_3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_19
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_19
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_19
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_EVP_PKEY_derive
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_18
	jmp	LBB0_22
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wpa_printf
	cmpq	$200, (%r12)
	ja	LBB0_21
## %bb.13:
	leaq	-848(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_EVP_PKEY_derive
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.14:
	movq	(%r12), %rcx
	cmpq	(%rbx), %rcx
	jbe	LBB0_16
## %bb.15:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ecx, %edx
	jmp	LBB0_20
LBB0_18:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str.5(%rip), %rsi
LBB0_19:
	movl	%ebx, %edi
	movl	%eax, %edx
LBB0_20:
	callq	_wpa_printf
LBB0_21:
	movl	$-1, %ebx
LBB0_22:
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%ebx, %eax
	addq	$808, %rsp                      ## imm = 0x328
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	leaq	-848(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	movq	%rbx, %rdi
	movl	$800, %esi                      ## imm = 0x320
	callq	_forced_memzero
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: EVP_PKEY_CTX_new failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"DPP: EVP_PKEY_derive_init failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"DPP: EVP_PKEY_derive_set_peet failed: %s"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: EVP_PKEY_derive(NULL) failed: %s"

	.comm	_DPP_MAX_SHARED_SECRET_LEN,8,3  ## @DPP_MAX_SHARED_SECRET_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"DPP: Unexpected secret_len=%d from EVP_PKEY_derive()"

L_.str.5:                               ## @.str.5
	.asciz	"DPP: EVP_PKEY_derive failed: %s"

L_.str.6:                               ## @.str.6
	.asciz	"DPP: Unexpected secret_len change"

	.no_dead_strip	_dpp_ecdh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_ecdh
_dpp_ecdh:                              ; @dpp_ecdh
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #816
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_ERR_clear_error
	str	xzr, [x21]
	mov	x0, x19
	mov	x1, #0
	bl	_EVP_PKEY_CTX_new
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_EVP_PKEY_derive_init
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	bl	_EVP_PKEY_derive_set_peer
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.3:
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	bl	_EVP_PKEY_derive
	cmp	w0, #1
	b.ne	LBB0_12
; %bb.4:
	ldr	x2, [x21]
Lloh3:
	adrp	x22, _DPP_MAX_SHARED_SECRET_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _DPP_MAX_SHARED_SECRET_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x2, x8
	b.ls	LBB0_13
; %bb.5:
Lloh5:
	adrp	x23, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	cmp	x2, #200
	csel	x8, x23, x24, hi
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wpa_printf
	ldr	x8, [x21]
	cmp	x8, #200
	b.hi	LBB0_20
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_EVP_PKEY_derive
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.7:
	ldr	x3, [x21]
	ldr	x8, [x22]
	cmp	x3, x8
	b.ls	LBB0_24
; %bb.8:
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x3
	b	LBB0_19
LBB0_9:
Lloh13:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	mov	w20, #-1
	b	LBB0_22
LBB0_10:
Lloh18:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_11:
Lloh23:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_12:
Lloh28:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w20, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_EVP_PKEY_derive
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.14:
	mov	w20, #0
	b	LBB0_21
LBB0_15:
Lloh33:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
	b	LBB0_17
LBB0_16:
	ldr	w20, [x23]
LBB0_17:
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_18:
	mov	x0, x20
LBB0_19:
	bl	_wpa_printf
LBB0_20:
	mov	w20, #-1
LBB0_21:
	mov	x0, x19
	bl	_EVP_PKEY_CTX_free
LBB0_22:
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.23:
	mov	x0, x20
	add	sp, sp, #816
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_24:
	ldr	w0, [x24]
Lloh41:
	adrp	x1, l_.str.6@PAGE
Lloh42:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	bl	_wpa_hexdump_key
	ldr	x2, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_os_memcpy
	add	x0, sp, #8
	mov	w1, #800
	bl	_forced_memzero
	mov	w20, #0
	b	LBB0_21
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: EVP_PKEY_CTX_new failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"DPP: EVP_PKEY_derive_init failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"DPP: EVP_PKEY_derive_set_peet failed: %s"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: EVP_PKEY_derive(NULL) failed: %s"

	.comm	_DPP_MAX_SHARED_SECRET_LEN,8,3  ; @DPP_MAX_SHARED_SECRET_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"DPP: Unexpected secret_len=%d from EVP_PKEY_derive()"

l_.str.5:                               ; @.str.5
	.asciz	"DPP: EVP_PKEY_derive failed: %s"

l_.str.6:                               ; @.str.6
	.asciz	"DPP: Unexpected secret_len change"

	.no_dead_strip	_dpp_ecdh
.subsections_via_symbols
