	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_pol_upd
_cmd_pol_upd:                           ## @cmd_pol_upd
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -1056(%rbp)
	movq	$0, -1048(%rbp)
	movq	_MSG_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r13, %r13
	je	LBB0_10
LBB0_1:
	movq	%r13, %rdi
	callq	_os_file_exists
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_14
## %bb.2:
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_os_file_exists
	testl	%eax, %eax
	je	LBB0_16
LBB0_4:
	movq	%r12, -1040(%rbp)               ## 8-byte Spill
	movl	(%rbx), %edi
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r14, 8(%r15)
	movl	16(%r15), %edi
	movq	%r13, %rsi
	callq	_node_from_file
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	%rax, %r12
	cmpq	$0, (%r15)
	je	LBB0_22
LBB0_6:
	movl	16(%r15), %edi
	leaq	L_.str.19(%rip), %rdx
	movq	%r12, %rsi
	callq	_get_child_node
	testq	%rax, %rax
	je	LBB0_27
## %bb.7:
	movl	16(%r15), %edi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.20(%rip), %rsi
	movq	%rax, %rdi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_29
LBB0_9:
	movl	$0, -1028(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_30
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_18
LBB0_12:
	movl	20(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-1024(%rbp), %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_get_wpa_status
	testq	%rax, %rax
	jns	LBB0_19
## %bb.13:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_51
LBB0_14:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdx
	jmp	LBB0_17
LBB0_15:
	movl	(%rbx), %edi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_51
LBB0_16:
	movl	(%rbx), %edi
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdx
LBB0_17:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_52
LBB0_18:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	addq	$5, %r12
	leaq	L_.str.4(%rip), %rdx
	leaq	-1024(%rbp), %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r12, %rcx
	callq	_os_snprintf
	xorl	%r12d, %r12d
LBB0_19:
	movq	(%r15), %rdi
	callq	_os_free
	leaq	-1024(%rbp), %rdi
	callq	_os_strdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_52
## %bb.20:
	movq	%r12, -1040(%rbp)               ## 8-byte Spill
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-1024(%rbp), %r12
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rcx
	leaq	L_.str.8(%rip), %rdx
	leaq	-352(%rbp), %r13
	movq	%r13, %rdi
	movl	$300, %esi                      ## imm = 0x12C
	callq	_os_snprintf
	leaq	L_.str.9(%rip), %rdx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	movl	$200, %esi
	movq	%r12, %rcx
	callq	_os_snprintf
	movl	$200, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movq	(%r15), %rdi
	callq	_os_free
	movq	$0, (%r15)
	jmp	LBB0_52
LBB0_22:
	movl	16(%r15), %edi
	leaq	L_.str.15(%rip), %rdx
	movq	%r12, %rsi
	callq	_get_child_node
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	movl	16(%r15), %edi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_50
## %bb.24:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_os_strdup
	movq	%rax, (%r15)
	movl	16(%r15), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_text_free
	cmpq	$0, (%r15)
	jne	LBB0_6
## %bb.25:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.18(%rip), %rsi
	jmp	LBB0_51
LBB0_26:
	movq	-1040(%rbp), %r12               ## 8-byte Reload
	jmp	LBB0_1
LBB0_27:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.21(%rip), %rsi
	movl	$0, -1028(%rbp)                 ## 4-byte Folded Spill
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_30
LBB0_28:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_51
LBB0_29:
	movb	$1, %al
	movl	%eax, -1028(%rbp)               ## 4-byte Spill
LBB0_30:
	leaq	L_.str.22(%rip), %rdx
	leaq	-1056(%rbp), %rcx
	leaq	-1048(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_user_pw
	movq	-1056(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.31:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.23(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_32:
	movq	-1048(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.33:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.24(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	cmpq	$0, -1048(%rbp)
	sete	%al
	jmp	LBB0_35
LBB0_34:
	movb	$1, %al
LBB0_35:
	xorl	%r14d, %r14d
	cmpq	$0, -1056(%rbp)
	jne	LBB0_40
## %bb.36:
	movl	$0, %ebx
	testb	%al, %al
	je	LBB0_41
## %bb.37:
	movl	16(%r15), %edi
	leaq	L_.str.25(%rip), %rdx
	movq	%r12, %rsi
	callq	_get_child_node
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	leaq	-768(%rbp), %rbx
	leaq	-1024(%rbp), %r14
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.26(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rcx
	leaq	L_.str.27(%rip), %rdx
	movq	%r14, %rdi
	movl	$200, %esi
	callq	_os_snprintf
	movq	(%r15), %rcx
	leaq	L_.str.28(%rip), %rdx
	movq	%rbx, %rdi
	movl	$200, %esi
	callq	_os_snprintf
	jmp	LBB0_41
LBB0_39:
	xorl	%r14d, %r14d
LBB0_40:
	xorl	%ebx, %ebx
LBB0_41:
	movq	%rbx, -1064(%rbp)               ## 8-byte Spill
	movq	%r14, -1072(%rbp)               ## 8-byte Spill
	cmpq	$0, -1040(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_47
## %bb.42:
	xorl	%r14d, %r14d
LBB0_43:
	movq	-1056(%rbp), %r9
	movq	-1048(%rbp), %rax
	cmpb	$0, -1028(%rbp)                 ## 1-byte Folded Reload
	je	LBB0_45
## %bb.44:
	movq	%r15, %rdi
	movq	-1040(%rbp), %rsi               ## 8-byte Reload
	movq	%r13, %rdx
	movq	-1072(%rbp), %rcx               ## 8-byte Reload
	movq	-1064(%rbp), %r8                ## 8-byte Reload
	pushq	%r12
	pushq	%rax
	callq	_oma_dm_pol_upd
	jmp	LBB0_46
LBB0_45:
	movq	%r15, %rdi
	movq	-1040(%rbp), %rsi               ## 8-byte Reload
	movq	%r13, %rdx
	movq	-1072(%rbp), %rcx               ## 8-byte Reload
	movq	-1064(%rbp), %r8                ## 8-byte Reload
	pushq	%r12
	pushq	%rax
	callq	_spp_pol_upd
LBB0_46:
	addq	$16, %rsp
	movl	16(%r15), %edi
	movq	%r14, %rsi
	callq	_xml_node_get_text_free
	movl	16(%r15), %edi
	movq	-1056(%rbp), %rsi
	callq	_xml_node_get_text_free
	movq	-1048(%rbp), %rdi
	callq	_str_clear_free
	movl	16(%r15), %edi
	movq	%r12, %rsi
	callq	_xml_node_free
	xorl	%eax, %eax
	jmp	LBB0_53
LBB0_47:
	movl	16(%r15), %edi
	leaq	L_.str.29(%rip), %rdx
	movq	%r12, %rsi
	callq	_get_child_node
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	movl	16(%r15), %edi
	movq	%rax, %rsi
	callq	_xml_node_get_text
	movq	%rax, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.30(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %r14
	movq	%rbx, -1040(%rbp)               ## 8-byte Spill
	testq	%rbx, %rbx
	jne	LBB0_43
LBB0_49:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.31(%rip), %rsi
	jmp	LBB0_51
LBB0_50:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
LBB0_51:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_52:
	movl	$-1, %eax
LBB0_53:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_55
## %bb.54:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_55:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Policy update requested"

L_.str.1:                               ## @.str.1
	.asciz	"Determining PPS file based on Home SP information"

L_.str.2:                               ## @.str.2
	.asciz	"fqdn="

L_.str.3:                               ## @.str.3
	.asciz	"Use requested FQDN from command line"

L_.str.4:                               ## @.str.4
	.asciz	"%s"

L_.str.5:                               ## @.str.5
	.asciz	"provisioning_sp"

L_.str.6:                               ## @.str.6
	.asciz	"Could not get provisioning Home SP FQDN from wpa_supplicant"

L_.str.7:                               ## @.str.7
	.asciz	"Home SP FQDN for current credential: %s"

L_.str.8:                               ## @.str.8
	.asciz	"SP/%s/pps.xml"

L_.str.9:                               ## @.str.9
	.asciz	"SP/%s/ca.pem"

L_.str.10:                              ## @.str.10
	.asciz	"PPS file '%s' does not exist or is not accessible"

L_.str.11:                              ## @.str.11
	.asciz	"Using PPS file: %s"

L_.str.12:                              ## @.str.12
	.asciz	"CA file '%s' does not exist or is not accessible"

L_.str.13:                              ## @.str.13
	.asciz	"Using server trust root: %s"

L_.str.14:                              ## @.str.14
	.asciz	"Could not read PPS MO"

L_.str.15:                              ## @.str.15
	.asciz	"HomeSP/FQDN"

L_.str.16:                              ## @.str.16
	.asciz	"No HomeSP/FQDN found from PPS"

L_.str.17:                              ## @.str.17
	.asciz	"No HomeSP/FQDN text found from PPS"

L_.str.18:                              ## @.str.18
	.asciz	"No FQDN known"

L_.str.19:                              ## @.str.19
	.asciz	"Policy/PolicyUpdate/UpdateMethod"

L_.str.20:                              ## @.str.20
	.asciz	"OMA-DM-ClientInitiated"

L_.str.21:                              ## @.str.21
	.asciz	"No UpdateMethod specified - assume SPP"

L_.str.22:                              ## @.str.22
	.asciz	"Policy/PolicyUpdate/UsernamePassword"

L_.str.23:                              ## @.str.23
	.asciz	"Using username: %s"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.24:                              ## @.str.24
	.asciz	"Using password: %s"

L_.str.25:                              ## @.str.25
	.asciz	"Credential/DigitalCertificate"

L_.str.26:                              ## @.str.26
	.asciz	"Using client certificate"

L_.str.27:                              ## @.str.27
	.asciz	"SP/%s/client-cert.pem"

L_.str.28:                              ## @.str.28
	.asciz	"SP/%s/client-key.pem"

L_.str.29:                              ## @.str.29
	.asciz	"Policy/PolicyUpdate/URI"

L_.str.30:                              ## @.str.30
	.asciz	"URI based on PPS: %s"

L_.str.31:                              ## @.str.31
	.asciz	"Server URL not known"

	.no_dead_strip	_cmd_pol_upd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_pol_upd
_cmd_pol_upd:                           ; @cmd_pol_upd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #992
	mov	x22, x3
	mov	x21, x2
	mov	x20, 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, #-88]
	stp	xzr, xzr, [sp, #8]
Lloh3:
	adrp	x26, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	cbz	x21, LBB0_10
LBB0_1:
	mov	x0, x21
	bl	_os_file_exists
	mov	x8, x0
	ldr	w0, [x26]
	cbz	w8, LBB0_14
; %bb.2:
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.11@PAGE
Lloh8:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
	cbz	x22, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_os_file_exists
	cbz	w0, LBB0_16
LBB0_4:
	ldr	w0, [x26]
	str	x22, [sp]
Lloh9:
	adrp	x1, l_.str.13@PAGE
Lloh10:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_wpa_printf
	str	x22, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x21
	bl	_node_from_file
	cbz	x0, LBB0_15
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_21
LBB0_6:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x2, l_.str.19@PAGE
Lloh12:
	add	x2, x2, l_.str.19@PAGEOFF
	mov	x1, x22
	bl	_get_child_node
	cbz	x0, LBB0_26
; %bb.7:
	mov	x1, x0
	ldr	w0, [x19, #16]
	bl	_xml_node_get_text
	cbz	x0, LBB0_27
; %bb.8:
Lloh13:
	adrp	x1, l_.str.20@PAGE
Lloh14:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_os_strcasecmp
	cbnz	x0, LBB0_27
; %bb.9:
	mov	w27, #1
	b	LBB0_28
LBB0_10:
	ldr	w0, [x26]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	cbz	x20, LBB0_12
; %bb.11:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_os_strncmp
	cbz	x0, LBB0_17
LBB0_12:
	ldr	w0, [x19, #20]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #28
	mov	w3, #256
	bl	_get_wpa_status
	tbz	x0, #63, LBB0_18
; %bb.13:
	ldr	w0, [x26]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_50
LBB0_14:
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_50
LBB0_15:
	ldr	w0, [x26]
Lloh25:
	adrp	x1, l_.str.14@PAGE
Lloh26:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_50
LBB0_16:
	ldr	w0, [x26]
	str	x22, [sp]
Lloh27:
	adrp	x1, l_.str.12@PAGE
Lloh28:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_50
LBB0_17:
	ldr	w0, [x26]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	add	x3, x20, #5
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #28
	mov	w1, #256
	bl	_os_snprintf
	mov	x20, #0
LBB0_18:
	ldr	x0, [x19]
	bl	_os_free
	add	x21, sp, #28
	add	x0, sp, #28
	bl	_os_strdup
	str	x0, [x19]
	cbz	x0, LBB0_51
; %bb.19:
	ldr	w0, [x26]
	str	x21, [sp]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldr	x3, [x19]
Lloh35:
	adrp	x2, l_.str.8@PAGE
Lloh36:
	add	x2, x2, l_.str.8@PAGEOFF
	add	x0, sp, #684
	mov	w1, #300
	bl	_os_snprintf
Lloh37:
	adrp	x2, l_.str.9@PAGE
Lloh38:
	add	x2, x2, l_.str.9@PAGEOFF
	add	x0, sp, #484
	add	x3, sp, #28
	mov	w1, #200
	bl	_os_snprintf
	mov	x1, x0
	mov	w0, #200
	bl	_os_snprintf_error
	cbz	x0, LBB0_25
; %bb.20:
	ldr	x0, [x19]
	bl	_os_free
	str	xzr, [x19]
	b	LBB0_51
LBB0_21:
	ldr	w0, [x19, #16]
Lloh39:
	adrp	x2, l_.str.15@PAGE
Lloh40:
	add	x2, x2, l_.str.15@PAGEOFF
	mov	x1, x22
	bl	_get_child_node
	cbz	x0, LBB0_47
; %bb.22:
	mov	x1, x0
	ldr	w0, [x19, #16]
	bl	_xml_node_get_text
	cbz	x0, LBB0_49
; %bb.23:
	mov	x23, x0
	bl	_os_strdup
	str	x0, [x19]
	ldr	w0, [x19, #16]
	mov	x1, x23
	bl	_xml_node_get_text_free
	ldr	x8, [x19]
	cbnz	x8, LBB0_6
; %bb.24:
	ldr	w0, [x26]
Lloh41:
	adrp	x1, l_.str.18@PAGE
Lloh42:
	add	x1, x1, l_.str.18@PAGEOFF
	b	LBB0_50
LBB0_25:
	add	x22, sp, #484
	add	x21, sp, #684
	b	LBB0_1
LBB0_26:
	ldr	w0, [x26]
Lloh43:
	adrp	x1, l_.str.21@PAGE
Lloh44:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_wpa_printf
LBB0_27:
	mov	w27, #0
LBB0_28:
Lloh45:
	adrp	x2, l_.str.22@PAGE
Lloh46:
	add	x2, x2, l_.str.22@PAGEOFF
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_get_user_pw
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_30
; %bb.29:
	ldr	w0, [x26]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.23@PAGE
Lloh48:
	add	x1, x1, l_.str.23@PAGEOFF
	bl	_wpa_printf
LBB0_30:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_32
; %bb.31:
Lloh49:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh52:
	adrp	x1, l_.str.24@PAGE
Lloh53:
	add	x1, x1, l_.str.24@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, eq
	b	LBB0_33
LBB0_32:
	mov	w8, #1
LBB0_33:
	mov	x23, #0
	ldr	x9, [sp, #16]
	cbnz	x9, LBB0_40
; %bb.34:
	mov	x24, x23
	cbz	w8, LBB0_41
; %bb.35:
	ldr	w0, [x19, #16]
Lloh54:
	adrp	x2, l_.str.25@PAGE
Lloh55:
	add	x2, x2, l_.str.25@PAGEOFF
	mov	x1, x22
	bl	_get_child_node
	cbz	x0, LBB0_48
; %bb.36:
	add	x24, sp, #284
	add	x23, sp, #28
	ldr	w0, [x26]
Lloh56:
	adrp	x1, l_.str.26@PAGE
Lloh57:
	add	x1, x1, l_.str.26@PAGEOFF
	bl	_wpa_printf
	ldr	x3, [x19]
Lloh58:
	adrp	x2, l_.str.27@PAGE
Lloh59:
	add	x2, x2, l_.str.27@PAGEOFF
	add	x0, sp, #28
	mov	w1, #200
	bl	_os_snprintf
	ldr	x3, [x19]
Lloh60:
	adrp	x2, l_.str.28@PAGE
Lloh61:
	add	x2, x2, l_.str.28@PAGEOFF
	add	x0, sp, #284
	mov	w1, #200
	bl	_os_snprintf
	cbnz	x20, LBB0_42
LBB0_37:
	ldr	w0, [x19, #16]
Lloh62:
	adrp	x2, l_.str.29@PAGE
Lloh63:
	add	x2, x2, l_.str.29@PAGEOFF
	mov	x1, x22
	bl	_get_child_node
	cbz	x0, LBB0_39
; %bb.38:
	mov	x1, x0
	ldr	w0, [x19, #16]
	bl	_xml_node_get_text
	mov	x20, x0
	ldr	w0, [x26]
	str	x20, [sp]
Lloh64:
	adrp	x1, l_.str.30@PAGE
Lloh65:
	add	x1, x1, l_.str.30@PAGEOFF
	bl	_wpa_printf
	mov	x25, x20
	cbnz	x20, LBB0_43
LBB0_39:
	ldr	w0, [x26]
Lloh66:
	adrp	x1, l_.str.31@PAGE
Lloh67:
	add	x1, x1, l_.str.31@PAGEOFF
	b	LBB0_50
LBB0_40:
	mov	x24, x23
LBB0_41:
	cbz	x20, LBB0_37
LBB0_42:
	mov	x25, #0
LBB0_43:
	ldp	x6, x5, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x7, x22
	tbz	w27, #0, LBB0_45
; %bb.44:
	bl	_oma_dm_pol_upd
	b	LBB0_46
LBB0_45:
	bl	_spp_pol_upd
LBB0_46:
	ldr	w0, [x19, #16]
	mov	x1, x25
	bl	_xml_node_get_text_free
	ldr	w0, [x19, #16]
	ldr	x1, [sp, #16]
	bl	_xml_node_get_text_free
	ldr	x0, [sp, #8]
	bl	_str_clear_free
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_xml_node_free
	mov	w0, #0
	b	LBB0_52
LBB0_47:
	ldr	w0, [x26]
Lloh68:
	adrp	x1, l_.str.16@PAGE
Lloh69:
	add	x1, x1, l_.str.16@PAGEOFF
	b	LBB0_50
LBB0_48:
	mov	x23, #0
	mov	x24, #0
	cbnz	x20, LBB0_42
	b	LBB0_37
LBB0_49:
	ldr	w0, [x26]
Lloh70:
	adrp	x1, l_.str.17@PAGE
Lloh71:
	add	x1, x1, l_.str.17@PAGEOFF
LBB0_50:
	bl	_wpa_printf
LBB0_51:
	mov	w0, #-1
LBB0_52:
	ldur	x8, [x29, #-88]
Lloh72:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh73:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.53:
	add	sp, sp, #992
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_54:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Policy update requested"

l_.str.1:                               ; @.str.1
	.asciz	"Determining PPS file based on Home SP information"

l_.str.2:                               ; @.str.2
	.asciz	"fqdn="

l_.str.3:                               ; @.str.3
	.asciz	"Use requested FQDN from command line"

l_.str.4:                               ; @.str.4
	.asciz	"%s"

l_.str.5:                               ; @.str.5
	.asciz	"provisioning_sp"

l_.str.6:                               ; @.str.6
	.asciz	"Could not get provisioning Home SP FQDN from wpa_supplicant"

l_.str.7:                               ; @.str.7
	.asciz	"Home SP FQDN for current credential: %s"

l_.str.8:                               ; @.str.8
	.asciz	"SP/%s/pps.xml"

l_.str.9:                               ; @.str.9
	.asciz	"SP/%s/ca.pem"

l_.str.10:                              ; @.str.10
	.asciz	"PPS file '%s' does not exist or is not accessible"

l_.str.11:                              ; @.str.11
	.asciz	"Using PPS file: %s"

l_.str.12:                              ; @.str.12
	.asciz	"CA file '%s' does not exist or is not accessible"

l_.str.13:                              ; @.str.13
	.asciz	"Using server trust root: %s"

l_.str.14:                              ; @.str.14
	.asciz	"Could not read PPS MO"

l_.str.15:                              ; @.str.15
	.asciz	"HomeSP/FQDN"

l_.str.16:                              ; @.str.16
	.asciz	"No HomeSP/FQDN found from PPS"

l_.str.17:                              ; @.str.17
	.asciz	"No HomeSP/FQDN text found from PPS"

l_.str.18:                              ; @.str.18
	.asciz	"No FQDN known"

l_.str.19:                              ; @.str.19
	.asciz	"Policy/PolicyUpdate/UpdateMethod"

l_.str.20:                              ; @.str.20
	.asciz	"OMA-DM-ClientInitiated"

l_.str.21:                              ; @.str.21
	.asciz	"No UpdateMethod specified - assume SPP"

l_.str.22:                              ; @.str.22
	.asciz	"Policy/PolicyUpdate/UsernamePassword"

l_.str.23:                              ; @.str.23
	.asciz	"Using username: %s"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.24:                              ; @.str.24
	.asciz	"Using password: %s"

l_.str.25:                              ; @.str.25
	.asciz	"Credential/DigitalCertificate"

l_.str.26:                              ; @.str.26
	.asciz	"Using client certificate"

l_.str.27:                              ; @.str.27
	.asciz	"SP/%s/client-cert.pem"

l_.str.28:                              ; @.str.28
	.asciz	"SP/%s/client-key.pem"

l_.str.29:                              ; @.str.29
	.asciz	"Policy/PolicyUpdate/URI"

l_.str.30:                              ; @.str.30
	.asciz	"URI based on PPS: %s"

l_.str.31:                              ; @.str.31
	.asciz	"Server URL not known"

	.no_dead_strip	_cmd_pol_upd
.subsections_via_symbols
