	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_build_conf_resp
_dpp_build_conf_resp:                   ## @dpp_build_conf_resp
	.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	%edx, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%ecx, %esi
	callq	_dpp_build_conf_obj
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_wpabuf_head
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_wpabuf_len
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii
	movq	_DPP_STATUS_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, (%r14)
	movslq	%r13d, %r14
	movq	%rbx, %rdi
	callq	_wpabuf_len
	cltq
	leaq	(%r14,%rax), %rbx
	addq	$8, %rbx
	jmp	LBB0_3
LBB0_1:
	movq	_DPP_STATUS_CONFIGURE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, (%r14)
	leal	4(%r13), %eax
	movslq	%eax, %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_wpabuf_alloc
	movq	%rax, %r14
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rbx,%rax), %rdi
	addq	$9, %rdi
	callq	_wpabuf_alloc
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	testq	%r15, %r15
	je	LBB0_11
## %bb.5:
	movq	_DPP_ATTR_ENROLLEE_NONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_le16
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_wpabuf_put_le16
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_wpabuf_put_data
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	_DPP_ATTR_CONFIG_OBJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_le16
	movq	%rbx, %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_le16
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_put_buf
LBB0_7:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_dpp_build_attr_status
	movq	%r15, %rdi
	callq	_wpabuf_head
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	callq	_wpabuf_len
	movslq	%eax, %rcx
	movq	%rcx, -64(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	_DPP_ATTR_WRAPPED_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wpabuf_put_le16
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	addl	(%rbx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_le16
	movq	%r14, %rdi
	callq	_wpabuf_len
	addl	(%rbx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_wpa_hexdump_buf
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %ebx
	movq	8(%rax), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	-64(%rbp), %r10
	leaq	-56(%rbp), %r9
	movl	%ebx, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	movl	$1, %r8d
	pushq	%rbx
	pushq	%r10
	callq	_aes_siv_encrypt
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_11
## %bb.8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	leaq	L_.str.3(%rip), %rsi
	movl	%r13d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_buf
	jmp	LBB0_9
LBB0_11:
	movq	%r15, %rdi
	callq	_wpabuf_free
	xorl	%r15d, %r15d
LBB0_9:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_wpabuf_free
	movq	%r14, %rdi
	callq	_wpabuf_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP: configurationObject JSON"

	.comm	_DPP_STATUS_OK,4,2              ## @DPP_STATUS_OK
	.comm	_DPP_STATUS_CONFIGURE_FAILURE,4,2 ## @DPP_STATUS_CONFIGURE_FAILURE
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_DPP_ATTR_ENROLLEE_NONCE,4,2    ## @DPP_ATTR_ENROLLEE_NONCE
	.comm	_DPP_ATTR_CONFIG_OBJ,4,2        ## @DPP_ATTR_CONFIG_OBJ
L_.str.1:                               ## @.str.1
	.asciz	"DDP: AES-SIV AD"

	.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"

L_.str.4:                               ## @.str.4
	.asciz	"DPP: Configuration Response attributes"

	.comm	_DPP_TEST_AFTER_WRAPPED_DATA_CONF_RESP,8,3 ## @DPP_TEST_AFTER_WRAPPED_DATA_CONF_RESP
	.comm	_DPP_TEST_E_NONCE_MISMATCH_CONF_RESP,8,3 ## @DPP_TEST_E_NONCE_MISMATCH_CONF_RESP
	.comm	_DPP_TEST_INVALID_STATUS_CONF_RESP,8,3 ## @DPP_TEST_INVALID_STATUS_CONF_RESP
	.comm	_DPP_TEST_NO_CONFIG_OBJ_CONF_RESP,8,3 ## @DPP_TEST_NO_CONFIG_OBJ_CONF_RESP
	.comm	_DPP_TEST_NO_E_NONCE_CONF_RESP,8,3 ## @DPP_TEST_NO_E_NONCE_CONF_RESP
	.comm	_DPP_TEST_NO_STATUS_CONF_RESP,8,3 ## @DPP_TEST_NO_STATUS_CONF_RESP
	.comm	_DPP_TEST_NO_WRAPPED_DATA_CONF_RESP,8,3 ## @DPP_TEST_NO_WRAPPED_DATA_CONF_RESP
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_dpp_test,8,3                   ## @dpp_test
	.no_dead_strip	_dpp_build_conf_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_build_conf_resp
_dpp_build_conf_resp:                   ; @dpp_build_conf_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x24, 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, #24]
	mov	x1, x3
	bl	_dpp_build_conf_obj
	mov	x19, x0
Lloh3:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x26]
	mov	x0, x19
	bl	_wpabuf_head
	mov	x22, x0
	mov	x0, x19
	bl	_wpabuf_len
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_wpa_hexdump_ascii
Lloh7:
	adrp	x8, _DPP_STATUS_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DPP_STATUS_OK@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
	str	w25, [x21]
	add	w20, w23, #4
	mov	x0, x19
	bl	_wpabuf_len
	add	w8, w0, #4
	sxtw	x8, w8
	add	x22, x8, w20, sxtw
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _DPP_STATUS_CONFIGURE_FAILURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DPP_STATUS_CONFIGURE_FAILURE@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	str	w25, [x21]
	add	w8, w23, #4
	sxtw	x22, w8
LBB0_3:
	mov	x0, x22
	bl	_wpabuf_alloc
	mov	x20, x0
Lloh13:
	adrp	x27, _AES_BLOCK_SIZE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x27]
	add	x8, x22, x8
	add	x0, x8, #9
	bl	_wpabuf_alloc
	mov	x22, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_8
; %bb.4:
Lloh15:
	adrp	x8, _DPP_ATTR_ENROLLEE_NONCE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DPP_ATTR_ENROLLEE_NONCE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x20
	mov	x1, x23
	bl	_wpabuf_put_le16
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_wpabuf_put_data
	cbz	x19, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _DPP_ATTR_CONFIG_OBJ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DPP_ATTR_CONFIG_OBJ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x19
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put_le16
	mov	x0, x20
	mov	x1, x19
	bl	_wpabuf_put_buf
LBB0_6:
	mov	x0, x22
	mov	x1, x25
	bl	_dpp_build_attr_status
	mov	x0, x22
	bl	_wpabuf_head
	mov	x23, x0
	str	x0, [sp, #16]
	mov	x0, x22
	bl	_wpabuf_len
	mov	x3, x0
	sxtw	x8, w3
	str	x8, [sp, #8]
	ldr	w0, [x26]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
                                        ; kill: def $w3 killed $w3 killed $x3
	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, x22
	bl	_wpabuf_put_le16
	mov	x0, x20
	bl	_wpabuf_len
	ldr	w8, [x27]
	add	w1, w8, w0
	mov	x0, x22
	bl	_wpabuf_put_le16
	mov	x0, x20
	bl	_wpabuf_len
	ldr	w8, [x27]
	add	w1, w8, w0
	mov	x0, x22
	bl	_wpabuf_put
	mov	x23, x0
	ldr	w0, [x26]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_buf
	ldr	w24, [x21, #16]
	ldr	x8, [x21, #8]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_wpabuf_head
	mov	x25, x0
	mov	x0, x20
	bl	_wpabuf_len
	mov	x3, x0
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x0, x24
	mov	x1, x21
	mov	x2, x25
	mov	w4, #1
	mov	x7, x23
	bl	_aes_siv_encrypt
	tbnz	x0, #63, LBB0_8
; %bb.7:
	ldr	w21, [x26]
	mov	x0, x20
	bl	_wpabuf_len
	ldr	w8, [x27]
	add	w3, w8, w0
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_wpa_hexdump
	ldr	w0, [x26]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x22
	bl	_wpa_hexdump_buf
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_wpabuf_free
	mov	x22, #0
LBB0_9:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x0, x20
	bl	_wpabuf_free
	ldr	x8, [sp, #24]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x22
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP: configurationObject JSON"

	.comm	_DPP_STATUS_OK,4,2              ; @DPP_STATUS_OK
	.comm	_DPP_STATUS_CONFIGURE_FAILURE,4,2 ; @DPP_STATUS_CONFIGURE_FAILURE
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_DPP_ATTR_ENROLLEE_NONCE,4,2    ; @DPP_ATTR_ENROLLEE_NONCE
	.comm	_DPP_ATTR_CONFIG_OBJ,4,2        ; @DPP_ATTR_CONFIG_OBJ
l_.str.1:                               ; @.str.1
	.asciz	"DDP: AES-SIV AD"

	.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"

l_.str.4:                               ; @.str.4
	.asciz	"DPP: Configuration Response attributes"

	.comm	_DPP_TEST_AFTER_WRAPPED_DATA_CONF_RESP,8,3 ; @DPP_TEST_AFTER_WRAPPED_DATA_CONF_RESP
	.comm	_DPP_TEST_E_NONCE_MISMATCH_CONF_RESP,8,3 ; @DPP_TEST_E_NONCE_MISMATCH_CONF_RESP
	.comm	_DPP_TEST_INVALID_STATUS_CONF_RESP,8,3 ; @DPP_TEST_INVALID_STATUS_CONF_RESP
	.comm	_DPP_TEST_NO_CONFIG_OBJ_CONF_RESP,8,3 ; @DPP_TEST_NO_CONFIG_OBJ_CONF_RESP
	.comm	_DPP_TEST_NO_E_NONCE_CONF_RESP,8,3 ; @DPP_TEST_NO_E_NONCE_CONF_RESP
	.comm	_DPP_TEST_NO_STATUS_CONF_RESP,8,3 ; @DPP_TEST_NO_STATUS_CONF_RESP
	.comm	_DPP_TEST_NO_WRAPPED_DATA_CONF_RESP,8,3 ; @DPP_TEST_NO_WRAPPED_DATA_CONF_RESP
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_dpp_test,8,3                   ; @dpp_test
	.no_dead_strip	_dpp_build_conf_resp
.subsections_via_symbols
