	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hs20_spp_upload_mo
_hs20_spp_upload_mo:                    ## @hs20_spp_upload_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
	pushq	%rax
	.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, %r15
	movq	%rdi, %r12
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rdx
	callq	_get_spp_attr_value
	movq	%rax, %rbx
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_URN_HS20_PPS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_attr_value_free
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_12:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_xml_node_get_attr_value_free
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	leaq	L_.str.5(%rip), %rcx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_build_spp_post_dev_data
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rax, %rbx
	movl	(%r12), %edi
	movq	-48(%rbp), %rsi
	movl	(%r13), %ecx
	movq	%rax, %rdx
	movq	%r14, %r8
	callq	_add_mo_container
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	callq	_soap_send_receive
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r14
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_debug_dump_node
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hs20_spp_validate
	testq	%rax, %rax
	jns	LBB0_12
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_xml_node_free
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moURN"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"No URN included"

L_.str.2:                               ## @.str.2
	.asciz	"Upload MO request - URN=%s"

	.comm	_URN_HS20_PPS,4,2               ## @URN_HS20_PPS
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported moURN"

L_.str.4:                               ## @.str.4
	.asciz	"PPS file name no known"

L_.str.5:                               ## @.str.5
	.asciz	"MO upload"

L_.str.6:                               ## @.str.6
	.asciz	"Received response to MO upload"

L_.str.7:                               ## @.str.7
	.asciz	"sppPostDevDataResponse"

L_.str.8:                               ## @.str.8
	.asciz	"SPP validation failed"

	.no_dead_strip	_hs20_spp_upload_mo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hs20_spp_upload_mo
_hs20_spp_upload_mo:                    ; @hs20_spp_upload_mo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_get_spp_attr_value
	mov	x22, x0
Lloh2:
	adrp	x23, _MSG_INFO@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	x22, LBB0_3
; %bb.1:
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh6:
	adrp	x24, _URN_HS20_PPS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _URN_HS20_PPS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_strcasecmp
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_get_attr_value_free
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_xml_node_get_attr_value_free
	cbz	x20, LBB0_11
; %bb.7:
Lloh12:
	adrp	x3, l_.str.5@PAGE
Lloh13:
	add	x3, x3, l_.str.5@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_build_spp_post_dev_data
	cbz	x0, LBB0_4
; %bb.8:
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
	ldr	w3, [x24]
	mov	x2, x21
	mov	x4, x20
	bl	_add_mo_container
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_soap_send_receive
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.9:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_debug_dump_node
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_hs20_spp_validate
	tbz	x0, #63, LBB0_5
; %bb.10:
	ldr	w0, [x23]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19]
	mov	x1, x20
	bl	_xml_node_free
	b	LBB0_4
LBB0_11:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moURN"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"No URN included"

l_.str.2:                               ; @.str.2
	.asciz	"Upload MO request - URN=%s"

	.comm	_URN_HS20_PPS,4,2               ; @URN_HS20_PPS
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported moURN"

l_.str.4:                               ; @.str.4
	.asciz	"PPS file name no known"

l_.str.5:                               ; @.str.5
	.asciz	"MO upload"

l_.str.6:                               ; @.str.6
	.asciz	"Received response to MO upload"

l_.str.7:                               ; @.str.7
	.asciz	"sppPostDevDataResponse"

l_.str.8:                               ; @.str.8
	.asciz	"SPP validation failed"

	.no_dead_strip	_hs20_spp_upload_mo
.subsections_via_symbols
