	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_pick_network    ## -- Begin function wpa_supplicant_pick_network
	.p2align	4, 0x90
_wpa_supplicant_pick_network:           ## @wpa_supplicant_pick_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
	cmpq	$0, 40(%rdi)
	je	LBB0_24
## %bb.1:
	movq	%rdi, %r15
	cmpq	$0, (%rdi)
	je	LBB0_24
## %bb.2:
	movq	%rsi, %r14
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	24(%r15), %rcx
	addq	$16, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	32(%rbx), %rcx
	cmpq	%rax, %rbx
	jne	LBB0_5
LBB0_7:
	movq	$0, 32(%r15)
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
LBB0_8:
	leaq	L_.str(%rip), %r12
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	24(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_26
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	(%rbx), %rcx
	movq	8(%rax), %rdx
	movq	(%rdx,%r13,8), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_wpa_supplicant_select_bss
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	24(%r15), %rax
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_wpa_supplicant_select_bss
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r13
	movq	24(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jl	LBB0_12
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_24
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, 12(%r15)
	jne	LBB0_24
## %bb.28:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_wpa_dbg
	movq	%r15, %rdi
	callq	_wpa_blacklist_clear
	incl	8(%r15)
	jmp	LBB0_9
LBB0_17:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_25
## %bb.18:
	cmpq	$0, 24(%rbx)
	je	LBB0_25
## %bb.19:
	cmpl	$0, 16(%rbx)
	jne	LBB0_25
## %bb.20:
	cmpl	$0, 12(%rbx)
	jne	LBB0_25
## %bb.21:
	cmpl	$0, 8(%rbx)
	jne	LBB0_25
## %bb.22:
	movq	$0, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_wpa_dbg
	movq	_WPA_CTRL_REQ_PSK_PASSPHRASE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_wpas_notify_network_request
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	xorl	%esi, %esi
	callq	_wpa_supplicant_ctrl_req_to_string
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_wpas_send_ctrl_req
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No APs found - clear blacklist and try again"

L_.str.1:                               ## @.str.1
	.asciz	"PSK/passphrase not yet available for the selected network"

	.comm	_WPA_CTRL_REQ_PSK_PASSPHRASE,4,2 ## @WPA_CTRL_REQ_PSK_PASSPHRASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_pick_network    ; -- Begin function wpa_supplicant_pick_network
	.p2align	2
_wpa_supplicant_pick_network:           ; @wpa_supplicant_pick_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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_26
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_26
; %bb.2:
	mov	x20, x1
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x9, [x19, #24]
	add	x9, x9, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x9]
	add	x9, x21, #32
	cmp	x21, #0
	ccmp	x21, x8, #4, ne
	b.ne	LBB0_4
; %bb.5:
	str	xzr, [x19, #32]
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [x19, #24]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, #0
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x21, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x21]
	ldr	x10, [x8, #8]
	ldr	x10, [x10, x24, lsl #3]
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_wpa_supplicant_select_bss
	cbnz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x19, #24]
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x8, #8]
	ldr	x1, [x8, x24, lsl #3]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_wpa_supplicant_select_bss
	cbnz	x0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x24, x24, #1
	ldr	x8, [x19, #24]
	ldrsw	x9, [x8]
	cmp	x24, x9
	b.lt	LBB0_10
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_26
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_26
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_wpa_dbg
	mov	x0, x19
	bl	_wpa_blacklist_clear
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_19:
	ldr	x20, [x20]
	cbz	x20, LBB0_27
; %bb.20:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_27
; %bb.21:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_27
; %bb.22:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_27
; %bb.23:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_27
; %bb.24:
	str	xzr, [sp, #8]
	ldr	w1, [x23]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
Lloh6:
	adrp	x21, _WPA_CTRL_REQ_PSK_PASSPHRASE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WPA_CTRL_REQ_PSK_PASSPHRASE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x3, #0
	bl	_wpas_notify_network_request
	ldr	w0, [x21]
	add	x2, sp, #8
	mov	x1, #0
	bl	_wpa_supplicant_ctrl_req_to_string
	cbz	x0, LBB0_27
; %bb.25:
	mov	x2, x0
	ldr	x3, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_wpas_send_ctrl_req
LBB0_26:
	mov	x0, #0
LBB0_27:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No APs found - clear blacklist and try again"

l_.str.1:                               ; @.str.1
	.asciz	"PSK/passphrase not yet available for the selected network"

	.comm	_WPA_CTRL_REQ_PSK_PASSPHRASE,4,2 ; @WPA_CTRL_REQ_PSK_PASSPHRASE
.subsections_via_symbols
