	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function already_connected
_already_connected:                     ## @already_connected
	.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), %rax
	movq	_WPA_ASSOCIATED@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_9
## %bb.2:
	cmpq	%rsi, 16(%r15)
	jne	LBB0_9
## %bb.3:
	movl	12(%r15), %eax
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.4:
	movl	8(%r15), %edi
	movl	4(%rdx), %esi
	movl	%eax, %edx
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_pick_network
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jg	LBB0_9
LBB0_8:
	movl	$1, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ASSOCIATED,8,3             ## @WPA_ASSOCIATED
	.no_dead_strip	_already_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function already_connected
_already_connected:                     ; @already_connected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WPA_ASSOCIATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_ASSOCIATED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_5
; %bb.2:
	ldr	x8, [x20, #16]
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20, #12]
	ldr	w9, [x2]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
	ldr	w1, [x2, #4]
	mov	x2, x8
	bl	_os_memcmp
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wpa_supplicant_pick_network
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.gt	LBB0_5
LBB0_10:
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ASSOCIATED,8,3             ; @WPA_ASSOCIATED
	.no_dead_strip	_already_connected
.subsections_via_symbols
