	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_set_htcap
_ath6kl_set_htcap:                      ## @ath6kl_set_htcap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	%edx, (%rax,%rcx,4)
	jne	LBB0_1
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	(%rax,%rcx,4), %r15
	testl	%edx, %edx
	je	LBB0_6
## %bb.2:
	movl	$1, (%r15)
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	jne	LBB0_3
## %bb.4:
	movq	_ath6kl_g_htcap@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	jmp	LBB0_7
LBB0_3:
	movq	_ath6kl_a_htcap@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %edx
	movl	%edx, 8(%rax,%rcx,4)
	movq	_IEEE80211_HT_MAX_AMPDU_16K@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rax,%rcx,4)
LBB0_7:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_set_htcap_cmd       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_ath6kl_g_htcap,4,2             ## @ath6kl_g_htcap
	.comm	_ath6kl_a_htcap,4,2             ## @ath6kl_a_htcap
	.comm	_IEEE80211_HT_MAX_AMPDU_16K,4,2 ## @IEEE80211_HT_MAX_AMPDU_16K
	.no_dead_strip	_ath6kl_set_htcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_set_htcap
_ath6kl_set_htcap:                      ; @ath6kl_set_htcap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #16]
	mov	w9, #12
	umaddl	x20, w1, w9, x8
	ldr	w9, [x20]
	cmp	w9, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	cbz	w2, LBB0_4
; %bb.3:
	mov	w9, w19
	mov	w10, #1
	str	w10, [x20]
Lloh0:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _ath6kl_g_htcap@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ath6kl_g_htcap@GOTPAGEOFF]
Lloh5:
	adrp	x12, _ath6kl_a_htcap@GOTPAGE
Lloh6:
	ldr	x12, [x12, _ath6kl_a_htcap@GOTPAGEOFF]
	cmp	w10, w19
	csel	x10, x11, x12, eq
	ldr	w10, [x10]
	mov	w11, #12
	madd	x8, x9, x11, x8
	str	w10, [x8, #8]
Lloh7:
	adrp	x9, _IEEE80211_HT_MAX_AMPDU_16K@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_HT_MAX_AMPDU_16K@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #12
	bl	_memset
LBB0_5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath6kl_wmi_set_htcap_cmd
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_ath6kl_g_htcap,4,2             ; @ath6kl_g_htcap
	.comm	_ath6kl_a_htcap,4,2             ; @ath6kl_a_htcap
	.comm	_IEEE80211_HT_MAX_AMPDU_16K,4,2 ; @IEEE80211_HT_MAX_AMPDU_16K
	.no_dead_strip	_ath6kl_set_htcap
.subsections_via_symbols
