	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_prov                       ## -- Begin function cmd_prov
	.p2align	4, 0x90
_cmd_prov:                              ## @cmd_prov
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_unlink
	leaq	L_.str.1(%rip), %rdi
	callq	_unlink
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	testq	%rax, %rax
	leaq	L_.str.4(%rip), %rcx
	cmovneq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	20(%r15), %edi
	callq	_os_free
	movq	%rbx, %rdi
	callq	_os_strdup
	movl	%eax, 20(%r15)
	movl	16(%r15), %edi
	movq	(%r15), %rdx
	movq	$0, (%rsp)
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_soap_init_client
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	_SPP_SUBSCRIPTION_REGISTRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_spp_post_dev_data
	cmpq	$1, 8(%r15)
	sbbl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cert/est_cert.der"

L_.str.1:                               ## @.str.1
	.asciz	"Cert/est_cert.pem"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.2:                               ## @.str.2
	.asciz	"Invalid prov command (missing URL)"

L_.str.3:                               ## @.str.3
	.asciz	"Credential provisioning requested - URL: %s ca_fname: %s"

L_.str.4:                               ## @.str.4
	.asciz	"N/A"

	.comm	_SPP_SUBSCRIPTION_REGISTRATION,4,2 ## @SPP_SUBSCRIPTION_REGISTRATION
L_.str.5:                               ## @.str.5
	.asciz	"Subscription registration"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_prov                       ; -- Begin function cmd_prov
	.p2align	2
_cmd_prov:                              ; @cmd_prov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_unlink
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_unlink
Lloh4:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, l_.str.4@PAGE
Lloh8:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	stp	x20, x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #20]
	bl	_os_free
	mov	x0, x20
	bl	_os_strdup
	str	w0, [x19, #20]
	ldr	w0, [x19, #16]
	ldr	x2, [x19]
	mov	x1, x20
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_soap_init_client
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _SPP_SUBSCRIPTION_REGISTRATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPP_SUBSCRIPTION_REGISTRATION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	bl	_spp_post_dev_data
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cert/est_cert.der"

l_.str.1:                               ; @.str.1
	.asciz	"Cert/est_cert.pem"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.2:                               ; @.str.2
	.asciz	"Invalid prov command (missing URL)"

l_.str.3:                               ; @.str.3
	.asciz	"Credential provisioning requested - URL: %s ca_fname: %s"

l_.str.4:                               ; @.str.4
	.asciz	"N/A"

	.comm	_SPP_SUBSCRIPTION_REGISTRATION,4,2 ; @SPP_SUBSCRIPTION_REGISTRATION
l_.str.5:                               ; @.str.5
	.asciz	"Subscription registration"

.subsections_via_symbols
