	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_enable_network  ## -- Begin function wpa_supplicant_enable_network
	.p2align	4, 0x90
_wpa_supplicant_enable_network:         ## @wpa_supplicant_enable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	callq	_wpa_supplicant_enable_one_network
LBB0_5:
	cmpq	$0, 32(%r14)
	je	LBB0_13
## %bb.6:
	cmpl	$0, 28(%r14)
	je	LBB0_7
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	40(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpa_supplicant_enable_one_network
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_5
LBB0_7:
	cmpl	$0, 24(%r14)
	je	LBB0_10
## %bb.8:
	movq	(%r14), %rax
	movq	_WPA_DISCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_WPA_SCANNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_10:
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, %rdi
	callq	_wpa_supplicant_cancel_sched_scan
LBB0_12:
	movq	%r14, %rdi
	callq	_wpa_supplicant_fast_associate
	cmpl	$1, %eax
	je	LBB0_13
## %bb.14:
	movq	_NORMAL_SCAN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wpa_supplicant_req_scan        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_DISCONNECTED,8,3           ## @WPA_DISCONNECTED
	.comm	_WPA_SCANNING,8,3               ## @WPA_SCANNING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stop ongoing sched_scan to add new network to scan filters"

	.comm	_NORMAL_SCAN_REQ,4,2            ## @NORMAL_SCAN_REQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_supplicant_enable_network  ; -- Begin function wpa_supplicant_enable_network
	.p2align	2
_wpa_supplicant_enable_network:         ; @wpa_supplicant_enable_network
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_wpa_supplicant_enable_one_network
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #40]
	ldr	x20, [x8]
	cbz	x20, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_supplicant_enable_one_network
	ldr	x20, [x20]
	cbnz	x20, LBB0_3
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WPA_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WPA_SCANNING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WPA_SCANNING@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
LBB0_9:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.10:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_wpa_supplicant_cancel_sched_scan
LBB0_11:
	mov	x0, x19
	bl	_wpa_supplicant_fast_associate
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.12:
Lloh11:
	adrp	x8, _NORMAL_SCAN_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NORMAL_SCAN_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wpa_supplicant_req_scan
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_DISCONNECTED,8,3           ; @WPA_DISCONNECTED
	.comm	_WPA_SCANNING,8,3               ; @WPA_SCANNING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stop ongoing sched_scan to add new network to scan filters"

	.comm	_NORMAL_SCAN_REQ,4,2            ; @NORMAL_SCAN_REQ
.subsections_via_symbols
