	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_est_throughput            ## -- Begin function scan_est_throughput
	.p2align	4, 0x90
_scan_est_throughput:                   ## @scan_est_throughput
	.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
	cmpl	$0, 4(%rsi)
	jne	LBB0_45
## %bb.1:
	movq	%rsi, %rbx
	movl	(%rdi), %r12d
	movl	(%rsi), %r14d
	movq	%rsi, %rdi
	callq	_wpa_scan_get_max_rate
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.2:
	movl	$1000, %r15d                    ## imm = 0x3E8
	testl	%r14d, %r14d
	jle	LBB0_20
LBB0_3:
	cmpl	$5, %eax
	jl	LBB0_5
## %bb.4:
	movl	$2000, %r15d                    ## imm = 0x7D0
	cmpl	$4, %r14d
	jl	LBB0_20
LBB0_5:
	cmpl	$13, %eax
	jl	LBB0_7
## %bb.6:
	movl	$6000, %r15d                    ## imm = 0x1770
	cmpl	$5, %r14d
	jl	LBB0_20
LBB0_7:
	cmpl	$19, %eax
	jl	LBB0_9
## %bb.8:
	movl	$9000, %r15d                    ## imm = 0x2328
	cmpl	$6, %r14d
	jl	LBB0_20
LBB0_9:
	cmpl	$25, %eax
	jl	LBB0_11
## %bb.10:
	movl	$12000, %r15d                   ## imm = 0x2EE0
	cmpl	$7, %r14d
	jl	LBB0_20
LBB0_11:
	cmpl	$37, %eax
	jl	LBB0_13
## %bb.12:
	movl	$18000, %r15d                   ## imm = 0x4650
	cmpl	$10, %r14d
	jl	LBB0_20
LBB0_13:
	cmpl	$49, %eax
	jl	LBB0_15
## %bb.14:
	movl	$24000, %r15d                   ## imm = 0x5DC0
	cmpl	$11, %r14d
	jl	LBB0_20
LBB0_15:
	cmpl	$73, %eax
	jl	LBB0_17
## %bb.16:
	movl	$36000, %r15d                   ## imm = 0x8CA0
	cmpl	$15, %r14d
	jl	LBB0_20
LBB0_17:
	cmpl	$97, %eax
	jl	LBB0_19
## %bb.18:
	movl	$48000, %r15d                   ## imm = 0xBB80
	cmpl	$19, %r14d
	jl	LBB0_20
LBB0_19:
	imull	$500, %eax, %ecx                ## imm = 0x1F4
	cmpl	$21, %r14d
	movl	$54000, %r15d                   ## imm = 0xD2F0
	cmovgel	%ecx, %r15d
	cmpl	$109, %eax
	cmovll	%ecx, %r15d
LBB0_20:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_CAPAB_HT@GOTPCREL(%rip), %rax
	movq	_CAPAB_HT40@GOTPCREL(%rip), %r14
	movq	_CAPAB_VHT@GOTPCREL(%rip), %r13
	cmpl	(%rax), %r12d
	je	LBB0_23
## %bb.21:
	cmpl	(%r14), %r12d
	je	LBB0_23
## %bb.22:
	cmpl	(%r13), %r12d
	jne	LBB0_25
LBB0_23:
	movq	_WLAN_EID_HT_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_max_ht20_rate
	cmpl	%r15d, %eax
	cmoval	%eax, %r15d
LBB0_25:
	cmpl	(%r14), %r12d
	je	LBB0_27
## %bb.26:
	cmpl	(%r13), %r12d
	jne	LBB0_31
LBB0_27:
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_31
## %bb.28:
	cmpl	$2, 4(%rax)
	jl	LBB0_31
## %bb.29:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_31
## %bb.30:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_max_ht40_rate
	cmpl	%r15d, %eax
	cmoval	%eax, %r15d
LBB0_31:
	cmpl	(%r13), %r12d
	jne	LBB0_44
## %bb.32:
	movq	_WLAN_EID_VHT_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_44
