	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_learn_notify_signal_change
_bgscan_learn_notify_signal_change:     ## @bgscan_learn_notify_signal_change
	.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
	cmpq	8(%rdi), %rax
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_11
## %bb.2:
	movl	%r8d, %r9d
	movl	%ecx, %r8d
	movl	%edx, %ecx
	movl	%esi, %r14d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%rbx), %rax
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.3:
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%rbx), %rax
	movq	%rax, 24(%rbx)
	leaq	-32(%rbp), %rdi
	callq	_os_get_reltime
	movq	32(%rbx), %rax
	incq	%rax
	cmpq	%rax, -32(%rbp)
	jle	LBB0_11
LBB0_10:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_bgscan_learn_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%r14), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_11
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	cmpq	(%rbx), %rax
	jne	LBB0_7
## %bb.12:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%rbx), %rax
	movq	%rax, 24(%rbx)
	movq	_bgscan_learn_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	24(%rbx), %rdi
	movl	(%r14), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
LBB0_7:
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.8:
	leaq	-32(%rbp), %rdi
	callq	_os_get_reltime
	movq	32(%rbx), %rax
	addq	$10, %rax
	cmpq	%rax, -32(%rbp)
	jg	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	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	"bgscan learn: signal level changed (above=%d current_signal=%d current_noise=%d current_txrate=%d)"

L_.str.1:                               ## @.str.1
	.asciz	"bgscan learn: Start using short bgscan interval"

L_.str.2:                               ## @.str.2
	.asciz	"bgscan learn: Start using long bgscan interval"

	.comm	_bgscan_learn_timeout,4,2       ## @bgscan_learn_timeout
L_.str.3:                               ## @.str.3
	.asciz	"bgscan learn: Trigger immediate scan"

	.no_dead_strip	_bgscan_learn_notify_signal_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgscan_learn_notify_signal_change
_bgscan_learn_notify_signal_change:     ; @bgscan_learn_notify_signal_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x20, x1
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	stp	x3, x4, [sp, #16]
	stp	x20, x2, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	cbnz	w20, LBB0_6
; %bb.3:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
	str	x8, [x19, #24]
	add	x0, sp, #40
	bl	_os_get_reltime
	ldr	x8, [sp, #40]
	ldr	x9, [x19, #32]
	add	x9, x9, #1
	cmp	x8, x9
	b.le	LBB0_11
LBB0_5:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh8:
	adrp	x20, _bgscan_learn_timeout@GOTPAGE
Lloh9:
	ldr	x20, [x20, _bgscan_learn_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	x0, #0
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_11
LBB0_6:
	cbz	w20, LBB0_9
; %bb.7:
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	str	x8, [x19, #24]
Lloh12:
	adrp	x20, _bgscan_learn_timeout@GOTPAGE
Lloh13:
	ldr	x20, [x20, _bgscan_learn_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	x0, [x19, #24]
	ldr	w2, [x20]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	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
	add	sp, sp, #96
	b	_eloop_register_timeout
LBB0_9:
	cbnz	w20, LBB0_11
; %bb.10:
	add	x0, sp, #40
	bl	_os_get_reltime
	ldr	x8, [sp, #40]
	ldr	x9, [x19, #32]
	add	x9, x9, #10
	cmp	x8, x9
	b.gt	LBB0_5
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgscan learn: signal level changed (above=%d current_signal=%d current_noise=%d current_txrate=%d)"

l_.str.1:                               ; @.str.1
	.asciz	"bgscan learn: Start using short bgscan interval"

l_.str.2:                               ; @.str.2
	.asciz	"bgscan learn: Start using long bgscan interval"

	.comm	_bgscan_learn_timeout,4,2       ; @bgscan_learn_timeout
l_.str.3:                               ; @.str.3
	.asciz	"bgscan learn: Trigger immediate scan"

	.no_dead_strip	_bgscan_learn_notify_signal_change
.subsections_via_symbols
