	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_probed_ssids
_ath6kl_set_probed_ssids:               ## @ath6kl_set_probed_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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PROBED_SSIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leal	(,%rbx,8), %eax
	leal	(%rax,%rax,2), %edx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_MAX_PROBED_SSIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	cmpl	%r12d, %eax
	jl	LBB0_32
## %bb.1:
	cmpl	%ebx, %eax
	jl	LBB0_32
## %bb.2:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	testl	%eax, %eax
	jle	LBB0_3
## %bb.11:
	leaq	16(%r14), %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	shlq	$4, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$24, %r15
	addq	$16, %r12
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r15), %rdi
	movl	8(%r13,%r12), %esi
	movq	(%r13,%r12), %rdx
	callq	_memcpy
	movq	(%r13,%r12), %rax
	movq	_SPECIFIC_SSID_FLAG@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_ANY_SSID_FLAG@GOTPCREL(%rip), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, -16(%r15)
	movl	(%rcx), %eax
	movl	%eax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_MATCH_SSID_FLAG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_17
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.31:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testl	%ebx, %ebx
	jg	LBB0_5
	jmp	LBB0_19
LBB0_3:
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	jle	LBB0_19
LBB0_5:
	movl	%ebx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rax
	shlq	$4, %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi,%rax), %rdx
	movslq	%r13d, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movq	%rdx, (%r14,%r15,8)
	movq	8(%r14,%r15,8), %rdi
	movl	8(%rsi,%rax), %esi
	callq	_memcpy
	movq	_MATCH_SSID_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14,%r15,8)
	incl	%r13d
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_19
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	leaq	(%rcx,%rax), %r15
	addq	$8, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=2
	addq	$24, %r13
	cmpq	%r13, %r12
	je	LBB0_24
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdx
	cmpq	(%r14,%r13), %rdx
	jne	LBB0_23
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r14,%r13), %rdi
	movl	(%r15), %esi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_MATCH_SSID_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14,%r13)
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_MAX_PROBED_SSIDS@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	cmpl	(%rax), %r13d
	jl	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_27
LBB0_19:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_22
## %bb.20:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	addq	$16, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%r14), %ecx
	movq	-16(%r14), %r8
	movq	-8(%r14), %r9
	movl	%ebx, %edx
	callq	_ath6kl_wmi_probedssid_cmd
	incq	%rbx
	addq	$24, %r14
	cmpq	%rbx, %r15
	jne	LBB0_21
LBB0_22:
	xorl	%r15d, %r15d
	movq	_MAX_PROBED_SSIDS@GOTPCREL(%rip), %rbx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	(%rbx), %r14d
	jge	LBB0_30
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	(%r12), %esi
	movq	_DISABLE_SSID_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movl	%r14d, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ath6kl_wmi_probedssid_cmd
	incl	%r14d
	cmpl	(%rbx), %r14d
	jl	LBB0_28
	jmp	LBB0_30
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PROBED_SSIDS,4,2           ## @MAX_PROBED_SSIDS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPECIFIC_SSID_FLAG,4,2         ## @SPECIFIC_SSID_FLAG
	.comm	_ANY_SSID_FLAG,4,2              ## @ANY_SSID_FLAG
	.comm	_MATCH_SSID_FLAG,4,2            ## @MATCH_SSID_FLAG
	.comm	_DISABLE_SSID_FLAG,4,2          ## @DISABLE_SSID_FLAG
	.no_dead_strip	_ath6kl_set_probed_ssids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_probed_ssids
