	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_sched_scan_set_ssids
_wmi_sched_scan_set_ssids:              ## @wmi_sched_scan_set_ssids
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	_WMI_MAX_PNO_SSID_NUM@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	cmpl	%r9d, %ecx
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r9d, %edx
	callq	_wil_dbg_wmi
	movl	(%r14), %r9d
LBB0_2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r9d, (%rax)
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.3:
	movl	%r9d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	shlq	$4, %r12
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-88(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,8), %rax
	leaq	(%rax,%rax,2), %r13
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15,%r13), %rsi
	movq	%rsi, (%r14,%r13)
	movl	20(%r14,%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%r15,%r13), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WMI_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_min_t
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	_S8_MIN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	%rax, 8(%r14,%r13)
	movq	(%r15,%r13), %rcx
	movq	_S8_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	%rcx, %rdx
	cmovgq	%rax, %rdx
	cmpq	(%rsi), %rcx
	cmovlq	%rax, %rdx
	movq	%rdx, 8(%r14,%r13)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%r13), %r15
	addq	%r14, %r13
	addq	$20, %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	(%r14,%rax,8), %rax
	addq	$16, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	addq	$16, %r14
	cmpq	%r14, %r12
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdx
	cmpq	(%rbx,%r14), %rdx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r13), %edi
	movl	8(%rbx,%r14), %esi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_9
LBB0_11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_MAX_PNO_SSID_NUM,4,2       ## @WMI_MAX_PNO_SSID_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many match sets (%d), use first %d\n"

	.comm	_u8,4,2                         ## @u8
	.comm	_WMI_MAX_SSID_LEN,4,2           ## @WMI_MAX_SSID_LEN
	.comm	_S8_MIN,8,3                     ## @S8_MIN
	.comm	_S8_MAX,8,3                     ## @S8_MAX
	.no_dead_strip	_wmi_sched_scan_set_ssids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_sched_scan_set_ssids
_wmi_sched_scan_set_ssids:              ; @wmi_sched_scan_set_ssids
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
	str	w3, [sp, #36]                   ; 4-byte Folded Spill
	mov	x22, x2
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x19, _WMI_MAX_PNO_SSID_NUM@GOTPAGE
Lloh1:
	ldr	x19, [x19, _WMI_MAX_PNO_SSID_NUM@GOTPAGEOFF]
	ldr	w3, [x19]
	cmp	w3, w5
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x5
	bl	_wil_dbg_wmi
	ldr	w5, [x19]
LBB0_2:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	w5, [x8]
	cmp	w5, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x24, #0
	add	x8, x22, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh4:
	adrp	x28, _S8_MIN@GOTPAGE
Lloh5:
	ldr	x28, [x28, _S8_MIN@GOTPAGEOFF]
	mov	w27, #1
	mov	w26, w5
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	mov	w8, w8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	cmp	x24, x26
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x20, [x8, #8]
	add	x8, x24, x24, lsl #1
	lsl	x8, x8, #3
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x21, x9, x8
	ldr	x1, [x21, #8]
	add	x25, x20, x8
	str	x1, [x25]
	mov	x19, x25
	ldr	w22, [x19, #20]!
	ldr	w23, [x21, #16]
Lloh6:
	adrp	x8, _u8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _WMI_MAX_SSID_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_MAX_SSID_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_min_t
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_memcpy
	ldr	x8, [x28]
	str	x8, [x25, #8]
	ldr	x9, [x21]
	ldr	x10, [x28]
Lloh12:
	adrp	x11, _S8_MAX@GOTPAGE
Lloh13:
	ldr	x11, [x11, _S8_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x9, x11
	ccmp	x9, x10, #8, le
	csel	x8, x8, x9, lt
	str	x8, [x25, #8]
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #24
	madd	x8, x24, x8, x20
	add	x20, x8, #16
	ldp	x22, x23, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x23, #16
	subs	x22, x22, #1
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x25]
	ldur	x8, [x23, #-8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_memcmp
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	str	w27, [x20]
	b	LBB0_7
LBB0_11:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_MAX_PNO_SSID_NUM,4,2       ; @WMI_MAX_PNO_SSID_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many match sets (%d), use first %d\n"

	.comm	_u8,4,2                         ; @u8
	.comm	_WMI_MAX_SSID_LEN,4,2           ; @WMI_MAX_SSID_LEN
	.comm	_S8_MIN,8,3                     ; @S8_MIN
	.comm	_S8_MAX,8,3                     ; @S8_MAX
	.no_dead_strip	_wmi_sched_scan_set_ssids
.subsections_via_symbols
