	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ht_getrate
_ht_getrate:                            ## @ht_getrate
	.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
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	_IEEE80211_RATE_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %esi
	callq	_ieee80211_rate2media
	movl	%eax, %edi
	callq	_IFM_SUBTYPE
	movq	%rax, %rcx
	movq	_IFM_IEEE80211_MCS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.1:
	cmpl	$2, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.4:
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rcx
	movslq	%r14d, %rax
	shlq	$4, %rax
	addq	(%rcx), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$8, %rax
	jmp	LBB0_8
LBB0_5:
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$4, %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	shlq	$4, %rcx
	addq	%rcx, %rax
	addq	$12, %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_MCS,4,2         ## @IEEE80211_RATE_MCS
	.comm	_IFM_IEEE80211_MCS,8,3          ## @IFM_IEEE80211_MCS
	.comm	_ieee80211_htrates,8,3          ## @ieee80211_htrates
	.no_dead_strip	_ht_getrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ht_getrate
_ht_getrate:                            ; @ht_getrate
	.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, x1
Lloh0:
	adrp	x8, _IEEE80211_RATE_MCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_RATE_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w1
	bl	_ieee80211_rate2media
	bl	_IFM_SUBTYPE
Lloh3:
	adrp	x8, _IFM_IEEE80211_MCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFM_IEEE80211_MCS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _ieee80211_htrates@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ieee80211_htrates@GOTPAGEOFF]
	cmp	w20, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w20, LBB0_8
; %bb.4:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #4
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #4
	add	x8, x8, #8
	b	LBB0_9
LBB0_7:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #4
	add	x8, x8, #4
	b	LBB0_9
LBB0_8:
	ldr	x8, [x8]
	add	x8, x8, w19, sxtw #4
	add	x8, x8, #12
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_MCS,4,2         ; @IEEE80211_RATE_MCS
	.comm	_IFM_IEEE80211_MCS,8,3          ; @IFM_IEEE80211_MCS
	.comm	_ieee80211_htrates,8,3          ; @ieee80211_htrates
	.no_dead_strip	_ht_getrate
.subsections_via_symbols
