	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oma_dm_add
_oma_dm_add:                            ## @oma_dm_add
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rdx
	callq	_get_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	16(%r14), %edi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r13
	movq	%r12, -368(%rbp)                ## 8-byte Spill
	movq	_MSG_INFO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	movl	$8, %edx
	callq	_os_strncasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	16(%r14), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text_free
	movq	_DM_RESP_PERMISSION_DENIED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movq	_DM_RESP_BAD_REQUEST@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.10:
	movl	%ebx, %eax
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	16(%r14), %edi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rsi
	callq	_get_node
	testq	%rax, %rax
	je	LBB0_19
## %bb.12:
	movq	-368(%rbp), %r12                ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	callq	_os_file_exists
	testq	%rax, %rax
	movq	-360(%rbp), %rax                ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_oma_dm_run_add
	movl	%eax, %ebx
	movq	_DM_RESP_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_26
## %bb.15:
	leaq	-352(%rbp), %rdi
	movq	%r12, %rsi
	movl	$300, %edx                      ## imm = 0x12C
	callq	_os_strlcpy
	movl	16(%r14), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text_free
	jmp	LBB0_17
LBB0_16:
	leaq	-352(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	movl	$300, %r8d                      ## imm = 0x12C
	callq	_hs20_add_pps_mo
	movl	%eax, %ebx
	movl	16(%r14), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text_free
	testl	%ebx, %ebx
	js	LBB0_24
LBB0_17:
	cmpl	$2, (%r14)
	jne	LBB0_20
## %bb.18:
	movl	12(%r14), %edi
	leaq	L_.str.8(%rip), %rdx
	leaq	-352(%rbp), %rcx
	movl	$4, %esi
	callq	_os_snprintf
	movl	$1, 4(%r14)
	jmp	LBB0_23
LBB0_19:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	16(%r14), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text_free
	jmp	LBB0_7
LBB0_20:
	movq	_MSG_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-352(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cmd_set_pps
	cmpl	$0, (%r14)
	jne	LBB0_23
## %bb.21:
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	8(%r14), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_wpa_command
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	movl	(%rbx), %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_23:
	movq	_DM_RESP_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_24:
	cmpl	$-2, %ebx
	jne	LBB0_27
## %bb.25:
	movq	_DM_RESP_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_26:
	movl	16(%r14), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text_free
	jmp	LBB0_9
LBB0_27:
	movq	_DM_RESP_COMMAND_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Item/Target/LocURI"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"No Target LocURI node found"

	.comm	_DM_RESP_BAD_REQUEST,4,2        ## @DM_RESP_BAD_REQUEST
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"No LocURI node text found"

L_.str.3:                               ## @.str.3
	.asciz	"Target LocURI: %s"

L_.str.4:                               ## @.str.4
	.asciz	"./Wi-Fi/"

L_.str.5:                               ## @.str.5
	.asciz	"Unsupported Add Target LocURI"

	.comm	_DM_RESP_PERMISSION_DENIED,4,2  ## @DM_RESP_PERMISSION_DENIED
L_.str.6:                               ## @.str.6
	.asciz	"Item/Data"

L_.str.7:                               ## @.str.7
	.asciz	"No Data node found"

	.comm	_DM_RESP_OK,4,2                 ## @DM_RESP_OK
	.comm	_DM_RESP_ALREADY_EXISTS,4,2     ## @DM_RESP_ALREADY_EXISTS
	.comm	_DM_RESP_COMMAND_FAILED,4,2     ## @DM_RESP_COMMAND_FAILED
L_.str.8:                               ## @.str.8
	.asciz	"%s"

L_.str.9:                               ## @.str.9
	.asciz	"Updating wpa_supplicant credentials"

L_.str.10:                              ## @.str.10
	.asciz	"Requesting reconnection with updated configuration"

L_.str.11:                              ## @.str.11
	.asciz	"INTERWORKING_SELECT auto"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to request wpa_supplicant to reconnect"

	.no_dead_strip	_oma_dm_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oma_dm_add
_oma_dm_add:                            ; @oma_dm_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_get_node
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	ldr	w0, [x19, #16]
	bl	_xml_node_get_text
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x25, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x25]
	str	x20, [sp]
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #8
	bl	_os_strncasecmp
	cbz	x0, LBB0_11
; %bb.3:
	ldr	w0, [x25]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_get_text_free
Lloh13:
	adrp	x8, _DM_RESP_PERMISSION_DENIED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DM_RESP_PERMISSION_DENIED@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_wpa_printf
LBB0_7:
Lloh25:
	adrp	x8, _DM_RESP_BAD_REQUEST@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DM_RESP_BAD_REQUEST@GOTPAGEOFF]
LBB0_8:
	ldr	w22, [x8]
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.10:
	mov	x0, x22
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_11:
	ldr	w0, [x19, #16]
Lloh30:
	adrp	x2, l_.str.6@PAGE
Lloh31:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x23
	bl	_get_node
	cbz	x0, LBB0_19
; %bb.12:
	mov	x24, x0
	cbz	x21, LBB0_16
; %bb.13:
	mov	x0, x21
	bl	_os_file_exists
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_oma_dm_run_add
Lloh32:
	adrp	x8, _DM_RESP_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DM_RESP_OK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_25
; %bb.15:
	add	x0, sp, #12
	mov	x1, x21
	mov	w2, #300
	bl	_os_strlcpy
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_get_text_free
	b	LBB0_17
LBB0_16:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	w4, #300
	bl	_hs20_add_pps_mo
	mov	x21, x0
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_get_text_free
	tbnz	w21, #31, LBB0_24
LBB0_17:
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_20
; %bb.18:
	ldr	w0, [x19, #12]
Lloh35:
	adrp	x2, l_.str.8@PAGE
Lloh36:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x3, sp, #12
	mov	w1, #4
	bl	_os_snprintf
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_23
LBB0_19:
	ldr	w0, [x25]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_get_text_free
	b	LBB0_7
LBB0_20:
	ldr	w0, [x25]
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #12
	mov	x0, x19
	bl	_cmd_set_pps
	ldr	w8, [x19]
	cbnz	w8, LBB0_23
; %bb.21:
	ldr	w0, [x25]
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #8]
Lloh43:
	adrp	x1, l_.str.11@PAGE
Lloh44:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_command
	tbz	x0, #63, LBB0_23
; %bb.22:
	ldr	w0, [x25]
Lloh45:
	adrp	x1, l_.str.12@PAGE
Lloh46:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_wpa_printf
LBB0_23:
Lloh47:
	adrp	x8, _DM_RESP_OK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DM_RESP_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_24:
Lloh49:
	adrp	x8, _DM_RESP_ALREADY_EXISTS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DM_RESP_ALREADY_EXISTS@GOTPAGEOFF]
Lloh51:
	adrp	x9, _DM_RESP_COMMAND_FAILED@GOTPAGE
Lloh52:
	ldr	x9, [x9, _DM_RESP_COMMAND_FAILED@GOTPAGEOFF]
	cmn	w21, #2
	csel	x8, x8, x9, eq
	b	LBB0_8
LBB0_25:
	mov	x22, x0
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_xml_node_get_text_free
	b	LBB0_9
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Item/Target/LocURI"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"No Target LocURI node found"

	.comm	_DM_RESP_BAD_REQUEST,4,2        ; @DM_RESP_BAD_REQUEST
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"No LocURI node text found"

l_.str.3:                               ; @.str.3
	.asciz	"Target LocURI: %s"

l_.str.4:                               ; @.str.4
	.asciz	"./Wi-Fi/"

l_.str.5:                               ; @.str.5
	.asciz	"Unsupported Add Target LocURI"

	.comm	_DM_RESP_PERMISSION_DENIED,4,2  ; @DM_RESP_PERMISSION_DENIED
l_.str.6:                               ; @.str.6
	.asciz	"Item/Data"

l_.str.7:                               ; @.str.7
	.asciz	"No Data node found"

	.comm	_DM_RESP_OK,4,2                 ; @DM_RESP_OK
	.comm	_DM_RESP_ALREADY_EXISTS,4,2     ; @DM_RESP_ALREADY_EXISTS
	.comm	_DM_RESP_COMMAND_FAILED,4,2     ; @DM_RESP_COMMAND_FAILED
l_.str.8:                               ; @.str.8
	.asciz	"%s"

l_.str.9:                               ; @.str.9
	.asciz	"Updating wpa_supplicant credentials"

l_.str.10:                              ; @.str.10
	.asciz	"Requesting reconnection with updated configuration"

l_.str.11:                              ; @.str.11
	.asciz	"INTERWORKING_SELECT auto"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to request wpa_supplicant to reconnect"

	.no_dead_strip	_oma_dm_add
.subsections_via_symbols
