	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_request_sched_scan_start ## -- Begin function ieee80211_request_sched_scan_start
	.p2align	4, 0x90
_ieee80211_request_sched_scan_start:    ## @ieee80211_request_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r13), %ebx
	movl	(%rsi), %r14d
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	8(%r13), %edi
	callq	_rcu_access_pointer
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	24(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.7:
	addl	%ebx, %r14d
	addl	$2, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_kzalloc
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	%ebx, %r9d
	pushq	$0
	pushq	$-1
	callq	_ieee80211_build_preq_ies
	addq	$16, %rsp
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
LBB0_13:
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_drv_sched_scan_start
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	testl	%ebx, %ebx
	jg	LBB0_17
	jmp	LBB0_19
LBB0_15:
	movl	8(%r13), %edi
	movq	%r15, %rsi
	callq	_rcu_assign_pointer
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jg	LBB0_17
	jmp	LBB0_19
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	testl	%ebx, %ebx
	jle	LBB0_19
LBB0_17:
	movl	%ebx, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movl	-8(%rax,%rbx,4), %edi
	callq	_kfree
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ## @IEEE80211_MAX_SSID_LEN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_request_sched_scan_start ; -- Begin function ieee80211_request_sched_scan_start
	.p2align	2
_ieee80211_request_sched_scan_start:    ; @ieee80211_request_sched_scan_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x20, x0
	ldr	x21, [x0]
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x8, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w26, [x21]
	ldr	w27, [x1]
	add	x19, x21, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x21, #8]
	bl	_rcu_access_pointer
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_11
; %bb.5:
Lloh5:
	adrp	x25, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.6:
	mov	x23, #0
	add	w9, w24, w26
	add	w9, w9, w27
	add	w24, w9, #2
Lloh7:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	x9, [x9]
	ldr	w9, [x9, x23, lsl #2]
	cbz	w9, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x26]
	mov	x0, x24
	bl	_kzalloc
	cbz	w0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, x0
	ldp	w4, w3, [x22]
	mov	x0, x21
	mov	x2, x24
	mov	x5, x23
	mov	w6, #-1
	mov	w7, #0
	bl	_ieee80211_build_preq_ies
	ldr	w8, [x25]
	b	LBB0_7
LBB0_11:
Lloh9:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_drv_sched_scan_start
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_rcu_assign_pointer
LBB0_15:
	cmp	w23, #1
	b.lt	LBB0_3
LBB0_16:
	mov	w8, w23
	sub	x20, x8, #1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	w0, [x8, x20, lsl #2]
	bl	_kfree
	add	x8, x20, #1
	sub	x20, x20, #1
	cmp	x8, #1
	b.hi	LBB0_17
	b	LBB0_3
LBB0_18:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	cmp	w23, #1
	b.ge	LBB0_16
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MAX_SSID_LEN,4,2     ; @IEEE80211_MAX_SSID_LEN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
