	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oma_dm_send_recv
_oma_dm_send_recv:                      ## @oma_dm_send_recv
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	%rdx, %rsi
	callq	_xml_node_to_str
	movq	%rax, %r12
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_xml_node_free
	testq	%r12, %r12
	je	LBB0_9
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %r15
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_write_summary
	movq	(%rbx), %rdi
	callq	_os_free
	movq	%r14, %rdi
	callq	_os_strdup
	movq	%rax, (%rbx)
	movl	12(%rbx), %edi
	movl	16(%rbx), %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %r8
	pushq	$0
	pushq	24(%rbp)
	pushq	16(%rbp)
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_http_post
	addq	$48, %rsp
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_os_free
	xorl	%edi, %edi
	callq	_os_free
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_MSG_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	callq	_write_summary
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_xml_node_from_buf
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_os_free
	testq	%r14, %r14
	je	LBB0_7
## %bb.3:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_debug_dump_node
	jmp	LBB0_10
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	12(%rbx), %edi
	callq	_http_get_err
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, %r15
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_write_result
	jmp	LBB0_10
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_write_summary
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	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	"Send OMA DM Package"

L_.str.1:                               ## @.str.1
	.asciz	"application/vnd.syncml.dm+xml"

L_.str.2:                               ## @.str.2
	.asciz	"HTTP error: %s"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to send OMA DM Package"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"Server response: %s"

L_.str.5:                               ## @.str.5
	.asciz	"Process OMA DM Package"

L_.str.6:                               ## @.str.6
	.asciz	"Process received OMA DM Package"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to parse OMA DM response"

L_.str.8:                               ## @.str.8
	.asciz	"OMA DM Package"

	.no_dead_strip	_oma_dm_send_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oma_dm_send_recv
_oma_dm_send_recv:                      ; @oma_dm_send_recv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x24, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x27, x2
	mov	x26, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	mov	x1, x2
	bl	_xml_node_to_str
	mov	x23, x0
	ldr	w0, [x19, #8]
	mov	x1, x27
	bl	_xml_node_free
	cbz	x23, LBB0_8
; %bb.1:
Lloh0:
	adrp	x28, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh2:
	adrp	x27, l_.str@PAGE
Lloh3:
	add	x27, x27, l_.str@PAGEOFF
	mov	x1, x27
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x27
	bl	_write_summary
	ldr	x0, [x19]
	bl	_os_free
	mov	x0, x26
	bl	_os_strdup
	str	x0, [x19]
	ldp	w0, w5, [x19, #12]
	stp	x25, xzr, [sp, #8]
	str	x24, [sp]
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x1, x26
	mov	x2, x23
	mov	x4, x22
	mov	x6, x21
	mov	x7, x20
	bl	_http_post
	mov	x20, x0
	mov	x0, x23
	bl	_os_free
	mov	x0, #0
	bl	_os_free
	cbz	x20, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x28]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_write_summary
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_xml_node_from_buf
	mov	x21, x0
	mov	x0, x20
	bl	_os_free
	cbz	x21, LBB0_6
; %bb.3:
Lloh15:
	adrp	x1, l_.str.8@PAGE
Lloh16:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_debug_dump_node
	b	LBB0_9
LBB0_4:
	ldr	w0, [x19, #12]
	bl	_http_get_err
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w0, [x28]
	str	x20, [sp]
Lloh17:
	adrp	x21, l_.str.2@PAGE
Lloh18:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_write_result
	b	LBB0_8
LBB0_6:
	ldr	w0, [x28]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	b	LBB0_9
LBB0_7:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_write_summary
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send OMA DM Package"

l_.str.1:                               ; @.str.1
	.asciz	"application/vnd.syncml.dm+xml"

l_.str.2:                               ; @.str.2
	.asciz	"HTTP error: %s"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to send OMA DM Package"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"Server response: %s"

l_.str.5:                               ; @.str.5
	.asciz	"Process OMA DM Package"

l_.str.6:                               ; @.str.6
	.asciz	"Process received OMA DM Package"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to parse OMA DM response"

l_.str.8:                               ; @.str.8
	.asciz	"OMA DM Package"

	.no_dead_strip	_oma_dm_send_recv
.subsections_via_symbols
