	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_rrm_scan_timeout
_wpas_rrm_scan_timeout:                 ## @wpas_rrm_scan_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 20(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	movq	24(%rdi), %r15
	movq	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_4
## %bb.2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	$0, (%r14)
LBB0_4:
	leaq	16(%rbx), %rdi
	callq	_os_get_reltime
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_wpas_p2p_in_progress
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpa_supplicant_trigger_scan
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_wpas_rrm_refuse_request
LBB0_8:
	movq	%r15, (%r14)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL,4,2 ## @WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RRM: Cannot set scan duration due to missing driver support"

	.no_dead_strip	_wpas_rrm_scan_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_rrm_scan_timeout
_wpas_rrm_scan_timeout:                 ; @wpas_rrm_scan_timeout
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, [x19, #24]!
	ldur	w8, [x19, #-4]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	str	xzr, [x19]
LBB0_3:
	add	x0, x20, #16
	bl	_os_get_reltime
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_wpas_p2p_in_progress
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_wpa_supplicant_trigger_scan
	cbz	x0, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_wpas_rrm_refuse_request
LBB0_7:
	str	x21, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL,4,2 ; @WPA_DRIVER_FLAGS_SUPPORT_SET_SCAN_DWELL
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RRM: Cannot set scan duration due to missing driver support"

	.no_dead_strip	_wpas_rrm_scan_timeout
.subsections_via_symbols
