	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_query_set_freqs
_iwl_mvm_query_set_freqs:               ## @iwl_mvm_query_set_freqs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rdi
	movq	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.2:
	movq	(%rbx), %rbx
	movslq	%r15d, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	cmpq	%rax, %r13
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rax
	movq	%r13, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	movl	(%rax,%rcx), %r14d
	movl	%r13d, %edi
	andl	$7, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movslq	(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r12)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_5
LBB0_6:
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.7:
	movq	(%rbx), %r14
	movslq	%r15d, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	cmpq	%rax, %r13
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r15,8), %rax
	movq	%r13, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	movl	(%rax,%rcx), %ebx
	movl	%r13d, %edi
	andl	$7, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	movslq	(%r12), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%r12)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS,4,2 ## @IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS
	.comm	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN,4,2 ## @SCAN_OFFLOAD_MATCHING_CHANNELS_LEN
	.comm	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1,4,2 ## @SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1
	.no_dead_strip	_iwl_mvm_query_set_freqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_query_set_freqs
_iwl_mvm_query_set_freqs:               ; @iwl_mvm_query_set_freqs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_api
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x23, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x24, #0
	ldr	x22, [x22]
	sxtw	x21, w21
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8, lsl #3
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x21, lsl #3]
	ubfx	x9, x24, #3, #29
	ldr	w25, [x8, x9, lsl #2]
	and	w0, w24, #0x7
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19]
	add	w11, w10, #1
	str	w11, [x19]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_3
LBB0_6:
Lloh5:
	adrp	x23, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x24, #0
	ldr	x22, [x22]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x21, w21
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8, lsl #3
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, x21, lsl #3]
	ubfx	x9, x24, #3, #29
	ldr	w25, [x8, x9, lsl #2]
	and	w0, w24, #0x7
	bl	_BIT
	tst	w0, w25
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldrsw	x10, [x19]
	add	w11, w10, #1
	str	w11, [x19]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS,4,2 ; @IWL_UCODE_TLV_API_SCAN_OFFLOAD_CHANS
	.comm	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN,4,2 ; @SCAN_OFFLOAD_MATCHING_CHANNELS_LEN
	.comm	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1,4,2 ; @SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1
	.no_dead_strip	_iwl_mvm_query_set_freqs
.subsections_via_symbols
