	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_simple_notify_signal_change
_bgscan_simple_notify_signal_change:    ## @bgscan_simple_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_14
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_14
## %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_8
## %bb.3:
	cmpq	8(%rbx), %rax
	jne	LBB0_8
## %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(%rbp), %rax
	movq	48(%rbx), %rcx
	leaq	1(%rcx), %rdx
	cmpq	%rdx, %rax
	jle	LBB0_6
## %bb.5:
	movq	32(%rbx), %rdx
	cmpq	40(%rbx), %rdx
	jle	LBB0_12
LBB0_6:
	addq	8(%rbx), %rcx
	addq	24(%rbx), %rax
	cmpq	%rax, %rcx
	jle	LBB0_14
## %bb.7:
	movq	_bgscan_simple_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	24(%rbx), %rdi
	movl	(%r14), %edx
	jmp	LBB0_13
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.15:
	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_simple_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_10:
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.11:
	leaq	-32(%rbp), %rdi
	callq	_os_get_reltime
	movq	48(%rbx), %rax
	addq	$10, %rax
	cmpq	%rax, -32(%rbp)
	jle	LBB0_14
LBB0_12:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_bgscan_simple_timeout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%r14), %edx
	xorl	%edi, %edi
LBB0_13:
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_14:
	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 simple: signal level changed (above=%d current_signal=%d current_noise=%d current_txrate=%d))"

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

	.comm	_bgscan_simple_timeout,4,2      ## @bgscan_simple_timeout
L_.str.2:                               ## @.str.2
	.asciz	"bgscan simple: Start using long bgscan interval"

L_.str.3:                               ## @.str.3
	.asciz	"bgscan simple: Trigger immediate scan"

	.no_dead_strip	_bgscan_simple_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_simple_notify_signal_change
_bgscan_simple_notify_signal_change:    ; @bgscan_simple_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_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_15
; %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_8
; %bb.3:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %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, #48]
	add	x10, x9, #1
	cmp	x8, x10
	b.le	LBB0_6
; %bb.5:
	ldp	x10, x11, [x19, #32]
	cmp	x10, x11
	b.le	LBB0_13
LBB0_6:
	ldr	x10, [x19, #8]
	add	x9, x10, x9
	ldr	x10, [x19, #24]
	add	x8, x10, x8
	cmp	x9, x8
	b.le	LBB0_15
; %bb.7:
Lloh6:
	adrp	x20, _bgscan_simple_timeout@GOTPAGE
Lloh7:
	ldr	x20, [x20, _bgscan_simple_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	x0, [x19, #24]
	ldr	w2, [x20]
	b	LBB0_14
LBB0_8:
	cbz	w20, LBB0_11
; %bb.9:
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #8]
	str	x8, [x19, #24]
Lloh10:
	adrp	x20, _bgscan_simple_timeout@GOTPAGE
Lloh11:
	ldr	x20, [x20, _bgscan_simple_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_11:
	cbnz	w20, LBB0_15
; %bb.12:
	add	x0, sp, #40
	bl	_os_get_reltime
	ldr	x8, [sp, #40]
	ldr	x9, [x19, #48]
	add	x9, x9, #10
	cmp	x8, x9
	b.le	LBB0_15
LBB0_13:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x20, _bgscan_simple_timeout@GOTPAGE
Lloh15:
	ldr	x20, [x20, _bgscan_simple_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	x0, #0
LBB0_14:
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_15:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgscan simple: signal level changed (above=%d current_signal=%d current_noise=%d current_txrate=%d))"

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

	.comm	_bgscan_simple_timeout,4,2      ; @bgscan_simple_timeout
l_.str.2:                               ; @.str.2
	.asciz	"bgscan simple: Start using long bgscan interval"

l_.str.3:                               ; @.str.3
	.asciz	"bgscan simple: Trigger immediate scan"

	.no_dead_strip	_bgscan_simple_notify_signal_change
.subsections_via_symbols
