	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_args_to_xml                ## -- Begin function rpc_args_to_xml
	.p2align	4, 0x90
_rpc_args_to_xml:                       ## @rpc_args_to_xml
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movl	%ecx, %r12d
	movq	%rdi, %r15
	movq	$0, (%r14)
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	%esi, %edi
	movq	%r14, %rsi
	callq	_plist_to_xml
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movl	-44(%rbp), %r13d
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%rax, %rdi
	movl	$62, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, %r15
	movslq	%r13d, %rax
	movq	$-8, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	decq	%r13
	cmpb	$10, 1(%r15,%r12)
	leaq	1(%r12), %r12
	je	LBB0_10
## %bb.11:
	addq	%rax, %rbx
	leaq	(%r15,%r12), %rcx
	cmpq	%rcx, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_12
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	decq	%rbx
	cmpq	%rcx, %rbx
	jbe	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$10, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testb	%al, %al
	je	LBB0_14
	jmp	LBB0_16
LBB0_2:
	movq	_RPC_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	jmp	LBB0_21
LBB0_15:
	movq	%rcx, %rbx
LBB0_16:
	movq	%rbx, %rax
	subq	%r15, %rax
	subq	%r12, %rax
	cmpq	$8, %rax
	jl	LBB0_19
## %bb.17:
	leaq	-7(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %edi
	subl	%r15d, %edi
	subl	%r12d, %edi
	leal	-8(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	$-7, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_strncpy
	addq	%r12, %rbx
	subq	%r15, %rbx
	movb	$0, (%rbx,%r13)
	movq	(%r14), %rdi
	callq	_free
	movq	%r12, (%r14)
LBB0_19:
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_ERROR,4,2                  ## @RPC_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plist_to_xml failed"

L_.str.1:                               ## @.str.1
	.asciz	"<plist"

L_.str.2:                               ## @.str.2
	.asciz	"</plist>"

	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_args_to_xml                ; -- Begin function rpc_args_to_xml
	.p2align	2
_rpc_args_to_xml:                       ; @rpc_args_to_xml
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x1, LBB0_17
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_17
; %bb.2:
	mov	x22, x3
	mov	x20, x0
	str	xzr, [x19]
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	x0, x1
	mov	x1, x19
	bl	_plist_to_xml
	ldr	x21, [x19]
	cbz	x21, LBB0_19
; %bb.3:
	ldr	w23, [sp, #12]
	cbz	w23, LBB0_19
; %bb.4:
	cbz	w22, LBB0_16
; %bb.5:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_16
; %bb.6:
	mov	w1, #62
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.7:
	mov	x20, x0
	mov	x22, #0
	sxtw	x8, w23
	mov	x24, #-8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x20, x22
	ldrb	w9, [x9, #1]
	add	x22, x22, #1
	sub	x24, x24, #1
	cmp	w9, #10
	b.eq	LBB0_8
; %bb.9:
	add	x25, x21, x8
	add	x21, x20, x22
	cmp	x25, x21
	b.ls	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x25]
	cmp	w8, #10
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x25, x25, #1
	cmp	x25, x21
	b.hi	LBB0_10
; %bb.12:
	mov	x25, x21
LBB0_13:
	sub	x8, x25, x20
	sub	x8, x8, x22
	cmp	x8, #8
	b.lt	LBB0_16
; %bb.14:
	sub	x0, x25, #7
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #8
	bl	_strncmp
	cbnz	w0, LBB0_16
; %bb.15:
	sub	w8, w25, w20
	sub	w8, w8, w22
	sub	w22, w8, #8
	sub	w0, w8, #7
	bl	_malloc
	mov	x23, x0
	mov	x1, x21
	mov	x2, x22
	bl	_strncpy
	add	x8, x23, x25
	sub	x8, x8, x20
	strb	wzr, [x8, x24]
	ldr	x0, [x19]
	bl	_free
	str	x23, [x19]
LBB0_16:
Lloh4:
	adrp	x8, _RPC_SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RPC_SUCCESS@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh6:
	adrp	x8, _RPC_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RPC_ERROR@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
	b	LBB0_20
LBB0_19:
	ldr	x8, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	blr	x8
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_ERROR,4,2                  ; @RPC_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plist_to_xml failed"

l_.str.1:                               ; @.str.1
	.asciz	"<plist"

l_.str.2:                               ; @.str.2
	.asciz	"</plist>"

	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
.subsections_via_symbols
