	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_auth_init                  ## -- Begin function dpp_auth_init
	.p2align	4, 0x90
_dpp_auth_init:                         ## @dpp_auth_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$96, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 88(%rax)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movl	%r14d, 8(%rbx)
	movq	_DPP_CAPAB_CONFIGURATOR@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %r14d
	setne	%cl
	movl	%ecx, 12(%rbx)
	movq	%r12, 64(%rbx)
	movq	%r13, 56(%rbx)
	movq	16(%r12), %rax
	movq	%rax, 48(%rbx)
	movq	%rbx, %rdi
	callq	_dpp_autogen_bootstrap_key
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movl	16(%rbp), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dpp_prepare_channel_list
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	16(%rbx), %rdi
	movq	48(%rbx), %rax
	movq	(%rax), %r12
	movq	%r12, %rsi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%rbx, %rdi
	callq	_dpp_auth_deinit
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_wpabuf_free
	jmp	LBB0_14
LBB0_1:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	16(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rcx
	callq	_wpa_hexdump
	movq	48(%rbx), %rdi
	callq	_dpp_gen_keypair
	movq	%rax, 80(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_dpp_get_pubkey_point
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r15
	movq	80(%rbx), %rdi
	movq	64(%rbx), %rax
	movl	8(%rax), %esi
	movl	76(%rbx), %edx
	leaq	-64(%rbp), %rcx
	callq	_dpp_ecdh
	testq	%rax, %rax
	js	LBB0_7
## %bb.11:
	movq	-64(%rbp), %rcx
	movq	%rcx, 24(%rbx)
	movl	(%r14), %edi
	movl	76(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	24(%rbx), %rsi
	movq	48(%rbx), %rax
	movq	%rsi, 32(%rbx)
	movl	76(%rbx), %edi
	movl	72(%rbx), %edx
	movl	12(%rax), %ecx
	callq	_dpp_derive_k1
	testq	%rax, %rax
	js	LBB0_7
## %bb.12:
	movq	56(%rbx), %rax
	movq	64(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_dpp_auth_build_req
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_CAPAB_CONFIGURATOR,4,2     ## @DPP_CAPAB_CONFIGURATOR
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: Failed to generate I-nonce"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: I-nonce"

L_.str.2:                               ## @.str.2
	.asciz	"DPP: ECDH shared secret (M.x)"

	.comm	_DPP_TEST_INVALID_I_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ## @DPP_TEST_INVALID_I_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_INVALID_I_PROTO_KEY_AUTH_REQ,8,3 ## @DPP_TEST_INVALID_I_PROTO_KEY_AUTH_REQ
	.comm	_DPP_TEST_INVALID_R_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ## @DPP_TEST_INVALID_R_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_NO_I_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ## @DPP_TEST_NO_I_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_NO_I_PROTO_KEY_AUTH_REQ,8,3 ## @DPP_TEST_NO_I_PROTO_KEY_AUTH_REQ
	.comm	_DPP_TEST_NO_R_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ## @DPP_TEST_NO_R_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_dpp_nonce_override,8,3         ## @dpp_nonce_override
	.comm	_dpp_nonce_override_len,8,3     ## @dpp_nonce_override_len
	.comm	_dpp_protocol_key_override,4,2  ## @dpp_protocol_key_override
	.comm	_dpp_protocol_key_override_len,8,3 ## @dpp_protocol_key_override_len
	.comm	_dpp_test,8,3                   ## @dpp_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp_auth_init                  ; -- Begin function dpp_auth_init
	.p2align	2
_dpp_auth_init:                         ; @dpp_auth_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x6
	mov	x22, x5
	mov	x20, x4
	mov	x25, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	mov	w0, #96
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	str	x26, [x19, #88]
	movi.2s	v0, #1
	str	d0, [x19]
Lloh0:
	adrp	x8, _DPP_CAPAB_CONFIGURATOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPP_CAPAB_CONFIGURATOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w25
	cset	w8, ne
	stp	w25, w8, [x19, #8]
	str	x24, [x19, #64]
	ldr	x8, [x24, #16]
	stp	x8, x23, [x19, #48]
	mov	x0, x19
	bl	_dpp_autogen_bootstrap_key
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_dpp_prepare_channel_list
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldr	x8, [x19, #48]
	ldr	x22, [x8]
	ldr	x0, [x19, #16]
	mov	x1, x22
	bl	_random_get_bytes
	cbz	x0, LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x19
	bl	_dpp_auth_deinit
	mov	x19, #0
LBB0_7:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_9:
Lloh8:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x2, [x19, #16]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_wpa_hexdump
	ldr	x0, [x19, #48]
	bl	_dpp_gen_keypair
	str	x0, [x19, #80]
	cbz	x0, LBB0_5
; %bb.10:
	mov	w1, #0
	bl	_dpp_get_pubkey_point
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.11:
	ldr	x0, [x19, #80]
	ldr	x8, [x19, #64]
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #76]
	add	x3, sp, #8
	bl	_dpp_ecdh
	tbnz	x0, #63, LBB0_6
; %bb.12:
	ldr	x3, [sp, #8]
	str	x3, [x19, #24]
	ldr	w0, [x23]
	ldr	w2, [x19, #76]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x1, [x19, #24]
	str	x1, [x19, #32]
	ldp	w2, w0, [x19, #72]
	ldr	x8, [x19, #48]
	ldr	w3, [x8, #12]
	bl	_dpp_derive_k1
	tbnz	x0, #63, LBB0_6
; %bb.13:
	ldp	x9, x8, [x19, #56]
	ldr	x3, [x8]
	ldr	x4, [x9]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x5, x20
	bl	_dpp_auth_build_req
	str	w0, [x19, #40]
	cbnz	w0, LBB0_7
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_CAPAB_CONFIGURATOR,4,2     ; @DPP_CAPAB_CONFIGURATOR
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: Failed to generate I-nonce"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: I-nonce"

l_.str.2:                               ; @.str.2
	.asciz	"DPP: ECDH shared secret (M.x)"

	.comm	_DPP_TEST_INVALID_I_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ; @DPP_TEST_INVALID_I_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_INVALID_I_PROTO_KEY_AUTH_REQ,8,3 ; @DPP_TEST_INVALID_I_PROTO_KEY_AUTH_REQ
	.comm	_DPP_TEST_INVALID_R_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ; @DPP_TEST_INVALID_R_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_NO_I_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ; @DPP_TEST_NO_I_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_DPP_TEST_NO_I_PROTO_KEY_AUTH_REQ,8,3 ; @DPP_TEST_NO_I_PROTO_KEY_AUTH_REQ
	.comm	_DPP_TEST_NO_R_BOOTSTRAP_KEY_HASH_AUTH_REQ,8,3 ; @DPP_TEST_NO_R_BOOTSTRAP_KEY_HASH_AUTH_REQ
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_dpp_nonce_override,8,3         ; @dpp_nonce_override
	.comm	_dpp_nonce_override_len,8,3     ; @dpp_nonce_override_len
	.comm	_dpp_protocol_key_override,4,2  ; @dpp_protocol_key_override
	.comm	_dpp_protocol_key_override_len,8,3 ; @dpp_protocol_key_override_len
	.comm	_dpp_test,8,3                   ; @dpp_test
.subsections_via_symbols
