	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_n_flags_from_tbl
_rate_n_flags_from_tbl:                 ## @rate_n_flags_from_tbl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movl	16(%rsi), %edi
	callq	_is_legacy
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_iwl_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	(%rax,%rdx), %r14d
	movq	_IWL_FIRST_CCK_RATE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jg	LBB0_13
## %bb.2:
	movq	_IWL_LAST_CCK_RATE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jl	LBB0_13
## %bb.3:
	movq	_RATE_MCS_CCK_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_13
LBB0_4:
	movl	16(%r13), %edi
	callq	_is_Ht
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	_IWL_LAST_OFDM_RATE@GOTPCREL(%rip), %rbx
	cmpl	%r12d, (%rbx)
	jge	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_IWL_ERR
	movl	(%rbx), %r12d
LBB0_7:
	movq	_RATE_MCS_HT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%r13), %edi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_iwl_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	shlq	$4, %rcx
	orl	4(%rax,%rcx), %r14d
	jmp	LBB0_13
LBB0_12:
	movl	16(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	jmp	LBB0_13
LBB0_9:
	movl	16(%r13), %edi
	callq	_is_mimo2
	movq	_iwl_rates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r12d, %rdx
	shlq	$4, %rdx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	orl	8(%rcx,%rdx), %r14d
	jmp	LBB0_13
LBB0_11:
	orl	12(%rcx,%rdx), %r14d
LBB0_13:
	movq	_RATE_MCS_ANT_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%r13), %ebx
	movl	16(%r13), %edi
	shll	%cl, %ebx
	movq	_RATE_MCS_ANT_ABC_MSK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%r14d, %ebx
	callq	_is_Ht
	testq	%rax, %rax
	je	LBB0_26
## %bb.14:
	cmpq	$0, 32(%r13)
	je	LBB0_19
## %bb.15:
	cmpq	$0, 24(%r13)
	je	LBB0_17
## %bb.16:
	movq	_RATE_MCS_DUP_MSK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_RATE_MCS_HT40_MSK@GOTPCREL(%rip), %rax
LBB0_18:
	orl	(%rax), %ebx
LBB0_19:
	xorl	%r14d, %r14d
	cmpq	$0, 8(%r13)
	movq	_RATE_MCS_SGI_MSK@GOTPCREL(%rip), %r12
	je	LBB0_21
## %bb.20:
	movl	(%r12), %r14d
LBB0_21:
	orl	%ebx, %r14d
	testq	%r15, %r15
	je	LBB0_25
## %bb.22:
	movq	_RATE_MCS_GF_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	16(%r13), %edi
	callq	_is_siso
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	cmpq	$0, 8(%r13)
	je	LBB0_25
## %bb.24:
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_IWL_ERR
LBB0_25:
	movl	%r14d, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iwl_rates,8,3                  ## @iwl_rates
	.comm	_IWL_FIRST_CCK_RATE,4,2         ## @IWL_FIRST_CCK_RATE
	.comm	_IWL_LAST_CCK_RATE,4,2          ## @IWL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,4,2           ## @RATE_MCS_CCK_MSK
	.comm	_IWL_LAST_OFDM_RATE,4,2         ## @IWL_LAST_OFDM_RATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid HT rate index %d\n"

	.comm	_RATE_MCS_HT_MSK,4,2            ## @RATE_MCS_HT_MSK
L_.str.1:                               ## @.str.1
	.asciz	"Invalid tbl->lq_type %d\n"

	.comm	_RATE_MCS_ANT_POS,4,2           ## @RATE_MCS_ANT_POS
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ## @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_MCS_DUP_MSK,4,2           ## @RATE_MCS_DUP_MSK
	.comm	_RATE_MCS_HT40_MSK,4,2          ## @RATE_MCS_HT40_MSK
	.comm	_RATE_MCS_SGI_MSK,4,2           ## @RATE_MCS_SGI_MSK
	.comm	_RATE_MCS_GF_MSK,4,2            ## @RATE_MCS_GF_MSK
L_.str.2:                               ## @.str.2
	.asciz	"GF was set with SGI:SISO\n"

	.no_dead_strip	_rate_n_flags_from_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_n_flags_from_tbl
_rate_n_flags_from_tbl:                 ; @rate_n_flags_from_tbl
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #16]
	bl	_is_legacy
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _iwl_rates@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwl_rates@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sbfiz	x9, x22, #4, #32
	ldr	w8, [x8, x9]
Lloh3:
	adrp	x9, _IWL_FIRST_CCK_RATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_FIRST_CCK_RATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IWL_LAST_CCK_RATE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IWL_LAST_CCK_RATE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w22
	ccmp	w10, w22, #8, le
	b.lt	LBB0_13
