	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgscan_simple_timeout
_bgscan_simple_timeout:                 ## @bgscan_simple_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %r14
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movl	$1, -48(%rbp)
	movq	48(%rbx), %rax
	movl	8(%rax), %ecx
	movq	-40(%rbp), %rdx
	movl	%ecx, 4(%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, (%rdx)
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpa_supplicant_trigger_scan
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	(%rbx), %rdi
	leaq	_bgscan_simple_timeout(%rip), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	jmp	LBB0_8
LBB0_2:
	movq	(%rbx), %rcx
	movq	16(%rbx), %rax
	cmpq	8(%rbx), %rcx
	jne	LBB0_5
## %bb.3:
	incq	%rax
	movq	%rax, 16(%rbx)
	cmpq	24(%rbx), %rax
	jl	LBB0_7
## %bb.4:
	movq	32(%rbx), %rax
	movq	%rax, (%rbx)
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_5:
	testq	%rax, %rax
	jle	LBB0_7
## %bb.6:
	decq	%rax
	movq	%rax, 16(%rbx)
LBB0_7:
	addq	$40, %rbx
	movq	%rbx, %rdi
	callq	_os_get_reltime
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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: Request a background scan"

L_.str.1:                               ## @.str.1
	.asciz	"bgscan simple: Failed to trigger scan"

L_.str.2:                               ## @.str.2
	.asciz	"bgscan simple: Backing off to long scan interval"

	.no_dead_strip	_bgscan_simple_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgscan_simple_timeout
_bgscan_simple_timeout:                 ; @bgscan_simple_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #56]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	mov	w8, #1
	str	w8, [sp]
	ldr	x8, [x19, #48]
	ldr	x9, [sp, #8]
	ldur	d0, [x8, #4]
	str	d0, [x9]
	ldr	w8, [x8]
	str	w8, [sp, #4]
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x1, sp
	mov	x0, x20
	bl	_wpa_supplicant_trigger_scan
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19]
Lloh6:
	adrp	x2, _bgscan_simple_timeout@PAGE
Lloh7:
	add	x2, x2, _bgscan_simple_timeout@PAGEOFF
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	b	LBB0_8
LBB0_2:
	ldp	x9, x10, [x19]
	ldr	x8, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	add	x8, x8, #1
	str	x8, [x19, #16]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.4:
	ldr	x8, [x19, #32]
	str	x8, [x19]
	ldr	w0, [x21]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_7
LBB0_5:
	subs	x8, x8, #1
	b.lt	LBB0_7
; %bb.6:
	str	x8, [x19, #16]
LBB0_7:
	add	x0, x19, #40
	bl	_os_get_reltime
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgscan simple: Request a background scan"

l_.str.1:                               ; @.str.1
	.asciz	"bgscan simple: Failed to trigger scan"

l_.str.2:                               ; @.str.2
	.asciz	"bgscan simple: Backing off to long scan interval"

	.no_dead_strip	_bgscan_simple_timeout
.subsections_via_symbols
