	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_fill_vht_cap_tlv       ## -- Begin function mwifiex_fill_vht_cap_tlv
	.p2align	4, 0x90
_mwifiex_fill_vht_cap_tlv:              ## @mwifiex_fill_vht_cap_tlv
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_mwifiex_fill_vht_cap_info
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_GET_DEVRXMCSMAP
	movl	%eax, %r13d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	$1, %r14d
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_SET_VHTNSSMCS
	incl	%r14d
	cmpl	$9, %r14d
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_GET_VHTNSSMCS
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_GET_VHTNSSMCS
	movl	(%r12), %edx
	cmpl	%edx, %r15d
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%edx, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %edx
	jmp	LBB0_4
LBB0_5:
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mwifiex_convert_mcsmap_to_maxrate
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_GET_DEVTXMCSMAP
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	$1, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_SET_VHTNSSMCS
	incl	%ebx
	cmpl	$9, %ebx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_GET_VHTNSSMCS
	movl	%eax, %r15d
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_GET_VHTNSSMCS
	movl	(%r12), %edx
	cmpl	%edx, %r15d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%edx, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %edx
	jmp	LBB0_9
LBB0_10:
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mwifiex_convert_mcsmap_to_maxrate
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_fill_vht_cap_tlv       ; -- Begin function mwifiex_fill_vht_cap_tlv
	.p2align	2
_mwifiex_fill_vht_cap_tlv:              ; @mwifiex_fill_vht_cap_tlv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x27, [x0]
	bl	_mwifiex_fill_vht_cap_info
	ldr	w0, [x27]
	bl	_GET_DEVRXMCSMAP
	mov	x22, x0
	ldr	x0, [x19, #24]
	bl	_le16_to_cpu
	mov	x23, x0
	mov	w24, #1
Lloh0:
	adrp	x26, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #0
	mov	x1, x24
	bl	_SET_VHTNSSMCS
	add	w24, w24, #1
	cmp	w24, #9
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_GET_VHTNSSMCS
	mov	x25, x0
	mov	x0, x23
	mov	x1, x24
	bl	_GET_VHTNSSMCS
	ldr	w2, [x26]
	cmp	w25, w2
	ccmp	w0, w2, #4, ne
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	mov	x0, x25
	bl	_min
	mov	x2, x0
	b	LBB0_1
LBB0_4:
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_mwifiex_convert_mcsmap_to_maxrate
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	ldr	w0, [x27]
	bl	_GET_DEVTXMCSMAP
	mov	x22, x0
	ldr	x0, [x19, #8]
	bl	_le16_to_cpu
	mov	x23, x0
	mov	w24, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	mov	x1, x24
	bl	_SET_VHTNSSMCS
	add	w24, w24, #1
	cmp	w24, #9
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_GET_VHTNSSMCS
	mov	x25, x0
	mov	x0, x23
	mov	x1, x24
	bl	_GET_VHTNSSMCS
	ldr	w2, [x26]
	cmp	w25, w2
	ccmp	w0, w2, #4, ne
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x25
	bl	_min
	mov	x2, x0
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_mwifiex_convert_mcsmap_to_maxrate
	bl	_cpu_to_le16
	str	x0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
.subsections_via_symbols
