	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_pkex_build_commit_reveal_req
_dpp_pkex_build_commit_reveal_req:      ## @dpp_pkex_build_commit_reveal_req
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movslq	(%r12), %rax
	movslq	4(%r12), %rcx
	leaq	(%rcx,%rax,2), %rbx
	leaq	(%rcx,%rax,2), %rdi
	addq	$8, %rdi
	callq	_wpabuf_alloc
	movq	%rax, %r15
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$12, %rsi
	movq	_DPP_PA_PKEX_COMMIT_REVEAL_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dpp_alloc_msg
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	_DPP_ATTR_BOOTSTRAP_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_le16
	movq	%r13, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_le16
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put_buf
	movq	_DPP_ATTR_I_AUTH_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_le16
	movl	4(%r12), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_le16
	movl	4(%r12), %edx
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_wpabuf_put_data
	movq	%r14, %rdi
	callq	_wpabuf_head_u8
	leaq	8(%rax), %rdx
	movq	%rdx, -64(%rbp)
	movq	_DPP_HDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, -80(%rbp)
	movl	$0, -92(%rbp)
	leaq	-92(%rbp), %rbx
	movq	%rbx, -56(%rbp)
	movq	$4, -72(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_wpa_hexdump
	movq	_DPP_ATTR_WRAPPED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_le16
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	addl	(%rbx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_le16
	movq	%r15, %rdi
	callq	_wpabuf_len
	addl	(%rbx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ebx
	movl	4(%r12), %r13d
	movq	%r15, %rdi
	callq	_wpabuf_head
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_wpabuf_len
	leaq	-80(%rbp), %r10
	leaq	-64(%rbp), %r9
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	$2, %r8d
	pushq	%rbx
	pushq	%r10
	callq	_aes_siv_encrypt
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_wpabuf_len
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_wpabuf_free
	xorl	%r14d, %r14d
LBB0_4:
	movq	%r15, %rdi
	callq	_wpabuf_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_DPP_PA_PKEX_COMMIT_REVEAL_REQ,4,2 ## @DPP_PA_PKEX_COMMIT_REVEAL_REQ
	.comm	_DPP_ATTR_BOOTSTRAP_KEY,4,2     ## @DPP_ATTR_BOOTSTRAP_KEY
	.comm	_DPP_ATTR_I_AUTH_TAG,4,2        ## @DPP_ATTR_I_AUTH_TAG
	.comm	_DPP_HDR_LEN,8,3                ## @DPP_HDR_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DDP: AES-SIV AD[0]"

L_.str.1:                               ## @.str.1
	.asciz	"DDP: AES-SIV AD[1]"

	.comm	_DPP_ATTR_WRAPPED_DATA,4,2      ## @DPP_ATTR_WRAPPED_DATA
L_.str.2:                               ## @.str.2
	.asciz	"DPP: AES-SIV cleartext"

L_.str.3:                               ## @.str.3
	.asciz	"DPP: AES-SIV ciphertext"

	.comm	_DPP_STATUS_OK,4,2              ## @DPP_STATUS_OK
	.comm	_DPP_TEST_AFTER_WRAPPED_DATA_PKEX_CR_REQ,8,3 ## @DPP_TEST_AFTER_WRAPPED_DATA_PKEX_CR_REQ
	.comm	_DPP_TEST_INVALID_BOOTSTRAP_KEY_PKEX_CR_REQ,8,3 ## @DPP_TEST_INVALID_BOOTSTRAP_KEY_PKEX_CR_REQ
	.comm	_DPP_TEST_I_AUTH_TAG_MISMATCH_PKEX_CR_REQ,8,3 ## @DPP_TEST_I_AUTH_TAG_MISMATCH_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_BOOTSTRAP_KEY_PKEX_CR_REQ,8,3 ## @DPP_TEST_NO_BOOTSTRAP_KEY_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_I_AUTH_TAG_PKEX_CR_REQ,8,3 ## @DPP_TEST_NO_I_AUTH_TAG_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_WRAPPED_DATA_PKEX_CR_REQ,8,3 ## @DPP_TEST_NO_WRAPPED_DATA_PKEX_CR_REQ
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_dpp_test,8,3                   ## @dpp_test
	.no_dead_strip	_dpp_pkex_build_commit_reveal_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_pkex_build_commit_reveal_req
_dpp_pkex_build_commit_reveal_req:      ; @dpp_pkex_build_commit_reveal_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldpsw	x8, x9, [x24]
	add	x8, x9, x8, lsl #1
	add	x20, x8, #8
	mov	x0, x20
	bl	_wpabuf_alloc
	mov	x19, x0
Lloh3:
	adrp	x25, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x25]
	add	x8, x20, x8
	add	x1, x8, #4
Lloh5:
	adrp	x8, _DPP_PA_PKEX_COMMIT_REVEAL_REQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPP_PA_PKEX_COMMIT_REVEAL_REQ@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_dpp_alloc_msg
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _DPP_ATTR_BOOTSTRAP_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPP_ATTR_BOOTSTRAP_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_le16
	mov	x0, x23
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x19
	bl	_wpabuf_put_le16
	mov	x0, x19
	mov	x1, x23
	bl	_wpabuf_put_buf
Lloh11:
	adrp	x8, _DPP_ATTR_I_AUTH_TAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DPP_ATTR_I_AUTH_TAG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_le16
	ldr	w1, [x24, #4]
	mov	x0, x19
	bl	_wpabuf_put_le16
	ldr	w2, [x24, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_wpabuf_put_data
	mov	x0, x20
	bl	_wpabuf_head_u8
Lloh14:
	adrp	x8, _DPP_HDR_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DPP_HDR_LEN@GOTPAGEOFF]
	add	x2, x0, #8
Lloh16:
	ldr	x3, [x8]
	str	wzr, [sp, #4]
	add	x8, sp, #4
	stp	x2, x8, [sp, #24]
	mov	w8, #4
	stp	x3, x8, [sp, #8]
Lloh17:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	ldr	w0, [x26]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #4
	mov	w3, #4
	bl	_wpa_hexdump
Lloh23:
	adrp	x8, _DPP_ATTR_WRAPPED_DATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DPP_ATTR_WRAPPED_DATA@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x19
	bl	_wpabuf_len
	ldr	w8, [x25]
	add	w1, w8, w0
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x19
	bl	_wpabuf_len
	ldr	w8, [x25]
	add	w1, w8, w0
	mov	x0, x20
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x26]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
	ldr	w21, [x21]
	ldr	w23, [x24, #4]
	mov	x0, x19
	bl	_wpabuf_head
	mov	x24, x0
	mov	x0, x19
	bl	_wpabuf_len
	mov	x3, x0
	add	x5, sp, #24
	add	x6, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	w4, #2
	mov	x7, x22
	bl	_aes_siv_encrypt
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w21, [x26]
	mov	x0, x19
	bl	_wpabuf_len
	ldr	w8, [x25]
	add	w3, w8, w0
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_wpa_hexdump
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, #0
LBB0_4:
	mov	x0, x19
	bl	_wpabuf_free
	ldr	x8, [sp, #40]
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_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_DPP_PA_PKEX_COMMIT_REVEAL_REQ,4,2 ; @DPP_PA_PKEX_COMMIT_REVEAL_REQ
	.comm	_DPP_ATTR_BOOTSTRAP_KEY,4,2     ; @DPP_ATTR_BOOTSTRAP_KEY
	.comm	_DPP_ATTR_I_AUTH_TAG,4,2        ; @DPP_ATTR_I_AUTH_TAG
	.comm	_DPP_HDR_LEN,8,3                ; @DPP_HDR_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DDP: AES-SIV AD[0]"

l_.str.1:                               ; @.str.1
	.asciz	"DDP: AES-SIV AD[1]"

	.comm	_DPP_ATTR_WRAPPED_DATA,4,2      ; @DPP_ATTR_WRAPPED_DATA
l_.str.2:                               ; @.str.2
	.asciz	"DPP: AES-SIV cleartext"

l_.str.3:                               ; @.str.3
	.asciz	"DPP: AES-SIV ciphertext"

	.comm	_DPP_STATUS_OK,4,2              ; @DPP_STATUS_OK
	.comm	_DPP_TEST_AFTER_WRAPPED_DATA_PKEX_CR_REQ,8,3 ; @DPP_TEST_AFTER_WRAPPED_DATA_PKEX_CR_REQ
	.comm	_DPP_TEST_INVALID_BOOTSTRAP_KEY_PKEX_CR_REQ,8,3 ; @DPP_TEST_INVALID_BOOTSTRAP_KEY_PKEX_CR_REQ
	.comm	_DPP_TEST_I_AUTH_TAG_MISMATCH_PKEX_CR_REQ,8,3 ; @DPP_TEST_I_AUTH_TAG_MISMATCH_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_BOOTSTRAP_KEY_PKEX_CR_REQ,8,3 ; @DPP_TEST_NO_BOOTSTRAP_KEY_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_I_AUTH_TAG_PKEX_CR_REQ,8,3 ; @DPP_TEST_NO_I_AUTH_TAG_PKEX_CR_REQ
	.comm	_DPP_TEST_NO_WRAPPED_DATA_PKEX_CR_REQ,8,3 ; @DPP_TEST_NO_WRAPPED_DATA_PKEX_CR_REQ
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_dpp_test,8,3                   ; @dpp_test
	.no_dead_strip	_dpp_pkex_build_commit_reveal_req
.subsections_via_symbols
