	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_mo_container
_add_mo_container:                      ## @add_mo_container
	.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	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	%r8, %rsi
	callq	_node_from_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_mo_to_tnds
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_xml_node_free
	testq	%r14, %r14
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xml_node_to_str
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_xml_node_free
	testq	%r13, %r13
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %r8
	callq	_xml_node_create_text
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	movq	%r15, %r8
	callq	_xml_node_add_attr
LBB0_5:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_os_free                        ## TAILCALL
LBB0_7:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rdi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%r13, %rdx
	movl	%eax, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create XML node from file: %s, possible error: %s"

L_.str.1:                               ## @.str.1
	.asciz	"syncml:dmddf1.2"

L_.str.2:                               ## @.str.2
	.asciz	"moContainer"

L_.str.3:                               ## @.str.3
	.asciz	"moURN"

	.no_dead_strip	_add_mo_container
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_mo_container
_add_mo_container:                      ; @add_mo_container
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	x1, x4
	bl	_node_from_file
	cbz	x0, LBB0_6
; %bb.1:
	mov	x25, x0
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x25
	mov	w2, #0
	mov	x3, x19
	bl	_mo_to_tnds
	mov	x24, x0
	mov	x0, x21
	mov	x1, x25
	bl	_xml_node_free
	cbz	x24, LBB0_7
; %bb.2:
	mov	x0, x21
	mov	x1, x24
	bl	_xml_node_to_str
	mov	x23, x0
	mov	x0, x21
	mov	x1, x24
	bl	_xml_node_free
	cbz	x23, LBB0_7
; %bb.3:
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x4, x23
	bl	_xml_node_create_text
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x4, x19
	bl	_xml_node_add_attr
LBB0_5:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_os_free
LBB0_6:
Lloh8:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	ldr	x0, [x24]
	bl	_strerror
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wpa_printf
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create XML node from file: %s, possible error: %s"

l_.str.1:                               ; @.str.1
	.asciz	"syncml:dmddf1.2"

l_.str.2:                               ; @.str.2
	.asciz	"moContainer"

l_.str.3:                               ; @.str.3
	.asciz	"moURN"

	.no_dead_strip	_add_mo_container
.subsections_via_symbols
