	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_peer_assoc_h_vht
_ath10k_peer_assoc_h_vht:               ## @ath10k_peer_assoc_h_vht
	.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	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	leaq	-56(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ath10k_mac_vif_chan
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 28(%r13)
	je	LBB0_23
## %bb.2:
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	(%rcx,%rax,8), %rbx
	movq	%rbx, %rdi
	callq	_ath10k_peer_assoc_h_vht_masked
	testq	%rax, %rax
	jne	LBB0_23
## %bb.3:
	movq	(%r15), %rax
	movl	24(%r14), %ecx
	orl	12(%rax), %ecx
	movl	%ecx, 24(%r14)
	movq	-56(%rbp), %rdx
	movslq	(%rdx), %rdx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rsi
	cmpq	%rdx, (%rsi)
	jne	LBB0_5
## %bb.4:
	orl	8(%rax), %ecx
	movl	%ecx, 24(%r14)
LBB0_5:
	movl	8(%r13), %eax
	movl	%eax, (%r14)
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movl	28(%r14), %edi
	movq	_IEEE80211_HT_MAX_AMPDU_FACTOR@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	$-1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	notl	%esi
	callq	_max
	movl	%eax, 28(%r14)
	movq	(%r13), %rax
	movq	_IEEE80211_STA_RX_BW_80@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	(%r15), %rcx
	movl	4(%rcx), %ecx
	orl	%ecx, 24(%r14)
LBB0_7:
	movq	_IEEE80211_STA_RX_BW_160@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	(%r15), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
LBB0_9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	_NL80211_VHT_NSS_MAX@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.11:
	xorl	%r14d, %r14d
	movq	_IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax,%r14,8)
	leaq	1(%r14), %r14
	cmovnel	%r14d, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r13), %edi
	callq	___le16_to_cpu
	leal	(%r14,%r14), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	andl	$3, %eax
	cmpl	(%r12), %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r14
	jmp	LBB0_15
LBB0_10:
	xorl	%ebx, %ebx
LBB0_16:
	movl	36(%r13), %edi
	movl	%ebx, %esi
	callq	_min
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 32(%rbx)
	movl	24(%r13), %edi
	callq	___le16_to_cpu
	movl	%eax, 8(%rbx)
	movl	20(%r13), %edi
	callq	___le16_to_cpu
	movl	%eax, 12(%rbx)
	movl	16(%r13), %edi
	callq	___le16_to_cpu
	movl	%eax, 16(%rbx)
	movl	12(%r13), %edi
	callq	___le16_to_cpu
	movl	%eax, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ath10k_peer_assoc_h_vht_limit
	movl	%eax, 20(%rbx)
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r13), %ecx
	movl	24(%rbx), %r9d
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_dbg
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.17:
	movq	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r13)
	je	LBB0_23
## %bb.18:
	cmpl	$1560, %eax                     ## imm = 0x618
	je	LBB0_19
## %bb.20:
	cmpl	$780, %eax                      ## imm = 0x30C
	jne	LBB0_23
## %bb.21:
	movl	$1, %eax
	jmp	LBB0_22
LBB0_19:
	movl	$2, %eax
