	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cmd_oma_dm_prov
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cmd_oma_dm_prov
	.p2align	4, 0x90
_cmd_oma_dm_prov:                       ## @cmd_oma_dm_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_write_summary
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_build_oma_dm_1_sub_reg
	movq	%rax, %r15
	movl	$-1, %eax
	testq	%r15, %r15
	je	LBB0_8
## %bb.2:
	movl	$2, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	cmoveq	%r14, %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_oma_dm_send_recv
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	leaq	-48(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_oma_dm_process
	movq	%rax, %r15
	movl	8(%r12), %edi
	movq	%r13, %rsi
	callq	_xml_node_free
	incl	%ebx
	movq	-48(%rbp), %rsi
	testq	%r15, %r15
	jne	LBB0_3
## %bb.5:
	movq	%rsi, %rdi
	callq	_os_free
	xorl	%eax, %eax
	cmpq	$1, (%r12)
	sbbl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid prov command (missing URL)"

L_.str.1:                               ## @.str.1
	.asciz	"OMA-DM credential provisioning requested"

L_.str.2:                               ## @.str.2
	.asciz	"OMA-DM credential provisioning"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_oma_dm_prov                ; -- Begin function cmd_oma_dm_prov
	.p2align	2
_cmd_oma_dm_prov:                       ; @cmd_oma_dm_prov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	cbz	x1, LBB0_6
; %bb.1:
	mov	x20, x1
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_write_summary
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_build_oma_dm_1_sub_reg
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	mov	x0, #0
	mov	w21, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, #0
	csel	x1, x20, x0, eq
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_oma_dm_send_recv
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x5, #0
	mov	x6, #0
	bl	_oma_dm_process
	mov	x22, x0
	ldr	w0, [x19, #8]
	mov	x1, x23
	bl	_xml_node_free
	ldr	x0, [sp, #8]
	add	w21, w21, #1
	cbnz	x22, LBB0_3
; %bb.5:
	bl	_os_free
	ldr	x8, [x19]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid prov command (missing URL)"

l_.str.1:                               ; @.str.1
	.asciz	"OMA-DM credential provisioning requested"

l_.str.2:                               ; @.str.2
	.asciz	"OMA-DM credential provisioning"

.subsections_via_symbols
