	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp_autogen_bootstrap_key
_dpp_autogen_bootstrap_key:             ## @dpp_autogen_bootstrap_key
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	movl	$8, %edi
	callq	_os_zalloc
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r14
	movq	_DPP_BOOTSTRAP_QR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dpp_keygen
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_os_strlen
	movq	%rax, %r13
	addq	$9, %r13
	movq	%r13, %rdi
	callq	_os_malloc
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r12, %rcx
	callq	_os_snprintf
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, (%r15)
	movq	%r14, 8(%r15)
	movq	%r12, %rdi
	callq	_os_free
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	callq	_os_free
	movq	%r14, %rdi
	callq	_dpp_bootstrap_info_free
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_BOOTSTRAP_QR_CODE,4,2      ## @DPP_BOOTSTRAP_QR_CODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPP:K:%s;;"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"DPP: Auto-generated own bootstrapping key info: URI %s"

	.no_dead_strip	_dpp_autogen_bootstrap_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp_autogen_bootstrap_key
_dpp_autogen_bootstrap_key:             ; @dpp_autogen_bootstrap_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	mov	w0, #8
	bl	_os_zalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh0:
	adrp	x8, _DPP_BOOTSTRAP_QR_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPP_BOOTSTRAP_QR_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	bl	_dpp_keygen
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_os_strlen
	add	x22, x0, #9
	mov	x0, x22
	bl	_os_malloc
	str	w0, [x20]
	cbz	w0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x22
	mov	x3, x21
	bl	_os_snprintf
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	stp	x20, x20, [x19]
	mov	x0, x21
	bl	_os_free
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_os_free
	mov	x0, x20
	bl	_dpp_bootstrap_info_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_BOOTSTRAP_QR_CODE,4,2      ; @DPP_BOOTSTRAP_QR_CODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPP:K:%s;;"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"DPP: Auto-generated own bootstrapping key info: URI %s"

	.no_dead_strip	_dpp_autogen_bootstrap_key
.subsections_via_symbols