## %bb.33:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_max_ht20_rate
	movl	%eax, %r12d
	incl	%r12d
	cmpl	%r15d, %r12d
	cmovbel	%r15d, %r12d
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_37
## %bb.34:
	cmpl	$2, 4(%rax)
	jl	LBB0_37
## %bb.35:
	movq	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%rax)
	je	LBB0_37
## %bb.36:
	movl	%r14d, %edi
	callq	_max_ht40_rate
	incl	%eax
	cmpl	%r12d, %eax
	cmoval	%eax, %r12d
LBB0_37:
	movq	_WLAN_EID_VHT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_scan_get_ie
	testq	%rax, %rax
	je	LBB0_43
## %bb.38:
	cmpl	$0, 4(%rax)
	jle	LBB0_43
## %bb.39:
	movq	_VHT_OPMODE_CHANNEL_WIDTH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_43
## %bb.40:
	movl	%r14d, %edi
	callq	_max_vht80_rate
	movl	%eax, %r15d
	incl	%r15d
	cmpl	%r12d, %r15d
	cmovbel	%r12d, %r15d
	jmp	LBB0_44
LBB0_43:
	movl	%r12d, %r15d
LBB0_44:
	movl	%r15d, 4(%rbx)
LBB0_45:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPAB_HT,4,2                   ## @CAPAB_HT
	.comm	_CAPAB_HT40,4,2                 ## @CAPAB_HT40
	.comm	_CAPAB_VHT,4,2                  ## @CAPAB_VHT
	.comm	_WLAN_EID_HT_CAP,4,2            ## @WLAN_EID_HT_CAP
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ## @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_WLAN_EID_VHT_CAP,4,2           ## @WLAN_EID_VHT_CAP
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ## @WLAN_EID_VHT_OPERATION
	.comm	_VHT_OPMODE_CHANNEL_WIDTH_MASK,4,2 ## @VHT_OPMODE_CHANNEL_WIDTH_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scan_est_throughput            ; -- Begin function scan_est_throughput
	.p2align	2
