	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_ht_init
_rs_ht_init:                            ## @rs_ht_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	8(%rcx), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movl	%edx, (%rbx)
	movl	(%rax), %ecx
	andl	$1, %ecx
	andl	$-4, %edx
	orl	%ecx, %edx
	movl	%edx, (%rbx)
	movq	_IWL_FIRST_OFDM_RATE@GOTPCREL(%rip), %rsi
	movb	(%rsi), %cl
	shll	%cl, %edx
	movl	%edx, (%rbx)
	movl	4(%rax), %edx
	addl	%edx, %edx
	movl	%edx, 4(%rbx)
	movl	4(%rax), %eax
	andl	$1, %eax
	andl	$-4, %edx
	orl	%eax, %edx
	movb	(%rsi), %cl
	shll	%cl, %edx
	movl	%edx, 4(%rbx)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	movq	_IEEE80211_HT_CAP_LDPC_CODING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_3
## %bb.2:
	movl	$1, 8(%rbx)
LBB0_3:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	callq	_iwl_mvm_get_valid_tx_ant
	movl	%eax, %edi
	callq	_num_of_ant
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movq	_IEEE80211_HT_CAP_RX_STBC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movl	$1, 12(%rbx)
LBB0_7:
	movl	$0, 16(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FIRST_OFDM_RATE,4,2        ## @IWL_FIRST_OFDM_RATE
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ## @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_RX_STBC,4,2   ## @IEEE80211_HT_CAP_RX_STBC
	.no_dead_strip	_rs_ht_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_ht_init
_rs_ht_init:                            ; @rs_ht_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x3
	mov	x19, x2
	ldr	x8, [x3, #8]
	ldr	w9, [x8]
	lsl	w9, w9, #1
	str	w9, [x2]
	ldr	w10, [x8]
	and	w9, w9, #0xfffffffc
	bfxil	w9, w10, #0, #1
	str	w9, [x2]
Lloh0:
	adrp	x10, _IWL_FIRST_OFDM_RATE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IWL_FIRST_OFDM_RATE@GOTPAGEOFF]
	ldr	w11, [x10]
	lsl	w9, w9, w11
	str	w9, [x2]
	ldr	w9, [x8, #4]
	lsl	w9, w9, #1
	str	w9, [x2, #4]
	ldr	w8, [x8, #4]
	and	w9, w9, #0xfffffffc
	bfxil	w9, w8, #0, #1
	ldr	w8, [x10]
	lsl	w8, w9, w8
	str	w8, [x2, #4]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x20]
Lloh2:
	adrp	x10, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_HT_CAP_LDPC_CODING@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_3:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	bl	_iwl_mvm_get_valid_tx_ant
	bl	_num_of_ant
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.5:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _IEEE80211_HT_CAP_RX_STBC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_HT_CAP_RX_STBC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_7:
	str	wzr, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FIRST_OFDM_RATE,4,2        ; @IWL_FIRST_OFDM_RATE
	.comm	_IEEE80211_HT_CAP_LDPC_CODING,4,2 ; @IEEE80211_HT_CAP_LDPC_CODING
	.comm	_IEEE80211_HT_CAP_RX_STBC,4,2   ; @IEEE80211_HT_CAP_RX_STBC
	.no_dead_strip	_rs_ht_init
.subsections_via_symbols
