	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_hwrate_to_plcp_idx
_iwl_hwrate_to_plcp_idx:                ## @iwl_hwrate_to_plcp_idx
	.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	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_RATE_HT_MCS_RATE_CODE_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_IWL_RATE_9M_INDEX@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %edi
	setge	%bl
	addl	%edi, %ebx
	movq	_IWL_FIRST_HT_RATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_14
## %bb.2:
	movq	_IWL_LAST_HT_RATE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_RATE_MCS_VHT_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_RATE_MCS_HE_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_10
LBB0_6:
	movq	_RATE_VHT_MCS_RATE_CODE_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	movq	_IWL_RATE_MCS_0_INDEX@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_IWL_RATE_9M_INDEX@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	setge	%bl
	addl	%eax, %ebx
	movq	_IWL_FIRST_VHT_RATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_8
## %bb.7:
	movq	_IWL_LAST_VHT_RATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_15
LBB0_8:
	movq	_RATE_MCS_HE_MSK@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_14
## %bb.9:
	movq	_IWL_LAST_HE_RATE@GOTPCREL(%rip), %rax
LBB0_3:
	cmpl	(%rax), %ebx
	jle	LBB0_15
LBB0_14:
	movq	_IWL_RATE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	_rs_extract_rate
	movq	%rax, %r14
	movq	_iwl_rates@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	cmpq	%r14, (%rdi,%rbx,8)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
	.comm	_RATE_HT_MCS_RATE_CODE_MSK,4,2  ## @RATE_HT_MCS_RATE_CODE_MSK
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ## @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_9M_INDEX,4,2          ## @IWL_RATE_9M_INDEX
	.comm	_IWL_FIRST_HT_RATE,4,2          ## @IWL_FIRST_HT_RATE
	.comm	_IWL_LAST_HT_RATE,4,2           ## @IWL_LAST_HT_RATE
	.comm	_RATE_MCS_VHT_MSK,4,2           ## @RATE_MCS_VHT_MSK
	.comm	_RATE_MCS_HE_MSK,4,2            ## @RATE_MCS_HE_MSK
	.comm	_RATE_VHT_MCS_RATE_CODE_MSK,4,2 ## @RATE_VHT_MCS_RATE_CODE_MSK
	.comm	_IWL_FIRST_VHT_RATE,4,2         ## @IWL_FIRST_VHT_RATE
	.comm	_IWL_LAST_VHT_RATE,4,2          ## @IWL_LAST_VHT_RATE
	.comm	_IWL_LAST_HE_RATE,4,2           ## @IWL_LAST_HE_RATE
	.comm	_iwl_rates,8,3                  ## @iwl_rates
	.comm	_IWL_RATE_INVALID,4,2           ## @IWL_RATE_INVALID
	.no_dead_strip	_iwl_hwrate_to_plcp_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_hwrate_to_plcp_idx
_iwl_hwrate_to_plcp_idx:                ; @iwl_hwrate_to_plcp_idx
	.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
Lloh0:
	adrp	x8, _RATE_MCS_HT_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_MCS_HT_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _RATE_HT_MCS_RATE_CODE_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATE_HT_MCS_RATE_CODE_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _IWL_RATE_MCS_0_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IWL_RATE_MCS_0_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IWL_RATE_9M_INDEX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IWL_RATE_9M_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	cinc	w19, w8, ge
Lloh12:
	adrp	x8, _IWL_FIRST_HT_RATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_FIRST_HT_RATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IWL_LAST_HT_RATE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IWL_LAST_HT_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w19, w8
	ccmp	w19, w9, #0, ge
	b.gt	LBB0_10
	b	LBB0_11
LBB0_2:
Lloh18:
	adrp	x8, _RATE_MCS_VHT_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RATE_MCS_VHT_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh21:
	adrp	x8, _RATE_MCS_HE_MSK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RATE_MCS_HE_MSK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_4:
Lloh24:
	adrp	x8, _RATE_VHT_MCS_RATE_CODE_MSK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RATE_VHT_MCS_RATE_CODE_MSK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh27:
	adrp	x9, _IWL_RATE_MCS_0_INDEX@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IWL_RATE_MCS_0_INDEX@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _IWL_RATE_9M_INDEX@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IWL_RATE_9M_INDEX@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	add	w8, w8, w9
	cmp	w8, w10
	cinc	w19, w8, ge
Lloh33:
	adrp	x8, _IWL_FIRST_VHT_RATE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IWL_FIRST_VHT_RATE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _IWL_LAST_VHT_RATE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IWL_LAST_VHT_RATE@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w19, w8
	ccmp	w19, w9, #0, ge
	b.le	LBB0_11
; %bb.5:
Lloh39:
	adrp	x8, _RATE_MCS_HE_MSK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RATE_MCS_HE_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh42:
	adrp	x9, _IWL_LAST_HE_RATE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IWL_LAST_HE_RATE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w19, w9, #0, ne
	b.gt	LBB0_10
	b	LBB0_11
LBB0_6:
	bl	_rs_extract_rate
	mov	x20, x0
Lloh45:
	adrp	x21, _iwl_rates@GOTPAGE
Lloh46:
	ldr	x21, [x21, _iwl_rates@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x19, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x0, x19, lsl #3]
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x19, x19, #1
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_8
LBB0_10:
Lloh47:
	adrp	x8, _IWL_RATE_INVALID@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IWL_RATE_INVALID@GOTPAGEOFF]
Lloh49:
	ldr	w19, [x8]
LBB0_11:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
	.comm	_RATE_HT_MCS_RATE_CODE_MSK,4,2  ; @RATE_HT_MCS_RATE_CODE_MSK
	.comm	_IWL_RATE_MCS_0_INDEX,8,3       ; @IWL_RATE_MCS_0_INDEX
	.comm	_IWL_RATE_9M_INDEX,4,2          ; @IWL_RATE_9M_INDEX
	.comm	_IWL_FIRST_HT_RATE,4,2          ; @IWL_FIRST_HT_RATE
	.comm	_IWL_LAST_HT_RATE,4,2           ; @IWL_LAST_HT_RATE
	.comm	_RATE_MCS_VHT_MSK,4,2           ; @RATE_MCS_VHT_MSK
	.comm	_RATE_MCS_HE_MSK,4,2            ; @RATE_MCS_HE_MSK
	.comm	_RATE_VHT_MCS_RATE_CODE_MSK,4,2 ; @RATE_VHT_MCS_RATE_CODE_MSK
	.comm	_IWL_FIRST_VHT_RATE,4,2         ; @IWL_FIRST_VHT_RATE
	.comm	_IWL_LAST_VHT_RATE,4,2          ; @IWL_LAST_VHT_RATE
	.comm	_IWL_LAST_HE_RATE,4,2           ; @IWL_LAST_HE_RATE
	.comm	_iwl_rates,8,3                  ; @iwl_rates
	.comm	_IWL_RATE_INVALID,4,2           ; @IWL_RATE_INVALID
	.no_dead_strip	_iwl_hwrate_to_plcp_idx
.subsections_via_symbols