_scan_est_throughput:                   ; @scan_est_throughput
	.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
	ldr	w8, [x1, #4]
	cbnz	w8, LBB0_48
; %bb.1:
	mov	x19, x1
	ldr	w22, [x0]
	ldr	w20, [x1]
	mov	x0, x1
	bl	_wpa_scan_get_max_rate
	cmp	w0, #3
	b.lt	LBB0_4
; %bb.2:
	cmp	w20, #1
	b.ge	LBB0_4
; %bb.3:
	mov	w21, #1000
	b	LBB0_29
LBB0_4:
	cmp	w0, #5
	b.lt	LBB0_7
; %bb.5:
	cmp	w20, #4
	b.ge	LBB0_7
; %bb.6:
	mov	w21, #2000
	b	LBB0_29
LBB0_7:
	cmp	w0, #13
	b.lt	LBB0_10
; %bb.8:
	cmp	w20, #5
	b.ge	LBB0_10
; %bb.9:
	mov	w21, #6000
	b	LBB0_29
LBB0_10:
	cmp	w0, #19
	b.lt	LBB0_13
; %bb.11:
	cmp	w20, #6
	b.ge	LBB0_13
; %bb.12:
	mov	w21, #9000
	b	LBB0_29
LBB0_13:
	cmp	w0, #25
	b.lt	LBB0_16
; %bb.14:
	cmp	w20, #7
	b.ge	LBB0_16
; %bb.15:
	mov	w21, #12000
	b	LBB0_29
LBB0_16:
	cmp	w0, #37
	b.lt	LBB0_19
; %bb.17:
	cmp	w20, #10
	b.ge	LBB0_19
; %bb.18:
	mov	w21, #18000
	b	LBB0_29
LBB0_19:
	cmp	w0, #49
	b.lt	LBB0_22
; %bb.20:
	cmp	w20, #11
	b.ge	LBB0_22
; %bb.21:
	mov	w21, #24000
	b	LBB0_29
LBB0_22:
	cmp	w0, #73
	b.lt	LBB0_25
; %bb.23:
	cmp	w20, #15
	b.ge	LBB0_25
; %bb.24:
	mov	w21, #36000
	b	LBB0_29
LBB0_25:
	cmp	w0, #97
	b.lt	LBB0_28
; %bb.26:
	cmp	w20, #19
	b.ge	LBB0_28
; %bb.27:
	mov	w21, #48000
	b	LBB0_29
LBB0_28:
	cmp	w20, #21
	mov	w8, #108
	ccmp	w0, w8, #4, lt
	mov	w8, #500
	mul	w8, w0, w8
	mov	w9, #54000
	csel	w21, w9, w8, gt
LBB0_29:
Lloh0:
	adrp	x8, _CAPAB_HT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAPAB_HT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _CAPAB_HT40@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CAPAB_HT40@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh5:
	adrp	x23, _CAPAB_VHT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CAPAB_VHT@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	ccmp	w22, w10, #4, ne
	b.ne	LBB0_32
; %bb.30:
Lloh7:
	adrp	x8, _WLAN_EID_HT_CAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WLAN_EID_HT_CAP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cbz	x0, LBB0_32
; %bb.31:
	mov	x0, x20
	bl	_max_ht20_rate
	cmp	w0, w21
	csel	w21, w0, w21, hi
LBB0_32:
	ldr	w8, [x24]
	ldr	w9, [x23]
	cmp	w22, w8
	ccmp	w22, w9, #4, ne
	b.ne	LBB0_37
; %bb.33:
Lloh10:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cbz	x0, LBB0_37
; %bb.34:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_37
; %bb.35:
	ldr	w8, [x0, #12]
Lloh13:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.36:
	mov	x0, x20
	bl	_max_ht40_rate
	cmp	w0, w21
	csel	w21, w0, w21, hi
LBB0_37:
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_47
; %bb.38:
Lloh16:
	adrp	x8, _WLAN_EID_VHT_CAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WLAN_EID_VHT_CAP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cbz	x0, LBB0_47
; %bb.39:
	mov	x0, x20
	bl	_max_ht20_rate
	add	w8, w0, #1
	cmp	w8, w21
	csinc	w21, w21, w0, ls
Lloh19:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cbz	x0, LBB0_43
; %bb.40:
	ldr	w8, [x0, #4]
	cmp	w8, #2
	b.lt	LBB0_43
; %bb.41:
	ldr	w8, [x0, #12]
Lloh22:
	adrp	x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_43
; %bb.42:
	mov	x0, x20
	bl	_max_ht40_rate
	add	w8, w0, #1
	cmp	w8, w21
	csinc	w21, w21, w0, ls
LBB0_43:
Lloh25:
	adrp	x8, _WLAN_EID_VHT_OPERATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WLAN_EID_VHT_OPERATION@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_scan_get_ie
	cbz	x0, LBB0_47
; %bb.44:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_47
; %bb.45:
	ldr	w8, [x0, #8]
Lloh28:
	adrp	x9, _VHT_OPMODE_CHANNEL_WIDTH_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VHT_OPMODE_CHANNEL_WIDTH_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_47
; %bb.46:
	mov	x0, x20
	bl	_max_vht80_rate
	add	w8, w0, #1
	cmp	w8, w21
	csinc	w21, w21, w0, ls
LBB0_47:
	str	w21, [x19, #4]
LBB0_48:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPAB_HT,4,2                   ; @CAPAB_HT
	.comm	_CAPAB_HT40,4,2                 ; @CAPAB_HT40
	.comm	_CAPAB_VHT,4,2                  ; @CAPAB_VHT
	.comm	_WLAN_EID_HT_CAP,4,2            ; @WLAN_EID_HT_CAP
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK,4,2 ; @HT_INFO_HT_PARAM_SECONDARY_CHNL_OFF_MASK
	.comm	_WLAN_EID_VHT_CAP,4,2           ; @WLAN_EID_VHT_CAP
	.comm	_WLAN_EID_VHT_OPERATION,4,2     ; @WLAN_EID_VHT_OPERATION
	.comm	_VHT_OPMODE_CHANNEL_WIDTH_MASK,4,2 ; @VHT_OPMODE_CHANNEL_WIDTH_MASK
.subsections_via_symbols
