	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_add_pps_mo                ## -- Begin function hs20_add_pps_mo
	.p2align	4, 0x90
_hs20_add_pps_mo:                       ## @hs20_add_pps_mo
	.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, %r12
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_write_result
	jmp	LBB0_18
LBB0_2:
	leaq	8(%r14), %rdi
	callq	_strdup
	movq	%rax, %rdi
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_write_result
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_6:
	movb	$0, (%r15)
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_server_dnsname_suffix_match
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_valid_fqdn
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movq	_S_IRWXU@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_mkdir
	leaq	L_.str.9(%rip), %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_snprintf
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_mkdir
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EEXIST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_25
LBB0_11:
	movq	%r15, %rbx
	movq	_S_IRWXG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%r14), %esi
	leaq	L_.str.8(%rip), %rdi
	callq	_android_update_permission
	movl	(%r15), %esi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	orl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_android_update_permission
	leaq	L_.str.11(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_os_file_exists
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	leaq	L_.str.12(%rip), %r14
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_write_result
	movq	%r15, %rdi
	callq	_free
	movl	$-2, %eax
	jmp	LBB0_19
LBB0_13:
	movl	(%r14), %edi
	movl	8(%r15), %ecx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	jmp	LBB0_15
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %r14
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	movq	%r14, %rsi
LBB0_15:
	movq	%rbx, %rdx
	callq	_write_result
LBB0_16:
	movq	%rbx, %rdi
LBB0_17:
	callq	_free
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_xml_node_get_text
	testq	%rax, %rax
	je	LBB0_26
## %bb.21:
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_xml_node_from_buf
	movq	%rax, %r14
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_text_free
	testq	%r14, %r14
	je	LBB0_27
## %bb.22:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_tnds_to_mo
	testq	%rax, %rax
	je	LBB0_28
## %bb.23:
	movq	%rax, %r14
	leaq	L_.str.18(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_debug_dump_node
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_xml_node_get_localname
	movq	%rax, %rbx
	leaq	L_.str.19(%rip), %rsi
	movq	%rax, %rdi
	callq	_os_strcasecmp
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.20(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	jmp	LBB0_17
LBB0_25:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_strerror
	leaq	L_.str.10(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_16
LBB0_26:
	movl	(%r14), %edi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_29
LBB0_27:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.16(%rip), %rsi
	jmp	LBB0_29
LBB0_28:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
LBB0_29:
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	jmp	LBB0_17
LBB0_30:
	movl	(%r12), %edi
	leaq	L_.str.21(%rip), %rdx
	movq	%r14, %rsi
	callq	_get_child_node
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_process_est_cert
	testq	%rax, %rax
	js	LBB0_36
LBB0_32:
	movq	%r15, %rdi
	callq	_free
	movl	(%r12), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_node_to_file
	testq	%rax, %rax
	js	LBB0_35
## %bb.33:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_xml_node_free
	movq	_MSG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.23(%rip), %r14
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_write_summary
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_download_trust_roots
	testl	%eax, %eax
	jns	LBB0_19
## %bb.34:
	movl	(%r15), %edi
	leaq	L_.str.24(%rip), %r14
	movq	%r14, %rsi
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_write_summary
	movq	%rbx, %rdi
	callq	_unlink
	movl	%r15d, %eax
	jmp	LBB0_19
LBB0_35:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.22(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_xml_node_free
	jmp	LBB0_18
LBB0_36:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_xml_node_free
	movq	%r15, %rdi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"./Wi-Fi/"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported location for addMO to add PPS MO: '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"/PerProviderSubscription"

L_.str.3:                               ## @.str.3
	.asciz	"Unsupported location for addMO to add PPS MO (extra directory): '%s'"

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

L_.str.5:                               ## @.str.5
	.asciz	"FQDN '%s' for new PPS MO did not have suffix match with server's dNSName values, count: %d"

L_.str.6:                               ## @.str.6
	.asciz	"FQDN '%s' for new PPS MO did not have suffix match with server's dNSName values"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid FQDN '%s'"

L_.str.8:                               ## @.str.8
	.asciz	"SP"

	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
L_.str.9:                               ## @.str.9
	.asciz	"SP/%s"

	.comm	_errno,4,2                      ## @errno
	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.10:                              ## @.str.10
	.asciz	"mkdir(%s) failed: %s"

	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
L_.str.11:                              ## @.str.11
	.asciz	"SP/%s/pps.xml"

L_.str.12:                              ## @.str.12
	.asciz	"PPS file '%s' exists - reject addMO"

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

L_.str.14:                              ## @.str.14
	.asciz	"Could not extract MO text"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.15:                              ## @.str.15
	.asciz	"[hs20] addMO text: '%s'"

L_.str.16:                              ## @.str.16
	.asciz	"[hs20] Could not parse addMO text"

L_.str.17:                              ## @.str.17
	.asciz	"[hs20] Could not parse addMO TNDS text"

L_.str.18:                              ## @.str.18
	.asciz	"Parsed TNDS"

L_.str.19:                              ## @.str.19
	.asciz	"PerProviderSubscription"

L_.str.20:                              ## @.str.20
	.asciz	"[hs20] Unexpected PPS MO root node name '%s'"

L_.str.21:                              ## @.str.21
	.asciz	"Credential/DigitalCertificate/CertSHA256Fingerprint"

L_.str.22:                              ## @.str.22
	.asciz	"Could not write MO to file"

L_.str.23:                              ## @.str.23
	.asciz	"A new PPS MO added as '%s'"

L_.str.24:                              ## @.str.24
	.asciz	"Remove invalid PPS MO file"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hs20_add_pps_mo                ; -- Begin function hs20_add_pps_mo
	.p2align	2
_hs20_add_pps_mo:                       ; @hs20_add_pps_mo
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	w2, #8
	bl	_strncmp
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_write_result
	b	LBB0_18
LBB0_2:
	add	x0, x24, #8
	bl	_strdup
	cbz	x0, LBB0_18
; %bb.3:
	mov	x20, x0
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.4:
	mov	x25, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_os_strcasecmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	b	LBB0_16
LBB0_6:
	strb	wzr, [x25]
LBB0_7:
Lloh14:
	adrp	x24, _MSG_INFO@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x24]
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	bl	_server_dnsname_suffix_match
	cbz	w0, LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_valid_fqdn
	cbz	w0, LBB0_14
; %bb.9:
Lloh18:
	adrp	x25, _S_IRWXU@GOTPAGE
Lloh19:
	ldr	x25, [x25, _S_IRWXU@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh20:
	adrp	x0, l_.str.8@PAGE
Lloh21:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_mkdir
Lloh22:
	adrp	x2, l_.str.9@PAGE
Lloh23:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x3, x20
	bl	_snprintf
	ldr	w1, [x25]
	mov	x0, x21
	bl	_mkdir
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _EEXIST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_25
LBB0_11:
	ldr	w8, [x25]
Lloh30:
	adrp	x26, _S_IRWXG@GOTPAGE
Lloh31:
	ldr	x26, [x26, _S_IRWXG@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w9, w8
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_android_update_permission
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_android_update_permission
Lloh34:
	adrp	x2, l_.str.11@PAGE
Lloh35:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x3, x20
	bl	_snprintf
	mov	x0, x21
	bl	_os_file_exists
	mov	x8, x0
	ldr	w0, [x24]
	cbz	x8, LBB0_20
; %bb.12:
	str	x21, [sp]
Lloh36:
	adrp	x22, l_.str.12@PAGE
Lloh37:
	add	x22, x22, l_.str.12@PAGEOFF
	mov	x1, x22
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_write_result
	mov	x0, x20
	bl	_free
	mov	w20, #-2
	b	LBB0_19
LBB0_13:
	ldr	w0, [x24]
	ldr	x8, [x19, #8]
	stp	x20, x8, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
Lloh40:
	adrp	x1, l_.str.6@PAGE
Lloh41:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	b	LBB0_15
LBB0_14:
	ldr	w0, [x24]
	str	x20, [sp]
Lloh42:
	adrp	x21, l_.str.7@PAGE
Lloh43:
	add	x21, x21, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
LBB0_15:
	mov	x2, x20
LBB0_16:
	bl	_write_result
LBB0_17:
	mov	x0, x20
	bl	_free
LBB0_18:
	mov	w20, #-1
LBB0_19:
	mov	x0, x20
	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
LBB0_20:
	str	x21, [sp]
Lloh44:
	adrp	x1, l_.str.13@PAGE
Lloh45:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_get_text
	cbz	x0, LBB0_26
; %bb.21:
	mov	x22, x0
Lloh46:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh49:
	adrp	x1, l_.str.15@PAGE
Lloh50:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_from_buf
	mov	x23, x0
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_get_text_free
	cbz	x23, LBB0_27
; %bb.22:
	ldr	w0, [x19]
	mov	x1, x23
	bl	_tnds_to_mo
	cbz	x0, LBB0_28
; %bb.23:
	mov	x22, x0
Lloh51:
	adrp	x1, l_.str.18@PAGE
Lloh52:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_debug_dump_node
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_get_localname
	mov	x23, x0
Lloh53:
	adrp	x1, l_.str.19@PAGE
Lloh54:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_os_strcasecmp
	cbz	x0, LBB0_29
; %bb.24:
	ldr	w0, [x24]
	str	x23, [sp]
Lloh55:
	adrp	x1, l_.str.20@PAGE
Lloh56:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_25:
	ldr	w19, [x24]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
	b	LBB0_17
LBB0_26:
	ldr	w0, [x24]
Lloh59:
	adrp	x1, l_.str.14@PAGE
Lloh60:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_27:
	ldr	w0, [x24]
Lloh61:
	adrp	x1, l_.str.16@PAGE
Lloh62:
	add	x1, x1, l_.str.16@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_28:
	ldr	w0, [x24]
Lloh63:
	adrp	x1, l_.str.17@PAGE
Lloh64:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_wpa_printf
	b	LBB0_17
LBB0_29:
	ldr	w0, [x19]
Lloh65:
	adrp	x2, l_.str.21@PAGE
Lloh66:
	add	x2, x2, l_.str.21@PAGEOFF
	mov	x1, x22
	bl	_get_child_node
	cbz	x0, LBB0_31
; %bb.30:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_process_est_cert
	tbnz	x0, #63, LBB0_35
LBB0_31:
	mov	x0, x20
	bl	_free
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x22
	bl	_node_to_file
	tbnz	x0, #63, LBB0_34
; %bb.32:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_free
	ldr	w0, [x24]
	str	x21, [sp]
Lloh67:
	adrp	x20, l_.str.23@PAGE
Lloh68:
	add	x20, x20, l_.str.23@PAGEOFF
	mov	x1, x20
	bl	_wpa_printf
	str	x21, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_write_summary
	mov	x0, x19
	mov	x1, x21
	bl	_download_trust_roots
	mov	x20, x0
	tbz	w0, #31, LBB0_19
; %bb.33:
	ldr	w0, [x24]
Lloh69:
	adrp	x22, l_.str.24@PAGE
Lloh70:
	add	x22, x22, l_.str.24@PAGEOFF
	mov	x1, x22
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x22
	bl	_write_summary
	mov	x0, x21
	bl	_unlink
	b	LBB0_19
LBB0_34:
	ldr	w0, [x24]
Lloh71:
	adrp	x1, l_.str.22@PAGE
Lloh72:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_free
	b	LBB0_18
LBB0_35:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_free
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"./Wi-Fi/"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported location for addMO to add PPS MO: '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"/PerProviderSubscription"

l_.str.3:                               ; @.str.3
	.asciz	"Unsupported location for addMO to add PPS MO (extra directory): '%s'"

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

l_.str.5:                               ; @.str.5
	.asciz	"FQDN '%s' for new PPS MO did not have suffix match with server's dNSName values, count: %d"

l_.str.6:                               ; @.str.6
	.asciz	"FQDN '%s' for new PPS MO did not have suffix match with server's dNSName values"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid FQDN '%s'"

l_.str.8:                               ; @.str.8
	.asciz	"SP"

	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
l_.str.9:                               ; @.str.9
	.asciz	"SP/%s"

	.comm	_errno,4,2                      ; @errno
	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.10:                              ; @.str.10
	.asciz	"mkdir(%s) failed: %s"

	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
l_.str.11:                              ; @.str.11
	.asciz	"SP/%s/pps.xml"

l_.str.12:                              ; @.str.12
	.asciz	"PPS file '%s' exists - reject addMO"

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

l_.str.14:                              ; @.str.14
	.asciz	"Could not extract MO text"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.15:                              ; @.str.15
	.asciz	"[hs20] addMO text: '%s'"

l_.str.16:                              ; @.str.16
	.asciz	"[hs20] Could not parse addMO text"

l_.str.17:                              ; @.str.17
	.asciz	"[hs20] Could not parse addMO TNDS text"

l_.str.18:                              ; @.str.18
	.asciz	"Parsed TNDS"

l_.str.19:                              ; @.str.19
	.asciz	"PerProviderSubscription"

l_.str.20:                              ; @.str.20
	.asciz	"[hs20] Unexpected PPS MO root node name '%s'"

l_.str.21:                              ; @.str.21
	.asciz	"Credential/DigitalCertificate/CertSHA256Fingerprint"

l_.str.22:                              ; @.str.22
	.asciz	"Could not write MO to file"

l_.str.23:                              ; @.str.23
	.asciz	"A new PPS MO added as '%s'"

l_.str.24:                              ; @.str.24
	.asciz	"Remove invalid PPS MO file"

.subsections_via_symbols