; %bb.2:
Lloh9:
	adrp	x9, _RATE_MCS_CCK_MSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RATE_MCS_CCK_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_13
LBB0_3:
	ldr	w0, [x20, #16]
	bl	_is_Ht
	cbz	x0, LBB0_8
; %bb.4:
Lloh12:
	adrp	x23, _IWL_LAST_OFDM_RATE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _IWL_LAST_OFDM_RATE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w22
	b.ge	LBB0_6
; %bb.5:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	ldr	w22, [x23]
LBB0_6:
Lloh16:
	adrp	x8, _RATE_MCS_HT_MSK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RATE_MCS_HT_MSK@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	ldr	w0, [x20, #16]
	bl	_is_siso
	cbz	x0, LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _iwl_rates@GOTPAGE
Lloh20:
	ldr	x8, [x8, _iwl_rates@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x8, x8, w22, sxtw #4
	ldr	w8, [x8, #4]
	b	LBB0_12
LBB0_8:
	ldr	w8, [x20, #16]
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	w8, #0
	b	LBB0_13
LBB0_9:
	ldr	w0, [x20, #16]
	bl	_is_mimo2
Lloh24:
	adrp	x8, _iwl_rates@GOTPAGE
Lloh25:
	ldr	x8, [x8, _iwl_rates@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x9, w22
	add	x8, x8, x9, lsl #4
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x8, #8]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x8, #12]
LBB0_12:
	orr	w8, w8, w23
LBB0_13:
	ldr	w9, [x20]
Lloh27:
	adrp	x10, _RATE_MCS_ANT_POS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _RATE_MCS_ANT_POS@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh30:
	adrp	x10, _RATE_MCS_ANT_ABC_MSK@GOTPAGE
Lloh31:
	ldr	x10, [x10, _RATE_MCS_ANT_ABC_MSK@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w22, w9, w8
	ldr	w0, [x20, #16]
	bl	_is_Ht
	cbz	x0, LBB0_23
; %bb.14:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_17
; %bb.16:
Lloh33:
	adrp	x8, _RATE_MCS_DUP_MSK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RATE_MCS_DUP_MSK@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh35:
	adrp	x8, _RATE_MCS_HT40_MSK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RATE_MCS_HT40_MSK@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_19:
	ldr	x8, [x20, #8]
Lloh37:
	adrp	x23, _RATE_MCS_SGI_MSK@GOTPAGE
Lloh38:
	ldr	x23, [x23, _RATE_MCS_SGI_MSK@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w22, w8, w22
	cbz	x21, LBB0_23
; %bb.20:
Lloh39:
	adrp	x8, _RATE_MCS_GF_MSK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RATE_MCS_GF_MSK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w22, w8, w22
	ldr	w0, [x20, #16]
	bl	_is_siso
	cbz	x0, LBB0_23
; %bb.21:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	w8, [x23]
	bic	w22, w22, w8
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_23:
	mov	x0, x22
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_iwl_rates,8,3                  ; @iwl_rates
	.comm	_IWL_FIRST_CCK_RATE,4,2         ; @IWL_FIRST_CCK_RATE
	.comm	_IWL_LAST_CCK_RATE,4,2          ; @IWL_LAST_CCK_RATE
	.comm	_RATE_MCS_CCK_MSK,4,2           ; @RATE_MCS_CCK_MSK
	.comm	_IWL_LAST_OFDM_RATE,4,2         ; @IWL_LAST_OFDM_RATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid HT rate index %d\n"

	.comm	_RATE_MCS_HT_MSK,4,2            ; @RATE_MCS_HT_MSK
l_.str.1:                               ; @.str.1
	.asciz	"Invalid tbl->lq_type %d\n"

	.comm	_RATE_MCS_ANT_POS,4,2           ; @RATE_MCS_ANT_POS
	.comm	_RATE_MCS_ANT_ABC_MSK,4,2       ; @RATE_MCS_ANT_ABC_MSK
	.comm	_RATE_MCS_DUP_MSK,4,2           ; @RATE_MCS_DUP_MSK
	.comm	_RATE_MCS_HT40_MSK,4,2          ; @RATE_MCS_HT40_MSK
	.comm	_RATE_MCS_SGI_MSK,4,2           ; @RATE_MCS_SGI_MSK
	.comm	_RATE_MCS_GF_MSK,4,2            ; @RATE_MCS_GF_MSK
l_.str.2:                               ; @.str.2
	.asciz	"GF was set with SGI:SISO\n"

	.no_dead_strip	_rate_n_flags_from_tbl
.subsections_via_symbols