LBB0_22:
	movl	%eax, 4(%rbx)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,2 ## @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
	.comm	_IEEE80211_HT_MAX_AMPDU_FACTOR,4,2 ## @IEEE80211_HT_MAX_AMPDU_FACTOR
	.comm	_IEEE80211_STA_RX_BW_80,8,3     ## @IEEE80211_STA_RX_BW_80
	.comm	_IEEE80211_STA_RX_BW_160,8,3    ## @IEEE80211_STA_RX_BW_160
	.comm	_NL80211_VHT_NSS_MAX,4,2        ## @NL80211_VHT_NSS_MAX
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ## @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac vht peer %pM max_mpdu %d flags 0x%x\n"

	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,2 ## @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK
	.no_dead_strip	_ath10k_peer_assoc_h_vht
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_peer_assoc_h_vht
_ath10k_peer_assoc_h_vht:               ; @ath10k_peer_assoc_h_vht
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	ldr	x22, [x1]
	add	x1, sp, #8
	mov	x0, x8
	bl	_ath10k_mac_vif_chan
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	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
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	ldr	x9, [x22]
	ldr	x22, [x9, x8, lsl #3]
	mov	x0, x22
	bl	_ath10k_peer_assoc_h_vht_masked
	cbnz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x21]
	ldr	w9, [x8, #12]
	ldr	w10, [x19, #24]
	orr	w9, w10, w9
	str	w9, [x19, #24]
	ldr	x10, [sp, #8]
	ldrsw	x10, [x10]
Lloh0:
	adrp	x11, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x11, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x8, #8]
	orr	w8, w8, w9
	str	w8, [x19, #24]
LBB0_6:
	ldr	w8, [x20, #8]
	str	w8, [x19]
Lloh3:
	adrp	x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w8, w8, w9
Lloh9:
	adrp	x9, _IEEE80211_HT_MAX_AMPDU_FACTOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_MAX_AMPDU_FACTOR@GOTPAGEOFF]
	ldr	w0, [x19, #28]
Lloh11:
	ldr	w9, [x9]
	add	w8, w9, w8
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w1, w8
	bl	_max
	str	w0, [x19, #28]
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _IEEE80211_STA_RX_BW_80@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_STA_RX_BW_80@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x21]
	ldr	w9, [x9, #4]
	ldr	w10, [x19, #24]
	orr	w9, w10, w9
	str	w9, [x19, #24]
LBB0_8:
Lloh15:
	adrp	x9, _IEEE80211_STA_RX_BW_160@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_STA_RX_BW_160@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_10:
Lloh18:
	adrp	x24, _NL80211_VHT_NSS_MAX@GOTPAGE
Lloh19:
	ldr	x24, [x24, _NL80211_VHT_NSS_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x25, #0
	mov	w23, #0
Lloh20:
	adrp	x26, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGE
Lloh21:
	ldr	x26, [x26, _IEEE80211_VHT_MCS_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x22, x25, lsl #3]
	add	x25, x25, #1
	cmp	x8, #0
	csel	w23, w23, w25, eq
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #20]
	bl	___le16_to_cpu
	lsl	w8, w25, #1
	asr	w8, w0, w8
	and	w8, w8, #0x3
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x25, x25, #1
	b	LBB0_13
LBB0_16:
	mov	w23, #0
LBB0_17:
	ldr	w0, [x20, #36]
	mov	x1, x23
	bl	_min
	str	w0, [x19, #32]
	ldr	w0, [x20, #24]
	bl	___le16_to_cpu
	str	w0, [x19, #8]
	ldr	w0, [x20, #20]
	bl	___le16_to_cpu
	str	w0, [x19, #12]
	ldr	w0, [x20, #16]
	bl	___le16_to_cpu
	str	w0, [x19, #16]
	ldr	w0, [x20, #12]
	bl	___le16_to_cpu
	mov	x1, x22
	bl	_ath10k_peer_assoc_h_vht_limit
	str	w0, [x19, #20]
Lloh22:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w3, [x20, #32]
	ldp	w5, w4, [x19, #24]
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_ath10k_dbg
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_1
; %bb.18:
	ldr	w9, [x20, #8]
Lloh27:
	adrp	x10, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_1
; %bb.19:
	cmp	w8, #1560
	b.eq	LBB0_22
; %bb.20:
	cmp	w8, #780
	b.ne	LBB0_1
; %bb.21:
	mov	w8, #1
	b	LBB0_23
LBB0_22:
	mov	w8, #2
LBB0_23:
	str	w8, [x19, #4]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK
	.comm	_IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT,4,2 ; @IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT
	.comm	_IEEE80211_HT_MAX_AMPDU_FACTOR,4,2 ; @IEEE80211_HT_MAX_AMPDU_FACTOR
	.comm	_IEEE80211_STA_RX_BW_80,8,3     ; @IEEE80211_STA_RX_BW_80
	.comm	_IEEE80211_STA_RX_BW_160,8,3    ; @IEEE80211_STA_RX_BW_160
	.comm	_NL80211_VHT_NSS_MAX,4,2        ; @NL80211_VHT_NSS_MAX
	.comm	_IEEE80211_VHT_MCS_NOT_SUPPORTED,4,2 ; @IEEE80211_VHT_MCS_NOT_SUPPORTED
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac vht peer %pM max_mpdu %d flags 0x%x\n"

	.comm	_IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK,4,2 ; @IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK
	.no_dead_strip	_ath10k_peer_assoc_h_vht
.subsections_via_symbols
