	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_scan_sched_scan_start   ## -- Begin function wl1271_scan_sched_scan_start
	.p2align	4, 0x90
_wl1271_scan_sched_scan_start:          ## @wl1271_scan_sched_scan_start
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	(%rbx), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:
	movq	_WLVIF_FLAG_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	movl	8(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	_WL1271_SCAN_DEFAULT_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_CMD_START_PERIODIC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	_wl1271_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd periodic scan start"

	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN,4,2 ## @WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN
	.comm	_WLVIF_FLAG_IN_USE,4,2          ## @WLVIF_FLAG_IN_USE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WL1271_SCAN_DEFAULT_TAG,4,2    ## @WL1271_SCAN_DEFAULT_TAG
	.comm	_CMD_START_PERIODIC_SCAN,4,2    ## @CMD_START_PERIODIC_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"failed to send scan start command"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_scan_sched_scan_start   ; -- Begin function wl1271_scan_sched_scan_start
	.p2align	2
_wl1271_scan_sched_scan_start:          ; @wl1271_scan_sched_scan_start
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
Lloh11:
	adrp	x8, _WLVIF_FLAG_IN_USE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLVIF_FLAG_IN_USE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.3:
Lloh14:
	adrp	x8, _EBUSY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	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
LBB0_7:
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x21, x0
	ldr	w8, [x20, #8]
Lloh21:
	adrp	x9, _WL1271_SCAN_DEFAULT_TAG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WL1271_SCAN_DEFAULT_TAG@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
Lloh24:
	adrp	x8, _CMD_START_PERIODIC_SCAN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CMD_START_PERIODIC_SCAN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	mov	w3, #8
	mov	w4, #0
	bl	_wl1271_cmd_send
	mov	x19, x0
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
LBB0_10:
	mov	x0, x21
	bl	_kfree
	b	LBB0_6
LBB0_11:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd periodic scan start"

	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN,4,2 ; @WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN
	.comm	_WLVIF_FLAG_IN_USE,4,2          ; @WLVIF_FLAG_IN_USE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WL1271_SCAN_DEFAULT_TAG,4,2    ; @WL1271_SCAN_DEFAULT_TAG
	.comm	_CMD_START_PERIODIC_SCAN,4,2    ; @CMD_START_PERIODIC_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"failed to send scan start command"

.subsections_via_symbols
