	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_query_num_match_chans
_iwl_mvm_query_num_match_chans:         ## @iwl_mvm_query_num_match_chans
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%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_4
## %bb.1:
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.2:
	movq	(%rbx), %r12
	movslq	%r14d, %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_hweight8
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	_SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.5:
	movq	(%rbx), %r12
	movslq	%r14d, %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_hweight8
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	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_num_match_chans
.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_num_match_chans
_iwl_mvm_query_num_match_chans:         ; @iwl_mvm_query_num_match_chans
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	ldr	x0, [x0]
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_4
; %bb.1:
Lloh3:
	adrp	x22, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
	mov	w19, #0
	ldr	x21, [x21]
	sxtw	x20, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x20, lsl #3]
	ldr	w0, [x8, x23, lsl #2]
	bl	_hweight8
	add	w19, w19, w0
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x22, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SCAN_OFFLOAD_MATCHING_CHANNELS_LEN_V1@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x23, #0
	mov	w19, #0
	ldr	x21, [x21]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x20, w20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x20, lsl #3]
	ldr	w0, [x8, x23, lsl #2]
	bl	_hweight8
	add	w19, w19, w0
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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_num_match_chans
.subsections_via_symbols
