	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_osu_select
_cmd_osu_select:                        ## @cmd_osu_select
	.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	$632, %rsp                      ## imm = 0x278
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -600(%rbp)
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_write_summary
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	%r15d, -620(%rbp)               ## 4-byte Spill
	movl	%r14d, -624(%rbp)               ## 4-byte Spill
	movq	%r13, -576(%rbp)                ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdx
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$255, %esi
	movq	%rbx, -608(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_snprintf
	leaq	-600(%rbp), %rsi
	movq	%r14, %rdi
	callq	_parse_osu_providers
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	testq	%r12, %r12
	movq	%rax, -568(%rbp)                ## 8-byte Spill
	je	LBB0_18
## %bb.5:
	cmpq	$0, -600(%rbp)
	je	LBB0_16
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %rbx
	movq	-568(%rbp), %r13                ## 8-byte Reload
	movq	-592(%rbp), %rbx                ## 8-byte Reload
	jb	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	-600(%rbp), %rax
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	imulq	$104, %rbx, %r15
	cmpq	$0, (%r13,%r15)
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, -592(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	addq	%r15, %r13
	addq	$88, %r13
	addq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax,%r14), %rdi
	movq	%r12, %rsi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rbx
	movq	(%r15), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jb	LBB0_9
	jmp	LBB0_12
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
	jmp	LBB0_64
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-304(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.4(%rip), %rsi
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	callq	_write_result
	movl	$-1, %r14d
	jmp	LBB0_64
LBB0_18:
	leaq	L_.str.7(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	-608(%rbp), %rcx                ## 8-byte Reload
	callq	_snprintf
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_19
## %bb.21:
	movq	%rax, %r12
	leaq	L_.str.10(%rip), %rdi
	movl	$162, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	_fwrite
	cmpq	$0, -600(%rbp)
	jne	LBB0_23
## %bb.22:
	leaq	L_.str.11(%rip), %rdi
	movl	$27, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	cmpq	$0, -600(%rbp)
	je	LBB0_40
LBB0_23:
	xorl	%eax, %eax
	movq	%r12, -592(%rbp)                ## 8-byte Spill
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-584(%rbp), %rdi                ## 8-byte Reload
	movl	72(%r13,%rdi), %eax
	testb	$1, %al
	leaq	L_.str.25(%rip), %rcx
	leaq	L_.str.26(%rip), %rsi
	cmoveq	%rsi, %rcx
	movq	64(%r13,%rdi), %rdx
	testb	$2, %al
	leaq	L_.str.27(%rip), %r8
	cmoveq	%rsi, %r8
	movq	%r12, %rdi
	leaq	L_.str.24(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-640(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	-600(%rbp), %rax
	jae	LBB0_40
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
	leal	1(%rax), %edx
	movq	%r12, %rdi
	leaq	L_.str.12(%rip), %rsi
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r12, -640(%rbp)                ## 8-byte Spill
	imulq	$104, %r12, %rax
	movq	%rax, -584(%rbp)                ## 8-byte Spill
	cmpq	$0, 8(%r13,%rax)
	leaq	L_.str.14(%rip), %r12
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	movl	$16, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	72(%r14), %rax
	movl	-16(%rax,%r13), %ebx
	movl	(%rax,%r13), %edi
	movq	%r12, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	leaq	L_.str.16(%rip), %rcx
	leaq	L_.str.15(%rip), %rax
	cmoveq	%rax, %rcx
	movq	-592(%rbp), %rdi                ## 8-byte Reload
	leaq	L_.str.13(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r15
	addq	$24, %r13
	cmpq	(%r14), %r15
	jb	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$4, %esi
	movl	$1, %edx
	leaq	L_.str.17(%rip), %rdi
	movq	-592(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rcx
	callq	_fwrite
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, (%rax,%rcx)
	leaq	L_.str.18(%rip), %r12
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-584(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %rdx
	movq	%rdx, -616(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx), %r15
	addq	$88, %r15
	movl	$8, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rax
	movq	-8(%rax,%rbx), %rcx
	movq	(%rax,%rbx), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r13
	addq	$16, %rbx
	movq	-616(%rbp), %rax                ## 8-byte Reload
	cmpq	(%rax), %r13
	jb	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$18, %esi
	movl	$1, %edx
	leaq	L_.str.19(%rip), %rdi
	movq	%r14, %rcx
	movq	%r14, %r13
	callq	_fwrite
	movq	-584(%rbp), %rax                ## 8-byte Reload
	movq	-568(%rbp), %rcx                ## 8-byte Reload
	cmpq	$0, 16(%rcx,%rax)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-584(%rbp), %rax                ## 8-byte Reload
	movq	-568(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %r14
	addq	$16, %r14
	movl	$8, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	80(%r14), %rax
	movq	-8(%rax,%rbx), %rdx
	movq	(%rax,%rbx), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r15
	addq	$16, %rbx
	cmpq	(%r14), %r15
	jb	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-584(%rbp), %r14                ## 8-byte Reload
	movq	-568(%rbp), %rbx                ## 8-byte Reload
	movq	24(%rbx,%r14), %rdx
	movq	32(%rbx,%r14), %rcx
	movq	%r13, %rdi
	leaq	L_.str.20(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	40(%rbx,%r14), %rdx
	cmpb	$0, (%rdx)
	movq	%r13, %r12
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.21(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-584(%rbp), %rax                ## 8-byte Reload
	movq	-568(%rbp), %r13                ## 8-byte Reload
	movq	48(%r13,%rax), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.22(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_37:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-584(%rbp), %rax                ## 8-byte Reload
	movq	56(%r13,%rax), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.23(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_39
LBB0_40:
	leaq	L_.str.28(%rip), %rdi
	movl	$15, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fwrite
	movq	%r12, %rdi
	callq	_fclose
	leaq	L_.str.29(%rip), %rdx
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movq	-608(%rbp), %rcx                ## 8-byte Reload
	callq	_snprintf
	leaq	L_.str.30(%rip), %rsi
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_write_summary
	movq	%rbx, %rdi
	callq	_hs20_web_browser
	movl	%eax, %ebx
	jmp	LBB0_41
LBB0_13:
	movq	-600(%rbp), %rax
LBB0_15:
	cmpq	%rax, %rbx
	jne	LBB0_17
LBB0_16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %r14
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_write_summary
	jmp	LBB0_20
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %r15
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_write_summary
	incl	%ebx
LBB0_41:
	movl	$-1, %r14d
	testl	%ebx, %ebx
	jle	LBB0_63
## %bb.42:
	movl	%ebx, %eax
	cmpq	%rax, -600(%rbp)
	jb	LBB0_63
## %bb.43:
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.31(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	decl	%ebx
	movl	(%r14), %edi
	imulq	$104, %rbx, %rbx
	leaq	(%rbx,%r13), %r15
	addq	$24, %r15
	movq	24(%r13,%rbx), %rdx
	leaq	L_.str.32(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %edi
	movq	32(%r13,%rbx), %rdx
	leaq	L_.str.33(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	40(%r13,%rbx), %rdx
	cmpb	$0, (%rdx)
	je	LBB0_45
## %bb.44:
	movl	(%r14), %edi
	leaq	L_.str.34(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_45:
	movl	(%r14), %edi
	movq	64(%r13,%rbx), %rdx
	leaq	L_.str.35(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rcx
	movq	%r15, -616(%rbp)                ## 8-byte Spill
	movq	8(%r15), %r8
	movq	64(%r13,%rbx), %r9
	leaq	L_.str.36(%rip), %rsi
	movq	-576(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_write_summary
	movq	%rbx, -592(%rbp)                ## 8-byte Spill
	movq	(%r13,%rbx), %rax
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_48
## %bb.46:
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %r15
	leaq	(%rax,%rcx), %r12
	addq	$88, %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rcx
	movq	8(%rax,%rbx), %rdx
	leaq	L_.str.37(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%r14), %rax
	movl	4(%rax,%r13,8), %edi
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	32(%r14), %rax
	movl	(%rax,%r13,8), %edi
	movq	(%r12), %rax
	movq	(%rax,%rbx), %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	incq	%r13
	addq	$16, %rbx
	cmpq	(%r15), %r13
	jb	LBB0_47
LBB0_48:
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rax,%rcx), %rax
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_53
## %bb.49:
	movq	-568(%rbp), %rax                ## 8-byte Reload
	movq	-592(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %rbx
	addq	$8, %rbx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_50 Depth=1
	incq	%r13
	addq	$24, %r12
	cmpq	(%rbx), %r13
	jae	LBB0_53
LBB0_50:                                ## =>This Inner Loop Header: Depth=1
	movq	72(%rbx), %rax
	movl	(%rax,%r12), %r14d
	movl	16(%rax,%r12), %edi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	leaq	L_.str.16(%rip), %r9
	leaq	L_.str.15(%rip), %rax
	cmoveq	%rax, %r9
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	leaq	L_.str.38(%rip), %rdx
	movq	-608(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_os_snprintf
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	72(%rbx), %rax
	movq	8(%rax,%r12), %rcx
	leaq	L_.str.39(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-576(%rbp), %r14                ## 8-byte Reload
	movq	24(%r14), %rax
	movl	(%rax,%r13,4), %edi
	movq	72(%rbx), %rax
	movq	8(%rax,%r12), %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	%r15, %rdi
	leaq	-648(%rbp), %r15
	movq	%r15, %rsi
	callq	_os_readfile
	movq	%rax, -632(%rbp)
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r13,4), %ecx
	movl	$1, %edi
	leaq	-632(%rbp), %rsi
	movq	%r15, %rdx
	callq	_sha256_vector
	movq	-632(%rbp), %rdi
	callq	_os_free
	jmp	LBB0_52
LBB0_53:
	movl	-624(%rbp), %r14d               ## 4-byte Reload
	testl	%r14d, %r14d
	je	LBB0_54
## %bb.55:
	movq	-568(%rbp), %r13                ## 8-byte Reload
	movq	-592(%rbp), %rdi                ## 8-byte Reload
	leaq	(%rdi,%r13), %rbx
	addq	$64, %rbx
	cmpl	$2, %r14d
	jne	LBB0_61
## %bb.56:
	movl	72(%r13,%rdi), %eax
	testb	$2, %al
	jne	LBB0_57
## %bb.58:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testb	$1, %al
	jne	LBB0_59
## %bb.60:
	leaq	L_.str.42(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
	jmp	LBB0_63
LBB0_19:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	leaq	-304(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_20:
	movq	%r13, %rdi
	callq	_free
	movl	$-1, %r14d
	jmp	LBB0_64
LBB0_54:
	movq	-568(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_63
LBB0_61:
	leaq	(%rdi,%r13), %rax
	addq	$40, %rax
	movq	-616(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rsi
	movq	8(%rcx), %rdx
	movq	(%rax), %rcx
	movq	(%rbx), %r8
	movl	72(%r13,%rdi), %r9d
	movups	48(%r13,%rdi), %xmm0
	movups	%xmm0, 8(%rsp)
	movl	-620(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	callq	_osu_connect
	jmp	LBB0_62
LBB0_57:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.40(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rsi
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	callq	_cmd_prov
	jmp	LBB0_62
LBB0_59:
	leaq	L_.str.41(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rsi
	movq	-576(%rbp), %rdi                ## 8-byte Reload
	callq	_cmd_oma_dm_prov
LBB0_62:
	movl	%eax, %r14d
LBB0_63:
	movq	%r13, %rdi
	callq	_free
LBB0_64:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_66
## %bb.65:
	movl	%r14d, %eax
	addq	$632, %rsp                      ## imm = 0x278
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_66:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OSU provider selection"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Missing dir parameter to osu_select"

L_.str.2:                               ## @.str.2
	.asciz	"%s/osu-providers.txt"

L_.str.3:                               ## @.str.3
	.asciz	"Could not find any OSU providers from %s"

L_.str.4:                               ## @.str.4
	.asciz	"No OSU providers available"

L_.str.5:                               ## @.str.5
	.asciz	"Requested operator friendly name '%s' not found in the list of available providers"

L_.str.6:                               ## @.str.6
	.asciz	"OSU Provider selected based on requested operator friendly name '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"%s/osu-providers.html"

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

L_.str.9:                               ## @.str.9
	.asciz	"Could not open %s"

L_.str.10:                              ## @.str.10
	.asciz	"<html><head><meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\"<title>Select service operator</title></head><body><h1>Select service operator</h1>\n"

L_.str.11:                              ## @.str.11
	.asciz	"No online signup available\n"

L_.str.12:                              ## @.str.12
	.asciz	"<p>\n<a href=\"osu://%d\"><table><tr><td>"

L_.str.13:                              ## @.str.13
	.asciz	"<img src=\"osu-icon-%d.%s\">\n"

L_.str.14:                              ## @.str.14
	.asciz	"image/png"

L_.str.15:                              ## @.str.15
	.asciz	"png"

L_.str.16:                              ## @.str.16
	.asciz	"icon"

L_.str.17:                              ## @.str.17
	.asciz	"<td>"

L_.str.18:                              ## @.str.18
	.asciz	"<small>[%s]</small> %s<br>\n"

L_.str.19:                              ## @.str.19
	.asciz	"<tr><td colspan=2>"

L_.str.20:                              ## @.str.20
	.asciz	"</table></a><br><small>BSSID: %s<br>\nSSID: %s<br>\n"

L_.str.21:                              ## @.str.21
	.asciz	"SSID2: %s<br>\n"

L_.str.22:                              ## @.str.22
	.asciz	"NAI: %s<br>\n"

L_.str.23:                              ## @.str.23
	.asciz	"NAI2: %s<br>\n"

L_.str.24:                              ## @.str.24
	.asciz	"URL: %s<br>\nmethods:%s%s<br>\n</small></p>\n"

L_.str.25:                              ## @.str.25
	.asciz	" OMA-DM"

L_.str.26:                              ## @.str.26
	.space	1

L_.str.27:                              ## @.str.27
	.asciz	" SOAP-XML-SPP"

L_.str.28:                              ## @.str.28
	.asciz	"</body></html>\n"

L_.str.29:                              ## @.str.29
	.asciz	"file://%s/osu-providers.html"

L_.str.30:                              ## @.str.30
	.asciz	"Start web browser with OSU provider selection page"

L_.str.31:                              ## @.str.31
	.asciz	"Selected OSU id=%d"

L_.str.32:                              ## @.str.32
	.asciz	"BSSID: %s"

L_.str.33:                              ## @.str.33
	.asciz	"SSID: %s"

L_.str.34:                              ## @.str.34
	.asciz	"SSID2: %s"

L_.str.35:                              ## @.str.35
	.asciz	"URL: %s"

L_.str.36:                              ## @.str.36
	.asciz	"Selected OSU provider id=%d BSSID=%s SSID=%s URL=%s"

L_.str.37:                              ## @.str.37
	.asciz	"FRIENDLY_NAME: [%s]%s"

L_.str.38:                              ## @.str.38
	.asciz	"%s/osu-icon-%d.%s"

L_.str.39:                              ## @.str.39
	.asciz	"ICON: %s (%s)"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.40:                              ## @.str.40
	.asciz	"Calling cmd_prov from cmd_osu_select"

L_.str.41:                              ## @.str.41
	.asciz	"Calling cmd_oma_dm_prov from cmd_osu_select"

L_.str.42:                              ## @.str.42
	.asciz	"No supported OSU provisioning method"

	.no_dead_strip	_cmd_osu_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_osu_select
_cmd_osu_select:                        ; @cmd_osu_select
	.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, #656
	mov	x21, x4
	mov	x26, x3
	mov	x27, 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, #-96]
	str	xzr, [sp, #120]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_write_summary
	cbz	x20, LBB0_12
; %bb.1:
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x19, sp, #385
	add	x0, sp, #385
	mov	w1, #255
	mov	x3, x20
	bl	_snprintf
	add	x0, sp, #385
	add	x1, sp, #120
	bl	_parse_osu_providers
	str	x0, [sp, #96]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_13
; %bb.2:
	cbz	x21, LBB0_14
; %bb.3:
	ldr	x8, [sp, #120]
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_37
; %bb.4:
	mov	x28, x20
	mov	x23, #0
	mov	w22, #104
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	x19, x8
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	b.lo	LBB0_35
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [sp, #120]
	cmp	x23, x8
	b.hs	LBB0_36
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	madd	x20, x23, x22, x8
	mov	x24, x20
	ldr	x8, [x24], #88
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, #0
	mov	x19, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x0, [x8, x25]
	mov	x1, x21
	bl	_os_strcmp
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x19, x19, #1
	ldr	x8, [x20]
	add	x25, x25, #16
	cmp	x19, x8
	b.lo	LBB0_10
	b	LBB0_6
LBB0_12:
Lloh7:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w21, #-1
	b	LBB0_63
LBB0_13:
Lloh12:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_write_result
	mov	w21, #-1
	b	LBB0_63
LBB0_14:
Lloh19:
	adrp	x2, l_.str.7@PAGE
Lloh20:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x19, sp, #385
	add	x0, sp, #385
	mov	w1, #255
	str	x20, [sp, #72]                  ; 8-byte Folded Spill
	mov	x3, x20
	bl	_snprintf
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x0, sp, #385
	bl	_fopen
	cbz	x0, LBB0_56
; %bb.15:
	mov	x24, x0
	stp	w26, w27, [sp, #64]             ; 8-byte Folded Spill
Lloh23:
	adrp	x0, l_.str.10@PAGE
Lloh24:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	w1, #162
	mov	w2, #1
	mov	x3, x24
	bl	_fwrite
	ldr	x8, [sp, #120]
	ldr	x21, [sp, #96]                  ; 8-byte Folded Reload
	cbnz	x8, LBB0_17
; %bb.16:
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	w1, #27
	mov	w2, #1
	mov	x3, x24
	bl	_fwrite
	ldr	x8, [sp, #120]
	cbz	x8, LBB0_34
LBB0_17:
	mov	x27, #0
Lloh27:
	adrp	x26, l_.str.14@PAGE
Lloh28:
	add	x26, x26, l_.str.14@PAGEOFF
Lloh29:
	adrp	x19, l_.str.16@PAGE
Lloh30:
	add	x19, x19, l_.str.16@PAGEOFF
Lloh31:
	adrp	x25, l_.str.15@PAGE
Lloh32:
	add	x25, x25, l_.str.15@PAGEOFF
Lloh33:
	adrp	x22, l_.str.13@PAGE
Lloh34:
	add	x22, x22, l_.str.13@PAGEOFF
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	madd	x8, x27, x20, x21
	ldr	x9, [x8, #64]
	ldr	w8, [x8, #72]
	tst	w8, #0x1
Lloh35:
	adrp	x10, l_.str.25@PAGE
Lloh36:
	add	x10, x10, l_.str.25@PAGEOFF
Lloh37:
	adrp	x11, l_.str.26@PAGE
Lloh38:
	add	x11, x11, l_.str.26@PAGEOFF
	csel	x10, x11, x10, eq
	tst	w8, #0x2
Lloh39:
	adrp	x8, l_.str.27@PAGE
Lloh40:
	add	x8, x8, l_.str.27@PAGEOFF
	csel	x8, x11, x8, eq
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
	mov	x0, x24
Lloh41:
	adrp	x1, l_.str.24@PAGE
Lloh42:
	add	x1, x1, l_.str.24@PAGEOFF
	bl	_fprintf
	add	x27, x27, #1
	ldr	x8, [sp, #120]
	cmp	x27, x8
	b.hs	LBB0_34
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
	add	w8, w27, #1
	str	x8, [sp]
	mov	x0, x24
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_fprintf
	mov	w8, #104
	str	x27, [sp, #88]                  ; 8-byte Folded Spill
	madd	x20, x27, x8, x21
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x27, x19
	mov	x19, #0
	mov	x28, #0
	ldp	x10, x8, [sp, #88]              ; 16-byte Folded Reload
	mov	w9, #104
	madd	x8, x10, x9, x8
	add	x23, x8, #80
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	add	x8, x8, x19
	ldr	w0, [x8, #16]
	ldr	w21, [x8]
	mov	x1, x26
	bl	_strcasecmp
	cmp	x0, #0
	csel	x8, x25, x27, eq
	stp	x21, x8, [sp]
	mov	x0, x24
	mov	x1, x22
	bl	_fprintf
	add	x28, x28, #1
	ldr	x8, [x20]
	add	x19, x19, #24
	cmp	x28, x8
	b.lo	LBB0_21
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x22, x25
Lloh45:
	adrp	x0, l_.str.17@PAGE
Lloh46:
	add	x0, x0, l_.str.17@PAGEOFF
	mov	w1, #4
	mov	w2, #1
	mov	x3, x24
	bl	_fwrite
	ldp	x27, x21, [sp, #88]             ; 16-byte Folded Reload
	mov	w8, #104
	madd	x19, x27, x8, x21
	ldr	x8, [x19]
Lloh47:
	adrp	x25, l_.str.18@PAGE
Lloh48:
	add	x25, x25, l_.str.18@PAGEOFF
	cbz	x8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x20, #0
	mov	x23, #0
	mov	w8, #104
	madd	x8, x27, x8, x21
	add	x28, x8, #88
LBB0_24:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	add	x8, x8, x20
	ldp	x8, x9, [x8]
	stp	x9, x8, [sp]
	mov	x0, x24
	mov	x1, x25
	bl	_fprintf
	add	x23, x23, #1
	ldr	x8, [x19]
	add	x20, x20, #16
	cmp	x23, x8
	b.lo	LBB0_24
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
Lloh49:
	adrp	x0, l_.str.19@PAGE
Lloh50:
	add	x0, x0, l_.str.19@PAGEOFF
	mov	w1, #18
	mov	w2, #1
	mov	x3, x24
	bl	_fwrite
	mov	w8, #104
	madd	x19, x27, x8, x21
	ldr	x8, [x19, #16]!
	cbz	x8, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x20, #0
	mov	x23, #0
	mov	w8, #104
	madd	x8, x27, x8, x21
	add	x28, x8, #96
LBB0_27:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x28]
	add	x8, x8, x20
	ldp	x9, x8, [x8]
	stp	x9, x8, [sp]
	mov	x0, x24
	mov	x1, x25
	bl	_fprintf
	add	x23, x23, #1
	ldr	x8, [x19]
	add	x20, x20, #16
	cmp	x23, x8
	b.lo	LBB0_27
LBB0_28:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w20, #104
	madd	x19, x27, x20, x21
	ldp	x8, x9, [x19, #24]
	stp	x8, x9, [sp]
	mov	x0, x24
Lloh51:
	adrp	x1, l_.str.20@PAGE
Lloh52:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_fprintf
	ldr	x8, [x19, #40]
	ldrb	w9, [x8]
	cbz	w9, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_19 Depth=1
	str	x8, [sp]
	mov	x0, x24
Lloh53:
	adrp	x1, l_.str.21@PAGE
Lloh54:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_fprintf
LBB0_30:                                ;   in Loop: Header=BB0_19 Depth=1
	madd	x8, x27, x20, x21
	ldr	x8, [x8, #48]
	ldrb	w9, [x8]
Lloh55:
	adrp	x19, l_.str.16@PAGE
Lloh56:
	add	x19, x19, l_.str.16@PAGEOFF
	mov	x25, x22
	cbz	w9, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_19 Depth=1
	str	x8, [sp]
	mov	x0, x24
Lloh57:
	adrp	x1, l_.str.22@PAGE
Lloh58:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_fprintf
LBB0_32:                                ;   in Loop: Header=BB0_19 Depth=1
	madd	x8, x27, x20, x21
	ldr	x8, [x8, #56]
	ldrb	w9, [x8]
Lloh59:
	adrp	x22, l_.str.13@PAGE
Lloh60:
	add	x22, x22, l_.str.13@PAGEOFF
	cbz	w9, LBB0_18
; %bb.33:                               ;   in Loop: Header=BB0_19 Depth=1
	str	x8, [sp]
	mov	x0, x24
Lloh61:
	adrp	x1, l_.str.23@PAGE
Lloh62:
	add	x1, x1, l_.str.23@PAGEOFF
	bl	_fprintf
	b	LBB0_18
LBB0_34:
Lloh63:
	adrp	x0, l_.str.28@PAGE
Lloh64:
	add	x0, x0, l_.str.28@PAGEOFF
	mov	w1, #15
	mov	w2, #1
	mov	x3, x24
	bl	_fwrite
	mov	x0, x24
	bl	_fclose
Lloh65:
	adrp	x2, l_.str.29@PAGE
Lloh66:
	add	x2, x2, l_.str.29@PAGEOFF
	add	x0, sp, #385
	mov	w1, #255
	ldr	x20, [sp, #72]                  ; 8-byte Folded Reload
	mov	x3, x20
	bl	_snprintf
Lloh67:
	adrp	x1, l_.str.30@PAGE
Lloh68:
	add	x1, x1, l_.str.30@PAGEOFF
	ldr	x0, [sp, #80]                   ; 8-byte Folded Reload
	bl	_write_summary
	add	x0, sp, #385
	bl	_hs20_web_browser
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w26, w27, [sp, #64]             ; 8-byte Folded Reload
	b	LBB0_39
LBB0_35:
	ldr	x8, [sp, #120]
LBB0_36:
	cmp	x23, x8
	b.ne	LBB0_38
LBB0_37:
Lloh69:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh72:
	adrp	x22, l_.str.5@PAGE
Lloh73:
	add	x22, x22, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_wpa_printf
	str	x21, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_write_summary
	b	LBB0_57
LBB0_38:
	mov	x20, x28
Lloh74:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh75:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh77:
	adrp	x22, l_.str.6@PAGE
Lloh78:
	add	x22, x22, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_wpa_printf
	str	x21, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_write_summary
	add	w0, w23, #1
LBB0_39:
	mov	w21, #-1
	subs	w28, w0, #1
	b.lt	LBB0_62
; %bb.40:
	mov	w8, w0
	ldr	x9, [sp, #120]
	cmp	x9, x8
	b.lo	LBB0_62
; %bb.41:
	str	x20, [sp, #72]                  ; 8-byte Folded Spill
	stp	w26, w27, [sp, #64]             ; 8-byte Folded Spill
Lloh79:
	adrp	x27, _MSG_INFO@GOTPAGE
Lloh80:
	ldr	x27, [x27, _MSG_INFO@GOTPAGEOFF]
	ldr	w8, [x27]
	str	x0, [sp]
Lloh81:
	adrp	x1, l_.str.31@PAGE
Lloh82:
	add	x1, x1, l_.str.31@PAGEOFF
	mov	x0, x8
	bl	_wpa_printf
	ldr	w0, [x27]
	mov	w8, #104
	ldr	x19, [sp, #96]                  ; 8-byte Folded Reload
	umaddl	x20, w28, w8, x19
	mov	x21, x20
	ldr	x8, [x21, #24]!
	str	x8, [sp]
Lloh83:
	adrp	x1, l_.str.32@PAGE
Lloh84:
	add	x1, x1, l_.str.32@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x27]
	mov	x23, x20
	ldr	x8, [x23, #32]!
	str	x8, [sp]
Lloh85:
	adrp	x1, l_.str.33@PAGE
Lloh86:
	add	x1, x1, l_.str.33@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #40]!
	str	x20, [sp, #48]                  ; 8-byte Folded Spill
	ldrb	w9, [x8]
	cbz	w9, LBB0_43
; %bb.42:
	ldr	w0, [x27]
	str	x8, [sp]
Lloh87:
	adrp	x1, l_.str.34@PAGE
Lloh88:
	add	x1, x1, l_.str.34@PAGEOFF
	bl	_wpa_printf
LBB0_43:
	ldr	w0, [x27]
	mov	w8, #104
	madd	x22, x28, x8, x19
	mov	x19, x22
	ldr	x8, [x19, #64]!
	str	x8, [sp]
Lloh89:
	adrp	x1, l_.str.35@PAGE
Lloh90:
	add	x1, x1, l_.str.35@PAGEOFF
	bl	_wpa_printf
	stp	x23, x21, [sp, #32]             ; 16-byte Folded Spill
	ldr	x8, [x21]
	ldr	x9, [x23]
	str	x19, [sp, #56]                  ; 8-byte Folded Spill
	ldr	x10, [x19]
	stp	x9, x10, [sp, #16]
	stp	xzr, x8, [sp]
Lloh91:
	adrp	x1, l_.str.36@PAGE
Lloh92:
	add	x1, x1, l_.str.36@PAGEOFF
	ldr	x19, [sp, #80]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_write_summary
	ldr	x8, [x22]
	str	x8, [x19]
	cbz	x8, LBB0_46
; %bb.44:
	mov	x23, #0
	mov	x24, #0
	mov	x25, #0
	mov	w8, #104
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	madd	x8, x28, x8, x9
	add	x26, x8, #88
Lloh93:
	adrp	x21, l_.str.37@PAGE
Lloh94:
	add	x21, x21, l_.str.37@PAGEOFF
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	ldr	x8, [x26]
	add	x8, x8, x24
	ldp	x8, x9, [x8]
	stp	x9, x8, [sp]
	mov	x1, x21
	bl	_wpa_printf
	ldr	x8, [x19, #32]
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	x1, [x8, #8]
	mov	w2, #4
	bl	_os_strlcpy
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x23]
	ldr	x8, [x26]
	ldr	x1, [x8, x24]
	mov	w2, #4
	bl	_os_strlcpy
	add	x25, x25, #1
	ldr	x8, [x22]
	add	x24, x24, #16
	add	x23, x23, #8
	cmp	x25, x8
	b.lo	LBB0_45
LBB0_46:
	mov	w8, #104
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	str	x28, [sp, #88]                  ; 8-byte Folded Spill
	madd	x23, x28, x8, x9
	ldr	x8, [x23, #8]!
	str	x8, [x19, #8]
	cbz	x8, LBB0_51
; %bb.47:
	mov	x20, x27
	mov	x28, #0
	mov	x26, #0
	mov	w8, #104
	ldp	x10, x9, [sp, #88]              ; 16-byte Folded Reload
	madd	x8, x10, x8, x9
	add	x21, x8, #80
Lloh95:
	adrp	x22, l_.str.38@PAGE
Lloh96:
	add	x22, x22, l_.str.38@PAGEOFF
	add	x27, sp, #129
Lloh97:
	adrp	x24, l_.str.39@PAGE
Lloh98:
	add	x24, x24, l_.str.39@PAGEOFF
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=1
	add	x26, x26, #1
	ldr	x8, [x23]
	add	x28, x28, #24
	cmp	x26, x8
	b.hs	LBB0_51
LBB0_49:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x8, x8, x28
	ldr	w25, [x8]
	ldr	w0, [x8, #16]
Lloh99:
	adrp	x1, l_.str.14@PAGE
Lloh100:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcasecmp
	cmp	x0, #0
Lloh101:
	adrp	x8, l_.str.16@PAGE
Lloh102:
	add	x8, x8, l_.str.16@PAGEOFF
Lloh103:
	adrp	x9, l_.str.15@PAGE
Lloh104:
	add	x9, x9, l_.str.15@PAGEOFF
	csel	x5, x9, x8, eq
	add	x0, sp, #129
	mov	w1, #256
	mov	x2, x22
	ldr	x3, [sp, #72]                   ; 8-byte Folded Reload
	mov	x4, x25
	bl	_os_snprintf
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x8, x8, x28
	ldr	x8, [x8, #8]
	stp	x27, x8, [sp]
	mov	x1, x24
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x26, lsl #2]
	ldr	x8, [x21]
	add	x8, x8, x28
	ldr	x1, [x8, #8]
	mov	w2, #4
	bl	_os_strlcpy
	add	x0, sp, #129
	add	x1, sp, #104
	bl	_os_readfile
	str	x0, [sp, #112]
	cbz	x0, LBB0_48
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=1
	ldr	x8, [x19, #16]
	ldr	w3, [x8, x26, lsl #2]
	add	x1, sp, #112
	add	x2, sp, #104
	mov	w0, #1
	bl	_sha256_vector
	ldr	x0, [sp, #112]
	bl	_os_free
	b	LBB0_48
LBB0_51:
	ldr	w21, [sp, #68]                  ; 4-byte Folded Reload
	cbz	w21, LBB0_62
; %bb.52:
	cmp	w21, #2
	b.ne	LBB0_58
; %bb.53:
	mov	w8, #104
	ldp	x10, x9, [sp, #88]              ; 16-byte Folded Reload
	madd	x8, x10, x8, x9
	ldr	w8, [x8, #72]
	tbnz	w8, #1, LBB0_59
; %bb.54:
Lloh105:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh106:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh107:
	ldr	w0, [x9]
	tbnz	w8, #0, LBB0_60
; %bb.55:
Lloh108:
	adrp	x1, l_.str.42@PAGE
Lloh109:
	add	x1, x1, l_.str.42@PAGEOFF
	bl	_wpa_printf
	mov	w21, #-1
	b	LBB0_62
LBB0_56:
Lloh110:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh111:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh113:
	adrp	x1, l_.str.9@PAGE
Lloh114:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
LBB0_57:
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	bl	_free
	mov	w21, #-1
	b	LBB0_63
LBB0_58:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x2, [x8]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x3, [x8]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x4, [x8]
	mov	w8, #104
	ldp	x10, x9, [sp, #88]              ; 16-byte Folded Reload
	madd	x8, x10, x8, x9
	ldr	w5, [x8, #72]
	ldp	x7, x8, [x8, #48]
	str	x8, [sp]
	mov	x0, x19
	ldr	w6, [sp, #64]                   ; 4-byte Folded Reload
	bl	_osu_connect
	b	LBB0_61
LBB0_59:
Lloh115:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh116:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh117:
	ldr	w0, [x8]
Lloh118:
	adrp	x1, l_.str.40@PAGE
Lloh119:
	add	x1, x1, l_.str.40@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x0, x19
	bl	_cmd_prov
	b	LBB0_61
LBB0_60:
Lloh120:
	adrp	x1, l_.str.41@PAGE
Lloh121:
	add	x1, x1, l_.str.41@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x0, x19
	bl	_cmd_oma_dm_prov
LBB0_61:
	mov	x21, x0
LBB0_62:
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
	bl	_free
LBB0_63:
	ldur	x8, [x29, #-96]
Lloh122:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh123:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh124:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_65
; %bb.64:
	mov	x0, x21
	add	sp, sp, #656
	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_65:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OSU provider selection"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Missing dir parameter to osu_select"

l_.str.2:                               ; @.str.2
	.asciz	"%s/osu-providers.txt"

l_.str.3:                               ; @.str.3
	.asciz	"Could not find any OSU providers from %s"

l_.str.4:                               ; @.str.4
	.asciz	"No OSU providers available"

l_.str.5:                               ; @.str.5
	.asciz	"Requested operator friendly name '%s' not found in the list of available providers"

l_.str.6:                               ; @.str.6
	.asciz	"OSU Provider selected based on requested operator friendly name '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"%s/osu-providers.html"

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

l_.str.9:                               ; @.str.9
	.asciz	"Could not open %s"

l_.str.10:                              ; @.str.10
	.asciz	"<html><head><meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\"<title>Select service operator</title></head><body><h1>Select service operator</h1>\n"

l_.str.11:                              ; @.str.11
	.asciz	"No online signup available\n"

l_.str.12:                              ; @.str.12
	.asciz	"<p>\n<a href=\"osu://%d\"><table><tr><td>"

l_.str.13:                              ; @.str.13
	.asciz	"<img src=\"osu-icon-%d.%s\">\n"

l_.str.14:                              ; @.str.14
	.asciz	"image/png"

l_.str.15:                              ; @.str.15
	.asciz	"png"

l_.str.16:                              ; @.str.16
	.asciz	"icon"

l_.str.17:                              ; @.str.17
	.asciz	"<td>"

l_.str.18:                              ; @.str.18
	.asciz	"<small>[%s]</small> %s<br>\n"

l_.str.19:                              ; @.str.19
	.asciz	"<tr><td colspan=2>"

l_.str.20:                              ; @.str.20
	.asciz	"</table></a><br><small>BSSID: %s<br>\nSSID: %s<br>\n"

l_.str.21:                              ; @.str.21
	.asciz	"SSID2: %s<br>\n"

l_.str.22:                              ; @.str.22
	.asciz	"NAI: %s<br>\n"

l_.str.23:                              ; @.str.23
	.asciz	"NAI2: %s<br>\n"

l_.str.24:                              ; @.str.24
	.asciz	"URL: %s<br>\nmethods:%s%s<br>\n</small></p>\n"

l_.str.25:                              ; @.str.25
	.asciz	" OMA-DM"

l_.str.26:                              ; @.str.26
	.space	1

l_.str.27:                              ; @.str.27
	.asciz	" SOAP-XML-SPP"

l_.str.28:                              ; @.str.28
	.asciz	"</body></html>\n"

l_.str.29:                              ; @.str.29
	.asciz	"file://%s/osu-providers.html"

l_.str.30:                              ; @.str.30
	.asciz	"Start web browser with OSU provider selection page"

l_.str.31:                              ; @.str.31
	.asciz	"Selected OSU id=%d"

l_.str.32:                              ; @.str.32
	.asciz	"BSSID: %s"

l_.str.33:                              ; @.str.33
	.asciz	"SSID: %s"

l_.str.34:                              ; @.str.34
	.asciz	"SSID2: %s"

l_.str.35:                              ; @.str.35
	.asciz	"URL: %s"

l_.str.36:                              ; @.str.36
	.asciz	"Selected OSU provider id=%d BSSID=%s SSID=%s URL=%s"

l_.str.37:                              ; @.str.37
	.asciz	"FRIENDLY_NAME: [%s]%s"

l_.str.38:                              ; @.str.38
	.asciz	"%s/osu-icon-%d.%s"

l_.str.39:                              ; @.str.39
	.asciz	"ICON: %s (%s)"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.40:                              ; @.str.40
	.asciz	"Calling cmd_prov from cmd_osu_select"

l_.str.41:                              ; @.str.41
	.asciz	"Calling cmd_oma_dm_prov from cmd_osu_select"

l_.str.42:                              ; @.str.42
	.asciz	"No supported OSU provisioning method"

	.no_dead_strip	_cmd_osu_select
.subsections_via_symbols
