	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_c_cck_plcp_set
_brcms_c_cck_plcp_set:                  ## @brcms_c_cck_plcp_set
	.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
	movl	%edx, %ebx
	movl	%esi, %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	shll	$4, %ebx
	movslq	%ebx, %rcx
	imulq	$780903145, %rcx, %rdx          ## imm = 0x2E8BA2E9
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$33, %rdx
	addl	%eax, %edx
	imull	$-11, %edx, %eax
	addl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setg	%al
	addl	%edx, %eax
	xorl	%edx, %edx
	movl	$640, %ecx                      ## imm = 0x280
	jmp	LBB0_11
LBB0_8:
	movq	(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_brcms_err
LBB0_9:
	shll	$3, %ebx
	xorl	%edx, %edx
	movl	$650, %ecx                      ## imm = 0x28A
	jmp	LBB0_10
LBB0_2:
	shll	$2, %ebx
	xorl	%edx, %edx
	movl	$645, %ecx                      ## imm = 0x285
LBB0_10:
	movl	%ebx, %eax
LBB0_11:
	movl	%ecx, (%r14)
	movq	_D11B_PLCP_SIGNAL_LOCKED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 4(%r14)
	movzbl	%al, %ecx
	movl	%ecx, 8(%r14)
	movzbl	%ah, %eax
	movl	%eax, 12(%r14)
	movq	$0, 16(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leal	(,%rbx,8), %edx
	movslq	%edx, %rax
	imulq	$780903145, %rax, %rax          ## imm = 0x2E8BA2E9
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	imull	$-11, %eax, %ecx
	leal	(%rcx,%rbx,8), %esi
	movl	$655, %ecx                      ## imm = 0x28F
	testl	%esi, %esi
	jle	LBB0_5
## %bb.6:
	movl	%eax, %esi
	incl	%eax
	leal	(%rax,%rax,4), %edi
	leal	(%rsi,%rdi,2), %esi
	incl	%esi
	subl	%edx, %esi
	xorl	%edx, %edx
	cmpl	$8, %esi
	jl	LBB0_11
## %bb.7:
	movq	_D11B_PLCP_SIGNAL_LE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_11
LBB0_5:
	xorl	%edx, %edx
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_D11B_PLCP_SIGNAL_LE,4,2        ## @D11B_PLCP_SIGNAL_LE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"brcms_c_cck_plcp_set: unsupported rate %d\n"

	.comm	_D11B_PLCP_SIGNAL_LOCKED,4,2    ## @D11B_PLCP_SIGNAL_LOCKED
	.no_dead_strip	_brcms_c_cck_plcp_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_c_cck_plcp_set
_brcms_c_cck_plcp_set:                  ; @brcms_c_cck_plcp_set
	.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	x19, x3
	mov	x20, x2
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w9, #0
	lsl	w8, w20, #4
	mov	w10, #41705
	movk	w10, #11915, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #63
	asr	x10, x10, #33
	add	w10, w10, w11
	mov	w11, #-11
	madd	w8, w10, w11, w8
	cmp	w8, #0
	cinc	w8, w10, gt
	mov	w10, #640
	b	LBB0_10
LBB0_3:
	mov	x2, x1
	ldr	x8, [x0]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcms_err
LBB0_4:
	mov	w9, #0
	lsl	w8, w20, #3
	mov	w10, #650
	b	LBB0_10
LBB0_5:
	mov	w9, #0
	lsl	w8, w20, #2
	mov	w10, #645
	b	LBB0_10
LBB0_6:
	lsl	w9, w20, #3
	mov	w8, #41705
	movk	w8, #11915, lsl #16
	smull	x8, w9, w8
	lsr	x10, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w10
	mov	w10, #-11
	madd	w10, w8, w10, w9
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.7:
	add	w8, w8, #1
	mov	w10, #11
	neg	w9, w9
	madd	w9, w8, w10, w9
Lloh4:
	adrp	x10, _D11B_PLCP_SIGNAL_LE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _D11B_PLCP_SIGNAL_LE@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	cmp	w9, #7
	csel	w9, w10, wzr, gt
	b	LBB0_9
LBB0_8:
	mov	w9, #0
LBB0_9:
	mov	w10, #655
LBB0_10:
	str	w10, [x19]
Lloh7:
	adrp	x10, _D11B_PLCP_SIGNAL_LOCKED@GOTPAGE
Lloh8:
	ldr	x10, [x10, _D11B_PLCP_SIGNAL_LOCKED@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w10, w8, #0xff
	stp	w9, w10, [x19, #4]
	ubfx	w8, w8, #8, #8
	str	xzr, [x19, #16]
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_D11B_PLCP_SIGNAL_LE,4,2        ; @D11B_PLCP_SIGNAL_LE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"brcms_c_cck_plcp_set: unsupported rate %d\n"

	.comm	_D11B_PLCP_SIGNAL_LOCKED,4,2    ; @D11B_PLCP_SIGNAL_LOCKED
	.no_dead_strip	_brcms_c_cck_plcp_set
.subsections_via_symbols
