	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_scan_size              ## -- Begin function iwl_mvm_scan_size
	.p2align	4, 0x90
_iwl_mvm_scan_size:                     ## @iwl_mvm_scan_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_IWL_SCAN_REQ_UMAC_SIZE_V1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_iwl_mvm_is_adaptive_dwell_v2_supported
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IWL_SCAN_REQ_UMAC_SIZE_V8@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_adaptive_dwell_supported
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_IWL_SCAN_REQ_UMAC_SIZE_V7@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_iwl_mvm_cdb_scan_api
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_IWL_SCAN_REQ_UMAC_SIZE_V6@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
LBB0_7:
	movq	(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_iwl_mvm_is_scan_ext_chan_supported
	movq	(%rbx), %rax
	movl	(%rax), %eax
	leal	(%r14,%rax,4), %eax
	addl	$4, %eax
	jmp	LBB0_10
LBB0_9:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	leal	8(,%rax,4), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V1,4,2  ## @IWL_SCAN_REQ_UMAC_SIZE_V1
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V8,4,2  ## @IWL_SCAN_REQ_UMAC_SIZE_V8
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V7,4,2  ## @IWL_SCAN_REQ_UMAC_SIZE_V7
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V6,4,2  ## @IWL_SCAN_REQ_UMAC_SIZE_V6
	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ## @IWL_UCODE_TLV_CAPA_UMAC_SCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_scan_size              ; -- Begin function iwl_mvm_scan_size
	.p2align	2
_iwl_mvm_scan_size:                     ; @iwl_mvm_scan_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IWL_SCAN_REQ_UMAC_SIZE_V1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_SCAN_REQ_UMAC_SIZE_V1@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_iwl_mvm_is_adaptive_dwell_v2_supported
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IWL_SCAN_REQ_UMAC_SIZE_V8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_SCAN_REQ_UMAC_SIZE_V8@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_iwl_mvm_is_adaptive_dwell_supported
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _IWL_SCAN_REQ_UMAC_SIZE_V7@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_SCAN_REQ_UMAC_SIZE_V7@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_iwl_mvm_cdb_scan_api
Lloh9:
	adrp	x8, _IWL_SCAN_REQ_UMAC_SIZE_V6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_SCAN_REQ_UMAC_SIZE_V6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
LBB0_5:
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_UMAC_SCAN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_iwl_mvm_is_scan_ext_chan_supported
	ldr	x8, [x19]
	ldr	w8, [x8]
	add	w8, w20, w8, lsl #2
	add	w0, w8, #4
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19]
	ldr	w8, [x8]
	lsl	w8, w8, #2
	add	w0, w8, #8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V1,4,2  ; @IWL_SCAN_REQ_UMAC_SIZE_V1
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V8,4,2  ; @IWL_SCAN_REQ_UMAC_SIZE_V8
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V7,4,2  ; @IWL_SCAN_REQ_UMAC_SIZE_V7
	.comm	_IWL_SCAN_REQ_UMAC_SIZE_V6,4,2  ; @IWL_SCAN_REQ_UMAC_SIZE_V6
	.comm	_IWL_UCODE_TLV_CAPA_UMAC_SCAN,4,2 ; @IWL_UCODE_TLV_CAPA_UMAC_SCAN
.subsections_via_symbols