_ath6kl_set_probed_ssids:               ; @ath6kl_set_probed_ssids
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #48
	mov	x25, x5
	stur	x4, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x22, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x21, _MAX_PROBED_SSIDS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_PROBED_SSIDS@GOTPAGEOFF]
	ldr	w12, [x21]
	add	x8, x12, x12, lsl #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3ffffffff0
	sub	x0, x9, x8
	mov	sp, x0
	add	w8, w12, w12, lsl #1
	lsl	w2, w8, #3
	stur	x0, [x29, #-120]                ; 8-byte Folded Spill
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, w22
	ccmp	w8, w25, #8, ge
	b.ge	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_2:
	mov	w27, w22
	cmp	w22, #1
	stur	x27, [x29, #-104]               ; 8-byte Folded Spill
	b.lt	LBB0_9
; %bb.3:
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	add	x26, x8, #16
Lloh10:
	adrp	x28, _ANY_SSID_FLAG@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ANY_SSID_FLAG@GOTPAGEOFF]
Lloh12:
	adrp	x23, _SPECIFIC_SSID_FLAG@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SPECIFIC_SSID_FLAG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #24
	add	x24, x24, #16
	subs	x27, x27, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x26, #-8]
	ldr	w1, [x24, #8]
	ldr	x2, [x24]
	bl	_memcpy
	ldr	x8, [x24]
	stur	x8, [x26, #-16]
	cmp	x8, #0
	csel	x8, x28, x23, eq
	ldr	w8, [x8]
	str	w8, [x26]
	cbnz	w25, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x20, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x9, _MATCH_SSID_FLAG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MATCH_SSID_FLAG@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x26]
	b	LBB0_4
LBB0_8:
	mov	x24, x22
	cmp	w25, #1
	b.ge	LBB0_10
	b	LBB0_20
LBB0_9:
	mov	w24, #0
	cmp	w25, #1
	b.lt	LBB0_20
LBB0_10:
	mov	x28, #0
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	add	x8, x8, #16
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	mov	w25, w25
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x28, x28, #1
	cmp	x28, x25
	b.eq	LBB0_20
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	x26, x8, [x29, #-104]           ; 16-byte Folded Reload
	add	x23, x8, x28, lsl #4
	add	x21, x23, #8
	ldur	x27, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x27, x27, #24
	subs	x26, x26, #1
	b.eq	LBB0_18
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x2, [x23]
	ldur	x8, [x27, #-16]
	cmp	x2, x8
	b.ne	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldur	x0, [x27, #-8]
	ldr	w1, [x21]
	bl	_memcmp
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh17:
	adrp	x8, _MATCH_SSID_FLAG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MATCH_SSID_FLAG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
	b	LBB0_11
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh20:
	adrp	x8, _MAX_PROBED_SSIDS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX_PROBED_SSIDS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ge	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x8, x8, x28, lsl #4
	ldr	x2, [x8]
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	mov	w10, #24
	smaddl	x21, w24, w10, x9
	str	x2, [x21]
	ldr	x0, [x21, #8]
	ldr	w1, [x8, #8]
	bl	_memcpy
Lloh23:
	adrp	x8, _MATCH_SSID_FLAG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MATCH_SSID_FLAG@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
	add	w24, w24, #1
	b	LBB0_11
LBB0_20:
	cmp	w24, #1
	b.lt	LBB0_23
; %bb.21:
	mov	x21, #0
	mov	w22, w24
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	add	x23, x8, #16
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	w3, [x23]
	ldp	x4, x5, [x23, #-16]
	mov	x2, x21
	bl	_ath6kl_wmi_probedssid_cmd
	add	x21, x21, #1
	add	x23, x23, #24
	cmp	x22, x21
	b.ne	LBB0_22
LBB0_23:
Lloh26:
	adrp	x22, _MAX_PROBED_SSIDS@GOTPAGE
Lloh27:
	ldr	x22, [x22, _MAX_PROBED_SSIDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w24, w8
	b.ge	LBB0_26
; %bb.24:
Lloh28:
	adrp	x21, _DISABLE_SSID_FLAG@GOTPAGE
Lloh29:
	ldr	x21, [x21, _DISABLE_SSID_FLAG@GOTPAGEOFF]
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	w3, [x21]
	mov	x2, x24
	mov	x4, #0
	mov	x5, #0
	bl	_ath6kl_wmi_probedssid_cmd
	add	w24, w24, #1
	ldr	w8, [x22]
	cmp	w24, w8
	b.lt	LBB0_25
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PROBED_SSIDS,4,2           ; @MAX_PROBED_SSIDS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPECIFIC_SSID_FLAG,4,2         ; @SPECIFIC_SSID_FLAG
	.comm	_ANY_SSID_FLAG,4,2              ; @ANY_SSID_FLAG
	.comm	_MATCH_SSID_FLAG,4,2            ; @MATCH_SSID_FLAG
	.comm	_DISABLE_SSID_FLAG,4,2          ; @DISABLE_SSID_FLAG
	.no_dead_strip	_ath6kl_set_probed_ssids
.subsections_via_symbols
