	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_pick_new_network
_wpa_supplicant_pick_new_network:       ## @wpa_supplicant_pick_new_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	(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	movq	_WPAS_MODE_IBSS@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rax), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	8(%rax), %rcx
	movq	(%rcx,%r14,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wpas_network_disabled
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_WPA_KEY_MGMT_WPA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WPA_KEY_MGMT_NONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_wpa_ssid_txt
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_wpa_msg
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_WPAS_MODE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_WPAS_MODE_MESH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
	jmp	LBB0_13
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPAS_MODE_IBSS,8,3             ## @WPAS_MODE_IBSS
	.comm	_WPA_KEY_MGMT_NONE,4,2          ## @WPA_KEY_MGMT_NONE
	.comm	_WPA_KEY_MGMT_WPA_NONE,4,2      ## @WPA_KEY_MGMT_WPA_NONE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IBSS RSN not supported in the build - cannot use the profile for SSID '%s'"

	.comm	_WPAS_MODE_AP,8,3               ## @WPAS_MODE_AP
	.comm	_WPAS_MODE_MESH,8,3             ## @WPAS_MODE_MESH
	.no_dead_strip	_wpa_supplicant_pick_new_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_pick_new_network
_wpa_supplicant_pick_new_network:       ; @wpa_supplicant_pick_new_network
	.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
	ldr	x8, [x0]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh0:
	adrp	x24, _WPAS_MODE_IBSS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WPAS_MODE_IBSS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _WPA_KEY_MGMT_NONE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _WPA_KEY_MGMT_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _WPA_KEY_MGMT_WPA_NONE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WPA_KEY_MGMT_WPA_NONE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x28, _WPAS_MODE_AP@GOTPAGE
Lloh9:
	ldr	x28, [x28, _WPAS_MODE_AP@GOTPAGEOFF]
Lloh10:
	adrp	x27, _WPAS_MODE_MESH@GOTPAGE
Lloh11:
	ldr	x27, [x27, _WPAS_MODE_MESH@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x9, [x8, #8]
	ldr	x21, [x9, x23, lsl #3]
	cbnz	x21, LBB0_7
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x28]
	ldr	x10, [x27]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x21, [x21, #24]
	cbz	x21, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_wpas_network_disabled
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
Lloh12:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldp	w1, w0, [x21, #12]
	bl	_wpa_ssid_txt
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_wpa_msg
	b	LBB0_6
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WPAS_MODE_IBSS,8,3             ; @WPAS_MODE_IBSS
	.comm	_WPA_KEY_MGMT_NONE,4,2          ; @WPA_KEY_MGMT_NONE
	.comm	_WPA_KEY_MGMT_WPA_NONE,4,2      ; @WPA_KEY_MGMT_WPA_NONE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IBSS RSN not supported in the build - cannot use the profile for SSID '%s'"

	.comm	_WPAS_MODE_AP,8,3               ; @WPAS_MODE_AP
	.comm	_WPAS_MODE_MESH,8,3             ; @WPAS_MODE_MESH
	.no_dead_strip	_wpa_supplicant_pick_new_network
.subsections_via_symbols
