	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_scan_fits
_iwl_mvm_scan_fits:                     ## @iwl_mvm_scan_fits
	.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	_PROBE_OPTION_MAX@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpl	%esi, (%r8)
	jl	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	cmpl	%ecx, (%rax)
	setge	%r14b
	movq	8(%rdx), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	addq	(%rdx), %rbx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax,%rcx,8), %rbx
	callq	_iwl_mvm_max_scan_ie_fw_cmd_room
	cmpq	%rax, %rbx
	setle	%al
	andb	%r14b, %al
	movzbl	%al, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROBE_OPTION_MAX,4,2           ## @PROBE_OPTION_MAX
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_iwl_mvm_scan_fits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_scan_fits
_iwl_mvm_scan_fits:                     ; @iwl_mvm_scan_fits
	.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
Lloh0:
	adrp	x8, _PROBE_OPTION_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROBE_OPTION_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x19, x3
	ldr	x8, [x0]
	ldp	x20, x9, [x2]
Lloh3:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x21, [x9, x10, lsl #3]
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x23, [x9, x8, lsl #3]
	bl	_iwl_mvm_max_scan_ie_fw_cmd_room
	cmp	w22, w19
	add	x8, x21, x20
	add	x8, x8, x23
	ccmp	x8, x0, #0, ge
	cset	w0, le
LBB0_3:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PROBE_OPTION_MAX,4,2           ; @PROBE_OPTION_MAX
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_iwl_mvm_scan_fits
.subsections_via_symbols
