	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cmd_oma_dm_sim_prov
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cmd_oma_dm_sim_prov
	.p2align	4, 0x90
_cmd_oma_dm_sim_prov:                   ## @cmd_oma_dm_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	%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	%rdi, %r12
	movq	$0, -48(%rbp)
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movl	$2, (%r12)
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_write_summary
	movl	16(%r12), %edi
	movl	$15, %esi
	callq	_wait_ip_addr
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
LBB0_4:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_write_summary
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_build_oma_dm_1_sub_prov
	movq	%rax, %r14
	movl	$-1, %eax
	testq	%r14, %r14
	je	LBB0_13
## %bb.5:
	movl	$2, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	cmoveq	%r15, %rsi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_oma_dm_send_recv
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	movq	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	leaq	-48(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_oma_dm_process
	movq	%rax, %r14
	movl	24(%r12), %edi
	movq	%r13, %rsi
	callq	_xml_node_free
	incl	%ebx
	movq	-48(%rbp), %rsi
	testq	%r14, %r14
	jne	LBB0_6
## %bb.8:
	movq	%rsi, %rdi
	callq	_os_free
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_printf
	movl	20(%r12), %esi
	movq	%r12, %rdi
	callq	_cmd_set_pps
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rbx
	movq	%rbx, %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_write_summary
	movl	16(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_wpa_command
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	cmpq	$1, 8(%r12)
	sbbl	%eax, %eax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rbx
	movq	%rbx, %rsi
	callq	_wpa_printf
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_write_summary
	jmp	LBB0_12
	.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	"OMA-DM 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"

L_.str.4:                               ## @.str.4
	.asciz	"OMA-DM SIM provisioning"

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

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

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_oma_dm_sim_prov            ; -- Begin function cmd_oma_dm_sim_prov
	.p2align	2
_cmd_oma_dm_sim_prov:                   ; @cmd_oma_dm_sim_prov
	.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	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x24, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x24]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x20, x1
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w8, #2
	str	w8, [x19]
	ldr	w0, [x24]
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x21
	bl	_write_summary
	ldr	w0, [x19, #16]
	mov	w1, #15
	bl	_wait_ip_addr
	tbz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
LBB0_3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_write_summary
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_build_oma_dm_1_sub_prov
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	x0, #0
	mov	w21, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x0, #0
	csel	x1, x20, x0, eq
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_oma_dm_send_recv
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x21
	mov	x5, #0
	mov	x6, #0
	bl	_oma_dm_process
	mov	x22, x0
	ldr	w0, [x19, #24]
	mov	x1, x23
	bl	_xml_node_free
	ldr	x0, [sp, #8]
	add	w21, w21, #1
	cbnz	x22, LBB0_5
; %bb.7:
	bl	_os_free
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_cmd_set_pps
	ldr	w0, [x24]
Lloh12:
	adrp	x20, l_.str.6@PAGE
Lloh13:
	add	x20, x20, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	bl	_write_summary
	ldr	w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_command
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csetm	w0, eq
	b	LBB0_12
LBB0_10:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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_13:
	ldr	w0, [x24]
Lloh18:
	adrp	x20, l_.str.8@PAGE
Lloh19:
	add	x20, x20, l_.str.8@PAGEOFF
	mov	x1, x20
	bl	_wpa_printf
	mov	x0, x19
	mov	x1, x20
	bl	_write_summary
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.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	"OMA-DM 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"

l_.str.4:                               ; @.str.4
	.asciz	"OMA-DM SIM provisioning"

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

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

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

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

.subsections_via_symbols
