	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_auth_derive_l_initiator
_dpp_auth_derive_l_initiator:           ## @dpp_auth_derive_l_initiator
	.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	%rdi, %r15
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_EVP_PKEY_get1_EC_KEY
	movq	%rax, %r13
	movl	24(%r15), %edi
	callq	_EVP_PKEY_get1_EC_KEY
	testq	%r13, %r13
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%r13, %rdi
	callq	_EC_KEY_get0_public_key
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_EC_KEY_get0_public_key
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_EVP_PKEY_get1_EC_KEY
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r14
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_EC_KEY_get0_group
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_EC_KEY_get0_private_key
	testq	%r12, %r12
	je	LBB0_12
## %bb.13:
	testq	%rax, %rax
	je	LBB0_12
## %bb.14:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_EC_POINT_new
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_EC_POINT_new
	testq	%rbx, %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.15:
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_EC_POINT_add
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.17:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_EC_POINT_mul
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_EC_POINT_get_affine_coordinates_GFp
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.20:
	movl	(%r15), %edx
	movl	8(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dpp_bn2bin_pad
	testq	%rax, %rax
	js	LBB0_21
## %bb.22:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %ecx
	movl	8(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_1:
	xorl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%rax, %r12
	movl	$-1, %r15d
	jmp	LBB0_24
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_8:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_9:
	xorl	%edi, %edi
LBB0_10:
	movl	$-1, %r15d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_24:
	callq	_EC_POINT_clear_free
	movq	%rbx, %rdi
	callq	_EC_POINT_clear_free
	movq	%r14, %rdi
	callq	_EC_KEY_free
	movq	%r13, %rdi
	callq	_EC_KEY_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_EC_KEY_free
	movq	%r12, %rdi
	callq	_BN_clear_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%edi, %edi
	movl	$-1, %r15d
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_19:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_ERR_get_error
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ERR_error_string
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_wpa_printf
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_21:
	movl	$-1, %r15d
LBB0_23:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OpenSSL: failed: %s"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: L.x"

	.no_dead_strip	_dpp_auth_derive_l_initiator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_auth_derive_l_initiator
_dpp_auth_derive_l_initiator:           ; @dpp_auth_derive_l_initiator
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x25, x0
	bl	_BN_CTX_new
	mov	x19, x0
	bl	_BN_new
	mov	x20, x0
	mov	x21, #0
	mov	w27, #-1
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	mov	x26, #0
	cbz	x19, LBB0_16
; %bb.1:
	cbz	x20, LBB0_16
; %bb.2:
	ldr	x8, [x25, #32]
	ldr	w0, [x8]
	bl	_EVP_PKEY_get1_EC_KEY
	mov	x22, x0
	ldr	w0, [x25, #24]
	bl	_EVP_PKEY_get1_EC_KEY
	mov	x21, x0
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x23, #0
	b	LBB0_14
LBB0_4:
	mov	x0, x22
	bl	_EC_KEY_get0_public_key
	mov	x26, x0
	mov	x0, x21
	bl	_EC_KEY_get0_public_key
	mov	x24, x0
	ldr	x8, [x25, #16]
	ldr	w0, [x8]
	bl	_EVP_PKEY_get1_EC_KEY
	mov	x23, x0
	cbz	x0, LBB0_14
; %bb.5:
	str	x24, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x23
	bl	_EC_KEY_get0_group
	mov	x28, x0
	mov	x0, x23
	bl	_EC_KEY_get0_private_key
	mov	x24, #0
	mov	w27, #-1
	cbz	x28, LBB0_17
; %bb.6:
	cbz	x0, LBB0_17
; %bb.7:
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x27, x26
	mov	x0, x28
	bl	_EC_POINT_new
	mov	x24, x0
	mov	x0, x28
	bl	_EC_POINT_new
	mov	x26, x0
	cbz	x24, LBB0_18
; %bb.8:
	cbz	x26, LBB0_18
; %bb.9:
	mov	x0, x28
	mov	x1, x24
	mov	x2, x27
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	mov	x4, x19
	bl	_EC_POINT_add
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.10:
	mov	x0, x28
	mov	x1, x26
	mov	x2, #0
	mov	x3, x24
	ldr	x4, [sp]                        ; 8-byte Folded Reload
	mov	x5, x19
	bl	_EC_POINT_mul
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.11:
	mov	x0, x28
	mov	x1, x26
	mov	x2, x20
	mov	x3, #0
	mov	x4, x19
	bl	_EC_POINT_get_affine_coordinates_GFp
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.12:
	ldr	w1, [x25, #8]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_dpp_bn2bin_pad
	tbnz	x0, #63, LBB0_15
; %bb.13:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x25, #8]
	ldr	w3, [x25]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
	mov	w27, #0
	ldr	w8, [x25]
	str	w8, [x25, #4]
	b	LBB0_16
LBB0_14:
	mov	x24, #0
	mov	x26, #0
LBB0_15:
	mov	w27, #-1
LBB0_16:
	mov	x0, x26
	bl	_EC_POINT_clear_free
	mov	x0, x24
	bl	_EC_POINT_clear_free
	mov	x0, x23
	bl	_EC_KEY_free
	mov	x0, x22
	bl	_EC_KEY_free
	mov	x0, x21
	bl	_EC_KEY_free
	mov	x0, x20
	bl	_BN_clear_free
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x26, x24
	b	LBB0_16
LBB0_18:
Lloh5:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w25, [x8]
	bl	_ERR_get_error
	mov	x1, #0
	bl	_ERR_error_string
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x25
	bl	_wpa_printf
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OpenSSL: failed: %s"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: L.x"

	.no_dead_strip	_dpp_auth_derive_l_initiator
.subsections_via_symbols
