	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dpp_build_conf_result
LCPI0_0:
	.quad	6                               ## 0x6
	.quad	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dpp_build_conf_result
	.p2align	4, 0x90
_dpp_build_conf_result:                 ## @dpp_build_conf_result
	.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
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r15
	leaq	9(%r15), %rdi
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r15,%rax), %rbx
	addq	$13, %rbx
	callq	_wpabuf_alloc
	movq	%rax, %r12
	movq	_DPP_PA_CONFIGURATION_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_dpp_alloc_msg
	movq	%rax, %r14
	xorl	%eax, %eax
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_dpp_build_attr_status
	movq	_DPP_ATTR_ENROLLEE_NONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wpabuf_put_le16
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_wpabuf_put_le16
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_wpabuf_put_data
	movq	%r14, %rdi
	callq	_wpabuf_head_u8
	leaq	8(%rax), %rdx
	movq	%rdx, -64(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$6, %ecx
	callq	_wpa_hexdump
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	movq	%rax, -56(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [6,0]
	movaps	%xmm0, -96(%rbp)
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_wpa_hexdump
	movq	_DPP_ATTR_WRAPPED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_le16
	movq	%r12, %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	%r12, %rdi
	callq	_wpabuf_len
	addl	(%rbx), %eax
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump_buf
	movq	%r13, %rax
	movl	8(%r13), %r13d
	movq	(%rax), %rax
	movl	8(%rax), %ebx
	movq	%r12, %rdi
	callq	_wpabuf_head
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_wpabuf_len
	leaq	-96(%rbp), %r10
	leaq	-64(%rbp), %r9
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	$2, %r8d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_aes_siv_encrypt
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_buf
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_wpabuf_free
	movq	%r14, %r12
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r12, %rdi
	callq	_wpabuf_free
	movq	%r14, %rax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_DPP_PA_CONFIGURATION_RESULT,4,2 ## @DPP_PA_CONFIGURATION_RESULT
	.comm	_DPP_ATTR_ENROLLEE_NONCE,4,2    ## @DPP_ATTR_ENROLLEE_NONCE
	.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: Configuration Result attributes"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function dpp_build_conf_result
lCPI0_0:
	.quad	6                               ; 0x6
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_dpp_build_conf_result
	.p2align	2
_dpp_build_conf_result:                 ; @dpp_build_conf_result
	.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	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]
	ldr	x22, [x8]
	add	x0, x22, #9
Lloh3:
	adrp	x24, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x8, x22, x8
	add	x19, x8, #13
	bl	_wpabuf_alloc
	mov	x20, x0
Lloh5:
	adrp	x8, _DPP_PA_CONFIGURATION_RESULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPP_PA_CONFIGURATION_RESULT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_dpp_alloc_msg
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_6
LBB0_2:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x23
	bl	_dpp_build_attr_status
Lloh8:
	adrp	x8, _DPP_ATTR_ENROLLEE_NONCE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DPP_ATTR_ENROLLEE_NONCE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_le16
	ldr	w1, [x21, #12]
	mov	x0, x20
	mov	x2, x22
	bl	_wpabuf_put_data
	mov	x0, x19
	bl	_wpabuf_head_u8
	add	x2, x0, #8
	str	x2, [sp, #24]
Lloh11:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #6
	bl	_wpa_hexdump
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	mov	x2, x0
	str	x0, [sp, #32]
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	ldr	w0, [x25]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, #0
	bl	_wpa_hexdump
Lloh19:
	adrp	x8, _DPP_ATTR_WRAPPED_DATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DPP_ATTR_WRAPPED_DATA@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_le16
	mov	x0, x20
	bl	_wpabuf_len
	ldr	w8, [x24]
	add	w1, w8, w0
	mov	x0, x19
	bl	_wpabuf_put_le16
	mov	x0, x20
	bl	_wpabuf_len
	ldr	w8, [x24]
	add	w1, w8, w0
	mov	x0, x19
	bl	_wpabuf_put
	mov	x22, x0
	ldr	w0, [x25]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf
	ldr	w23, [x21, #8]
	ldr	x8, [x21]
	ldr	w21, [x8, #8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x24, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x3, x0
	add	x5, sp, #24
	mov	x6, sp
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	mov	w4, #2
	mov	x7, x22
	bl	_aes_siv_encrypt
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x25]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_buf
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_wpabuf_free
	mov	x20, x19
	mov	x19, #0
LBB0_5:
	mov	x0, x20
	bl	_wpabuf_free
LBB0_6:
	ldr	x8, [sp, #40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_DPP_PA_CONFIGURATION_RESULT,4,2 ; @DPP_PA_CONFIGURATION_RESULT
	.comm	_DPP_ATTR_ENROLLEE_NONCE,4,2    ; @DPP_ATTR_ENROLLEE_NONCE
	.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: Configuration Result attributes"

.subsections_via_symbols
