	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath6kl_wmi_set_htcap_cmd
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ath6kl_wmi_set_htcap_cmd
	.p2align	4, 0x90
_ath6kl_wmi_set_htcap_cmd:              ## @ath6kl_wmi_set_htcap_cmd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$28, %edi
	callq	_ath6kl_wmi_get_new_buf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%rax), %rax
	movl	%r12d, (%rax)
	xorl	%ecx, %ecx
	cmpl	$0, 8(%rbx)
	setne	%cl
	movl	%ecx, 4(%rax)
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rsi
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rdi
	movq	_IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPCREL(%rip), %r8
	movd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rsi), %xmm0
	pinsrd	$2, (%rdi), %xmm0
	pinsrd	$3, (%r8), %xmm0
	movd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, 8(%rax)
	movl	4(%rbx), %edx
	movl	%edx, 24(%rax)
	movq	_ATH6KL_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movd	%xmm0, %r9d
	pextrd	$1, %xmm0, %r8d
	pextrd	$3, %xmm0, 8(%rsp)
	pextrd	$2, %xmm0, (%rsp)
	movl	%edx, 16(%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_ath6kl_dbg
	movq	_WMI_SET_HT_CAP_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_NO_SYNC_WMIFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_wmi_cmd_send            ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_40MHZ_INTOLERANT,4,2 ## @IEEE80211_HT_CAP_40MHZ_INTOLERANT
	.comm	_ATH6KL_DBG_WMI,4,2             ## @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set htcap: band:%d ht_enable:%d 40mhz:%d sgi_20mhz:%d sgi_40mhz:%d 40mhz_intolerant:%d ampdu_len_exp:%d\n"

	.comm	_WMI_SET_HT_CAP_CMDID,4,2       ## @WMI_SET_HT_CAP_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ## @NO_SYNC_WMIFLAG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_wmi_set_htcap_cmd       ; -- Begin function ath6kl_wmi_set_htcap_cmd
	.p2align	2
_ath6kl_wmi_set_htcap_cmd:              ; @ath6kl_wmi_set_htcap_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #28
	bl	_ath6kl_wmi_get_new_buf
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w9, [x23, #8]
	cmp	w9, #0
	cset	w3, ne
	stp	w22, w3, [x8]
Lloh0:
	adrp	x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w11, [x23]
	tst	w9, w10
	cset	w5, ne
Lloh3:
	adrp	x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	cset	w4, ne
	stp	w5, w4, [x8, #8]
Lloh6:
	adrp	x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w10
	cset	w6, ne
Lloh9:
	adrp	x9, _IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HT_CAP_40MHZ_INTOLERANT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w10
	cset	w7, ne
	stp	w6, w7, [x8, #16]
	str	w11, [x8, #24]
Lloh12:
	adrp	x8, _ATH6KL_DBG_WMI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH6KL_DBG_WMI@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	w11, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_ath6kl_dbg
Lloh17:
	adrp	x8, _WMI_SET_HT_CAP_CMDID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WMI_SET_HT_CAP_CMDID@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _NO_SYNC_WMIFLAG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NO_SYNC_WMIFLAG@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ath6kl_wmi_cmd_send
LBB0_2:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_40MHZ_INTOLERANT,4,2 ; @IEEE80211_HT_CAP_40MHZ_INTOLERANT
	.comm	_ATH6KL_DBG_WMI,4,2             ; @ATH6KL_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set htcap: band:%d ht_enable:%d 40mhz:%d sgi_20mhz:%d sgi_40mhz:%d 40mhz_intolerant:%d ampdu_len_exp:%d\n"

	.comm	_WMI_SET_HT_CAP_CMDID,4,2       ; @WMI_SET_HT_CAP_CMDID
	.comm	_NO_SYNC_WMIFLAG,4,2            ; @NO_SYNC_WMIFLAG
.subsections_via_symbols
