	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wl1271_tx_enabled_rates_get
LCPI0_0:
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	32                              ## 0x20
	.long	16                              ## 0x10
LCPI0_1:
	.long	2048                            ## 0x800
	.long	1024                            ## 0x400
	.long	512                             ## 0x200
	.long	256                             ## 0x100
LCPI0_2:
	.long	32768                           ## 0x8000
	.long	16384                           ## 0x4000
	.long	8192                            ## 0x2000
	.long	4096                            ## 0x1000
LCPI0_3:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wl1271_tx_enabled_rates_get
	.p2align	4, 0x90
_wl1271_tx_enabled_rates_get:           ## @wl1271_tx_enabled_rates_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%edx, %ecx
	movq	(%rax,%rcx,8), %r9
	movl	(%r9), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%edx, %edx
LBB0_10:
	testb	$1, %r8b
	je	LBB0_14
## %bb.11:
	testb	$1, %sil
	je	LBB0_13
## %bb.12:
	movq	8(%r9), %rax
	orl	(%rax,%rdi,4), %edx
LBB0_13:
	sarl	%esi
	jmp	LBB0_14
LBB0_1:
	xorl	%edx, %edx
LBB0_14:
	movq	_HW_HT_RATES_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subl	%r8d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movq	_CONF_HW_BIT_RATE_MCS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %ecx
	movd	%eax, %xmm2
	pshufd	$80, %xmm2, %xmm0               ## xmm0 = xmm2[0,0,1,1]
	pshufd	$0, %xmm2, %xmm1                ## xmm1 = xmm2[0,0,0,0]
	pslld	$3, %xmm2
	pslld	$2, %xmm0
	pblendw	$243, %xmm2, %xmm0              ## xmm0 = xmm2[0,1],xmm0[2,3],xmm2[4,5,6,7]
	movdqa	LCPI0_0(%rip), %xmm10           ## xmm10 = [128,64,32,16]
	movdqa	%xmm1, %xmm6
	pmulld	%xmm10, %xmm6
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [2048,1024,512,256]
	movdqa	%xmm1, %xmm2
	pmulld	%xmm8, %xmm2
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [32768,16384,8192,4096]
	pmulld	%xmm11, %xmm1
	movd	%esi, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	movdqa	%xmm3, %xmm4
	pand	%xmm8, %xmm4
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,4,2,1]
	movdqa	%xmm3, %xmm5
	pand	%xmm9, %xmm5
	movdqa	%xmm3, %xmm7
	pand	%xmm11, %xmm7
	pinsrd	$2, %ecx, %xmm0
	pand	%xmm10, %xmm3
	pinsrd	$3, %eax, %xmm0
	pcmpeqd	%xmm10, %xmm3
	pand	%xmm6, %xmm3
	pcmpeqd	%xmm11, %xmm7
	pand	%xmm1, %xmm7
	por	%xmm3, %xmm7
	pcmpeqd	%xmm9, %xmm5
	pand	%xmm0, %xmm5
	pcmpeqd	%xmm8, %xmm4
	pand	%xmm2, %xmm4
	por	%xmm5, %xmm4
	por	%xmm7, %xmm4
	pshufd	$238, %xmm4, %xmm0              ## xmm0 = xmm4[2,3,2,3]
	por	%xmm4, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %eax
	andl	$-2, %eax
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	sarl	$2, %esi
	addq	$2, %rdi
	cmpq	%rdi, %rax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %sil
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r9), %rcx
	orl	(%rcx,%rdi,4), %edx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	$2, %sil
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r9), %rcx
	orl	4(%rcx,%rdi,4), %edx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_HT_RATES_OFFSET,4,2         ## @HW_HT_RATES_OFFSET
	.comm	_CONF_HW_BIT_RATE_MCS_0,4,2     ## @CONF_HW_BIT_RATE_MCS_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wl1271_tx_enabled_rates_get
lCPI0_0:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	7                               ; 0x7
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	4                               ; 0x4
lCPI0_2:
	.long	11                              ; 0xb
	.long	10                              ; 0xa
	.long	9                               ; 0x9
	.long	8                               ; 0x8
