	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_ctrl_iface_select_network
_wpa_supplicant_ctrl_iface_select_network: ## @wpa_supplicant_ctrl_iface_select_network
	.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	%rsi, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%r12, %rdi
	callq	_atoi
	movl	%eax, %ebx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	24(%r14), %edi
	movl	%ebx, %esi
	callq	_wpa_config_get_network
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	cmpl	$2, (%rax)
	jne	LBB0_2
## %bb.9:
	movl	(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_2:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_os_strstr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	addq	$6, %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_freq_range_to_channel_list
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_os_free
	movq	%rbx, (%r14)
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpa_supplicant_select_network
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"any"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"CTRL_IFACE: SELECT_NETWORK any"

L_.str.2:                               ## @.str.2
	.asciz	"CTRL_IFACE: SELECT_NETWORK id=%d"

L_.str.3:                               ## @.str.3
	.asciz	"CTRL_IFACE: Could not find network id=%d"

L_.str.4:                               ## @.str.4
	.asciz	"CTRL_IFACE: Cannot use SELECT_NETWORK with persistent P2P group"

L_.str.5:                               ## @.str.5
	.asciz	" freq="

	.no_dead_strip	_wpa_supplicant_ctrl_iface_select_network
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_ctrl_iface_select_network
_wpa_supplicant_ctrl_iface_select_network: ; @wpa_supplicant_ctrl_iface_select_network
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_os_strncmp
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_atoi
	mov	x22, x0
Lloh2:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #24]
	mov	x1, x22
	bl	_wpa_config_get_network
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.3:
	ldr	w0, [x23]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
LBB0_5:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_os_strstr
	cbz	x0, LBB0_8
; %bb.6:
	add	x1, x0, #6
	mov	x0, x19
	bl	_freq_range_to_channel_list
	cbz	x0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	x0, [x19]
	bl	_os_free
	str	x20, [x19]
LBB0_8:
	stp	xzr, xzr, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_wpa_supplicant_select_network
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	ldr	w0, [x23]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_11:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"any"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"CTRL_IFACE: SELECT_NETWORK any"

l_.str.2:                               ; @.str.2
	.asciz	"CTRL_IFACE: SELECT_NETWORK id=%d"

l_.str.3:                               ; @.str.3
	.asciz	"CTRL_IFACE: Could not find network id=%d"

l_.str.4:                               ; @.str.4
	.asciz	"CTRL_IFACE: Cannot use SELECT_NETWORK with persistent P2P group"

l_.str.5:                               ; @.str.5
	.asciz	" freq="

	.no_dead_strip	_wpa_supplicant_ctrl_iface_select_network
.subsections_via_symbols
