	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_build_legacy_cred_params
_dpp_build_legacy_cred_params:          ## @dpp_build_legacy_cred_params
	.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	%rbx
	subq	$392, %rsp                      ## imm = 0x188
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_os_strlen
	cmpl	$63, %eax
	jg	LBB0_3
## %bb.2:
	movq	16(%rbx), %rbx
	movq	%rbx, %rdi
	callq	_os_strlen
	leaq	-416(%rbp), %r15
	movq	%r15, %rdi
	movl	$379, %esi                      ## imm = 0x17B
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_json_escape_string
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_str
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpabuf_put_str
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_str
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$379, %edx                      ## imm = 0x17B
	jmp	LBB0_5
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %edx
	leaq	-416(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$9, %esi
	movl	$4, %ecx
	callq	_wpa_snprintf_hex
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_str
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpabuf_put_str
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_str
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$9, %edx
LBB0_5:
	callq	_os_memset
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$392, %rsp                      ## imm = 0x188
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"pass\":\""

L_.str.1:                               ## @.str.1
	.asciz	"\""

L_.str.2:                               ## @.str.2
	.asciz	"\"psk_hex\":\""

	.no_dead_strip	_dpp_build_legacy_cred_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_build_legacy_cred_params
_dpp_build_legacy_cred_params:          ; @dpp_build_legacy_cred_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #448
	.cfi_def_cfa_offset 448
	stp	x28, x27, [sp, #400]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #416]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #432]            ; 16-byte Folded Spill
	add	x29, sp, #432
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x0, [x1, #16]
	cbz	x0, LBB0_3
; %bb.1:
	bl	_os_strlen
	cmp	w0, #63
	b.gt	LBB0_3
; %bb.2:
	ldr	x20, [x20, #16]
	mov	x0, x20
	bl	_os_strlen
	mov	x3, x0
	add	x0, sp, #13
	mov	w1, #379
	mov	x2, x20
	bl	_json_escape_string
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	add	x1, sp, #13
	mov	x0, x19
	bl	_wpabuf_put_str
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	add	x0, sp, #13
	mov	w1, #0
	mov	w2, #379
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w2, [x20]
	add	x0, sp, #13
	mov	w1, #9
	mov	w3, #4
	bl	_wpa_snprintf_hex
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	add	x1, sp, #13
	mov	x0, x19
	bl	_wpabuf_put_str
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpabuf_put_str
	add	x0, sp, #13
	mov	w1, #0
	mov	w2, #9
LBB0_5:
	bl	_os_memset
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #432]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #416]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #400]            ; 16-byte Folded Reload
	add	sp, sp, #448
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"pass\":\""

l_.str.1:                               ; @.str.1
	.asciz	"\""

l_.str.2:                               ; @.str.2
	.asciz	"\"psk_hex\":\""

	.no_dead_strip	_dpp_build_legacy_cred_params
.subsections_via_symbols