lCPI0_3:
	.long	15                              ; 0xf
	.long	14                              ; 0xe
	.long	13                              ; 0xd
	.long	12                              ; 0xc
lCPI0_4:
	.long	128                             ; 0x80
	.long	64                              ; 0x40
	.long	32                              ; 0x20
	.long	16                              ; 0x10
lCPI0_5:
	.long	32768                           ; 0x8000
	.long	16384                           ; 0x4000
	.long	8192                            ; 0x2000
	.long	4096                            ; 0x1000
lCPI0_6:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	1                               ; 0x1
lCPI0_7:
	.long	2048                            ; 0x800
	.long	1024                            ; 0x400
	.long	512                             ; 0x200
	.long	256                             ; 0x100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wl1271_tx_enabled_rates_get
	.p2align	2
_wl1271_tx_enabled_rates_get:           ; @wl1271_tx_enabled_rates_get
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x10, [x8, w2, uxtw #3]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x11, #0
	mov	w8, #0
	lsl	x12, x9, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w1, w1, #1
	add	x11, x11, #4
	cmp	x12, x11
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w1, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x10, #8]
	ldr	w13, [x13, x11]
	orr	w8, w13, w8
	b	LBB0_2
LBB0_5:
	mov	w8, #0
LBB0_6:
Lloh0:
	adrp	x10, _HW_HT_RATES_OFFSET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HW_HT_RATES_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w9, w10, w9
	asr	w9, w1, w9
Lloh3:
	adrp	x10, _CONF_HW_BIT_RATE_MCS_0@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CONF_HW_BIT_RATE_MCS_0@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w11, w10, #1
	dup.2s	v0, w10
Lloh6:
	adrp	x12, lCPI0_0@PAGE
Lloh7:
	ldr	d1, [x12, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	dup.4s	v1, w10
Lloh8:
	adrp	x12, lCPI0_1@PAGE
Lloh9:
	ldr	q2, [x12, lCPI0_1@PAGEOFF]
	ushl.4s	v2, v1, v2
Lloh10:
	adrp	x12, lCPI0_2@PAGE
Lloh11:
	ldr	q3, [x12, lCPI0_2@PAGEOFF]
	ushl.4s	v3, v1, v3
Lloh12:
	adrp	x12, lCPI0_3@PAGE
Lloh13:
	ldr	q4, [x12, lCPI0_3@PAGEOFF]
	dup.4s	v5, w9
	ushl.4s	v1, v1, v4
Lloh14:
	adrp	x9, lCPI0_4@PAGE
Lloh15:
	ldr	q4, [x9, lCPI0_4@PAGEOFF]
	and.16b	v4, v5, v4
Lloh16:
	adrp	x9, lCPI0_5@PAGE
Lloh17:
	ldr	q6, [x9, lCPI0_5@PAGEOFF]
	and.16b	v6, v5, v6
Lloh18:
	adrp	x9, lCPI0_6@PAGE
Lloh19:
	ldr	q7, [x9, lCPI0_6@PAGEOFF]
	and.16b	v7, v5, v7
Lloh20:
	adrp	x9, lCPI0_7@PAGE
Lloh21:
	ldr	q16, [x9, lCPI0_7@PAGEOFF]
	and.16b	v5, v5, v16
	cmeq.4s	v5, v5, #0
	cmeq.4s	v7, v7, #0
	cmeq.4s	v6, v6, #0
	mov.s	v0[2], w11
	cmeq.4s	v4, v4, #0
	mov.s	v0[3], w10
	bic.16b	v2, v2, v4
	bic.16b	v1, v1, v6
	bic.16b	v0, v0, v7
	bic.16b	v3, v3, v5
	orr.16b	v0, v3, v0
	orr.16b	v1, v1, v2
	orr.16b	v0, v1, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w9, v0[1]
	fmov	w10, s0
	orr	w9, w10, w9
	orr	w0, w9, w8
	ret
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpAdrp	Lloh16, Lloh18
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_HT_RATES_OFFSET,4,2         ; @HW_HT_RATES_OFFSET
	.comm	_CONF_HW_BIT_RATE_MCS_0,4,2     ; @CONF_HW_BIT_RATE_MCS_0
.subsections_via_symbols
