	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_learn_timeout
_bgscan_learn_timeout:                  ## @bgscan_learn_timeout
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rbx
	leaq	-208(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movl	$1, -208(%rbp)
	movq	8(%r12), %rax
	movl	12(%rax), %ecx
	movq	-192(%rbp), %rdx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, (%rdx)
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	leaq	-160(%rbp), %rbx
	leaq	-168(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bgscan_learn_get_freqs
	movq	%rax, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-168(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	-168(%rbp), %rdx
	movq	%r12, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bgscan_learn_get_probe_freq
	movq	%rax, %r15
	movb	$0, -160(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.3:
	leaq	-160(%rbp), %rbx
	movq	%r15, %r12
	addq	$4, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-60(%rbp), %rax
	movl	%eax, %r13d
	subl	%ebx, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %rbx
	movl	(%r12), %ecx
	addq	$4, %r12
	testl	%ecx, %ecx
	jne	LBB0_4
LBB0_6:
	movb	$0, (%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-160(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %r14
	movq	-184(%rbp), %r12                ## 8-byte Reload
	movq	-176(%rbp), %rbx                ## 8-byte Reload
LBB0_7:
	movq	%r15, -200(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-208(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_trigger_scan
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	4(%r12), %edi
	leaq	_bgscan_learn_timeout(%rip), %rdx
	xorl	%esi, %esi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	callq	_os_get_reltime
LBB0_10:
	movq	%r14, %rdi
	callq	_os_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bgscan learn: BSSes in this ESS have been seen on %u channels"

L_.str.1:                               ## @.str.1
	.asciz	" %d"

L_.str.2:                               ## @.str.2
	.asciz	"bgscan learn: Scanning frequencies:%s"

L_.str.3:                               ## @.str.3
	.asciz	"bgscan learn: Request a background scan"

L_.str.4:                               ## @.str.4
	.asciz	"bgscan learn: Failed to trigger scan"

	.no_dead_strip	_bgscan_learn_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgscan_learn_timeout
_bgscan_learn_timeout:                  ; @bgscan_learn_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x20, [x0, #16]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #32]
	ldr	d0, [x8, #8]
	str	d0, [x9]
	ldr	x21, [x8]
Lloh3:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_9
LBB0_2:
	add	x22, sp, #44
	add	x1, sp, #8
	mov	x0, x19
	bl	_bgscan_learn_get_freqs
	mov	x21, x0
	ldr	w0, [x26]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_bgscan_learn_get_probe_freq
	mov	x21, x0
	strb	wzr, [sp, #44]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w3, [x21]
	cbz	w3, LBB0_7
; %bb.4:
	add	x28, x22, #100
	add	x22, sp, #44
	add	x27, x21, #4
Lloh7:
	adrp	x23, l_.str.1@PAGE
Lloh8:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w28, w22
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	bl	_os_snprintf
	mov	x24, x0
	mov	x0, x25
	mov	x1, x24
	bl	_os_snprintf_error
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, w24, sxtw
	ldr	w3, [x27], #4
	cbnz	w3, LBB0_5
	b	LBB0_8
LBB0_7:
	add	x22, sp, #44
LBB0_8:
	strb	wzr, [x22]
	ldr	w0, [x26]
	add	x8, sp, #44
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	x22, x21
LBB0_9:
	str	x21, [sp, #24]
	ldr	w0, [x26]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	add	x1, sp, #16
	mov	x0, x20
	bl	_wpa_supplicant_trigger_scan
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x26]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x2, _bgscan_learn_timeout@PAGE
Lloh16:
	add	x2, x2, _bgscan_learn_timeout@PAGEOFF
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_os_get_reltime
LBB0_12:
	mov	x0, x22
	bl	_os_free
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgscan learn: BSSes in this ESS have been seen on %u channels"

l_.str.1:                               ; @.str.1
	.asciz	" %d"

l_.str.2:                               ; @.str.2
	.asciz	"bgscan learn: Scanning frequencies:%s"

l_.str.3:                               ; @.str.3
	.asciz	"bgscan learn: Request a background scan"

l_.str.4:                               ; @.str.4
	.asciz	"bgscan learn: Failed to trigger scan"

	.no_dead_strip	_bgscan_learn_timeout
.subsections_via_symbols
