	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_sim_prov                   ## -- Begin function cmd_sim_prov
	.p2align	4, 0x90
_cmd_sim_prov:                          ## @cmd_sim_prov
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MSG_INFO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	20(%r15), %edi
	callq	_os_free
	movq	%r14, %rdi
	callq	_os_strdup
	movl	%eax, 20(%r15)
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movl	16(%r15), %edi
	movl	$15, %esi
	callq	_wait_ip_addr
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
LBB0_3:
	movl	8(%r15), %edx
	movl	12(%r15), %edi
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_soap_init_client
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	_SPP_SUBSCRIPTION_REGISTRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_spp_post_dev_data
	cmpq	$1, (%r15)
	sbbl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"Invalid prov command (missing URL)"

L_.str.1:                               ## @.str.1
	.asciz	"SIM provisioning requested"

L_.str.2:                               ## @.str.2
	.asciz	"Wait for IP address before starting SIM provisioning"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get IP address for WLAN - try connection anyway"

	.comm	_SPP_SUBSCRIPTION_REGISTRATION,4,2 ## @SPP_SUBSCRIPTION_REGISTRATION
L_.str.4:                               ## @.str.4
	.asciz	"Subscription provisioning"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_sim_prov                   ; -- Begin function cmd_sim_prov
	.p2align	2
_cmd_sim_prov:                          ; @cmd_sim_prov
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #20]
	bl	_os_free
	mov	x0, x20
	bl	_os_strdup
	str	w0, [x19, #20]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #16]
	mov	w1, #15
	bl	_wait_ip_addr
	tbz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_3:
	ldp	w2, w0, [x19, #8]
	mov	x1, x20
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_soap_init_client
	tbnz	x0, #63, LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _SPP_SUBSCRIPTION_REGISTRATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPP_SUBSCRIPTION_REGISTRATION@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	bl	_spp_post_dev_data
	ldr	x8, [x19]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid prov command (missing URL)"

l_.str.1:                               ; @.str.1
	.asciz	"SIM provisioning requested"

l_.str.2:                               ; @.str.2
	.asciz	"Wait for IP address before starting SIM provisioning"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get IP address for WLAN - try connection anyway"

	.comm	_SPP_SUBSCRIPTION_REGISTRATION,4,2 ; @SPP_SUBSCRIPTION_REGISTRATION
l_.str.4:                               ; @.str.4
	.asciz	"Subscription provisioning"

.subsections_via_symbols
