	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rtl2832_rd_demod_reg
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_rtl2832_rd_demod_reg:                  ## @rtl2832_rd_demod_reg
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_registers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %r13d
	movl	(%rax,%rcx,4), %r14d
	movl	4(%rax,%rcx,4), %eax
	movl	%r14d, %ebx
	sarl	$3, %ebx
	leal	1(%rbx), %r15d
	movl	%r14d, %edi
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	subl	%eax, %edi
	callq	_REG_MASK
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r12), %edi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %esi
	movl	%r15d, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	je	LBB0_1
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_dbg
	jmp	LBB0_15
LBB0_1:
	xorl	%r12d, %r12d
	movl	$0, %esi
	testl	%r14d, %r14d
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	movl	-68(%rbp), %r10d                ## 4-byte Reload
	js	LBB0_13
## %bb.2:
	xorl	%esi, %esi
	testl	%ebx, %ebx
	movl	$0, %ecx
	cmovgl	%ebx, %ecx
	leal	1(%rcx), %eax
	cmpl	$7, %ecx
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %edx
	andl	$2147483640, %edx               ## imm = 0x7FFFFFF8
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm6                ## xmm6 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%rsi, %rdi
	andq	$-2, %rdi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm7
	psubd	%xmm2, %xmm7
	movdqa	%xmm7, %xmm4
	psubd	%xmm8, %xmm4
	movdqa	%xmm7, %xmm0
	pslld	$26, %xmm0
	paddd	%xmm5, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	-64(%rbp,%rcx,4), %xmm0
	por	%xmm1, %xmm0
	pslld	$26, %xmm4
	paddd	%xmm5, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pmulld	-48(%rbp,%rcx,4), %xmm4
	por	%xmm3, %xmm4
	movdqa	%xmm7, %xmm1
	psubd	%xmm9, %xmm1
	psubd	%xmm10, %xmm7
	pslld	$26, %xmm1
	paddd	%xmm5, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pmulld	-32(%rbp,%rcx,4), %xmm1
	por	%xmm0, %xmm1
	pslld	$26, %xmm7
	paddd	%xmm5, %xmm7
	cvttps2dq	%xmm7, %xmm3
	pmulld	-16(%rbp,%rcx,4), %xmm3
	por	%xmm4, %xmm3
	addq	$16, %rcx
	paddd	%xmm11, %xmm2
	addq	$-2, %rdi
	jne	LBB0_7
## %bb.8:
	testb	$1, %sil
	je	LBB0_10
LBB0_9:
	psubd	%xmm2, %xmm6
	movdqa	%xmm6, %xmm0
	psubd	LCPI0_1(%rip), %xmm0
	pslld	$26, %xmm6
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm2, %xmm6
	cvttps2dq	%xmm6, %xmm4
	pmulld	-64(%rbp,%rcx,4), %xmm4
	por	%xmm4, %xmm1
	pslld	$26, %xmm0
	paddd	%xmm2, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pmulld	-48(%rbp,%rcx,4), %xmm0
	por	%xmm0, %xmm3
LBB0_10:
	por	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	cmpq	%rax, %rdx
	je	LBB0_13
LBB0_11:
	shll	$3, %ebx
	leal	(,%rdx,8), %ecx
	subl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rdx,4), %edi
	movl	%ebx, %ecx
	shll	%cl, %edi
	orl	%edi, %esi
	incq	%rdx
	addl	$-8, %ebx
	cmpq	%rdx, %rax
	jne	LBB0_12
LBB0_13:
	movl	%r9d, %ecx
	sarl	%cl, %esi
	andl	%r10d, %esi
	movl	%esi, (%r8)
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [0,1,2,3]
	pxor	%xmm1, %xmm1
	xorl	%ecx, %ecx
	pxor	%xmm3, %xmm3
	testb	$1, %sil
	jne	LBB0_9
	jmp	LBB0_10
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_registers,8,3                  ## @registers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_rd_demod_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function rtl2832_rd_demod_reg
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rtl2832_rd_demod_reg:                  ; @rtl2832_rd_demod_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x0, #8]
Lloh3:
	adrp	x8, _registers@GOTPAGE
Lloh4:
	ldr	x8, [x8, _registers@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #12
	smaddl	x8, w1, w9, x8
	ldp	w25, w23, [x8, #4]
	ldr	w27, [x8]
	asr	w26, w27, #3
	add	w24, w26, #1
	sub	w0, w27, w25
	bl	_REG_MASK
	mov	x20, x0
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x23
	mov	x3, x24
	bl	_regmap_bulk_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_dbg
	b	LBB0_12
LBB0_2:
	tbnz	w27, #31, LBB0_5
; %bb.3:
	cmp	w26, #0
	csel	w8, w26, wzr, gt
	cmp	w8, #15
	b.hs	LBB0_6
; %bb.4:
	mov	x9, #0
	mov	w11, #0
	b	LBB0_9
LBB0_5:
	mov	w11, #0
	b	LBB0_11
LBB0_6:
	add	w10, w8, #1
	and	x9, x10, #0x7ffffff0
	dup.4s	v0, w26
	add	x11, sp, #8
	add	x11, x11, #32
	movi.2d	v1, #0000000000000000
	movi.4s	v2, #4
Lloh8:
	adrp	x12, lCPI0_0@PAGE
Lloh9:
	ldr	q3, [x12, lCPI0_0@PAGEOFF]
	movi.4s	v4, #8
	movi.4s	v5, #12
	movi.4s	v6, #16
	mov	x12, x9
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q18, q19, [x11, #-32]
	ldp	q20, q21, [x11], #64
	sub.4s	v22, v0, v3
	sub.4s	v23, v22, v2
	sub.4s	v24, v22, v4
	sub.4s	v25, v22, v5
	shl.4s	v22, v22, #3
	shl.4s	v23, v23, #3
	shl.4s	v24, v24, #3
	shl.4s	v25, v25, #3
	ushl.4s	v18, v18, v22
	ushl.4s	v19, v19, v23
	ushl.4s	v20, v20, v24
	ushl.4s	v21, v21, v25
	orr.16b	v1, v18, v1
	orr.16b	v7, v19, v7
	orr.16b	v16, v20, v16
	orr.16b	v17, v21, v17
	add.4s	v3, v3, v6
	subs	x12, x12, #16
	b.ne	LBB0_7
; %bb.8:
	orr.16b	v0, v7, v1
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	x9, x10
	b.eq	LBB0_11
LBB0_9:
	lsl	w10, w26, #3
	sub	w10, w10, w9, lsl #3
	add	x12, sp, #8
	sub	x8, x8, x9
	add	x8, x8, #1
	add	x9, x12, x9, lsl #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	lsl	w12, w12, w10
	orr	w11, w12, w11
	sub	w10, w10, #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w22, #0
	asr	w8, w11, w25
	and	w8, w8, w20
	str	w8, [x19]
LBB0_12:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_registers,8,3                  ; @registers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_rd_demod_reg
.subsections_via_symbols
