	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl2832_get_frontend
_rtl2832_get_frontend:                  ## @rtl2832_get_frontend
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rbx
	xorl	%r12d, %r12d
	cmpq	$0, 8(%rbx)
	jne	LBB0_21
## %bb.1:
	movq	%rsi, %r14
	movq	16(%rbx), %r15
	movl	(%rbx), %edi
	leaq	-52(%rbp), %rdx
	movl	$828, %esi                      ## imm = 0x33C
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.2:
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rdx
	movl	$849, %esi                      ## imm = 0x351
	movl	$1, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	$3, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-52(%rbp), %eax
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_5
## %bb.4:
	leaq	l_switch.table.rtl2832_get_frontend(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r14)
LBB0_5:
	movl	-44(%rbp), %ecx
	testb	$4, %cl
	jne	LBB0_6
## %bb.7:
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %edx
	movl	%edx, 24(%r14)
	andl	$3, %ecx
	leaq	l_switch.table.rtl2832_get_frontend.2(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r14)
	shrl	$4, %eax
	andl	$7, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.9:
	leaq	l_switch.table.rtl2832_get_frontend.4(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_10:
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	shrl	$3, %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	ja	LBB0_12
## %bb.11:
	leaq	l_switch.table.rtl2832_get_frontend.3(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
LBB0_12:
	andl	$7, %eax
	xorl	%r12d, %r12d
	cmpl	$4, %eax
	ja	LBB0_21
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movq	_FEC_1_2@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movq	_FEC_3_4@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_19:
	movq	_FEC_7_8@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	_FEC_2_3@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_18:
	movq	_FEC_5_6@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TPS=%*ph\n"

	.comm	_QPSK,4,2                       ## @QPSK
	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_TRANSMISSION_MODE_2K,4,2       ## @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ## @TRANSMISSION_MODE_8K
	.comm	_GUARD_INTERVAL_1_32,4,2        ## @GUARD_INTERVAL_1_32
	.comm	_GUARD_INTERVAL_1_16,4,2        ## @GUARD_INTERVAL_1_16
	.comm	_GUARD_INTERVAL_1_8,4,2         ## @GUARD_INTERVAL_1_8
	.comm	_GUARD_INTERVAL_1_4,4,2         ## @GUARD_INTERVAL_1_4
	.comm	_HIERARCHY_NONE,4,2             ## @HIERARCHY_NONE
	.comm	_HIERARCHY_1,4,2                ## @HIERARCHY_1
	.comm	_HIERARCHY_2,4,2                ## @HIERARCHY_2
	.comm	_HIERARCHY_4,4,2                ## @HIERARCHY_4
	.comm	_FEC_1_2,8,3                    ## @FEC_1_2
	.comm	_FEC_2_3,8,3                    ## @FEC_2_3
	.comm	_FEC_3_4,8,3                    ## @FEC_3_4
	.comm	_FEC_5_6,8,3                    ## @FEC_5_6
	.comm	_FEC_7_8,8,3                    ## @FEC_7_8
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_get_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.rtl2832_get_frontend
l_switch.table.rtl2832_get_frontend:
	.quad	_QPSK
	.quad	_QAM_16
	.quad	_QAM_64

	.p2align	3                               ## @switch.table.rtl2832_get_frontend.2
l_switch.table.rtl2832_get_frontend.2:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4

	.p2align	3                               ## @switch.table.rtl2832_get_frontend.3
l_switch.table.rtl2832_get_frontend.3:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

	.p2align	3                               ## @switch.table.rtl2832_get_frontend.4
l_switch.table.rtl2832_get_frontend.4:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl2832_get_frontend
_rtl2832_get_frontend:                  ; @rtl2832_get_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x22, [x0]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	ldr	x21, [x22, #16]
	ldr	w0, [x22]
	add	x23, sp, #12
	add	x2, sp, #12
	mov	w1, #828
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x22]
	add	x2, x23, #8
	mov	w1, #849
	mov	w3, #1
	bl	_regmap_bulk_read
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_4:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_dbg
LBB0_5:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	add	x8, sp, #12
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #3
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	ubfx	x9, x8, #2, #2
	cmp	w9, #3
	b.eq	LBB0_9
; %bb.8:
Lloh10:
	adrp	x10, l_switch.table.rtl2832_get_frontend@PAGE
Lloh11:
	add	x10, x10, l_switch.table.rtl2832_get_frontend@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19, #28]
LBB0_9:
	ldr	w9, [sp, #20]
Lloh12:
	adrp	x10, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
Lloh14:
	adrp	x11, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh15:
	ldr	x11, [x11, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
	tst	w9, #0x4
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	str	w10, [x19, #24]
	and	x9, x9, #0x3
Lloh16:
	adrp	x10, l_switch.table.rtl2832_get_frontend.2@PAGE
Lloh17:
	add	x10, x10, l_switch.table.rtl2832_get_frontend.2@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19, #20]
	ubfx	x8, x8, #4, #3
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.10:
Lloh18:
	adrp	x9, l_switch.table.rtl2832_get_frontend.4@PAGE
Lloh19:
	add	x9, x9, l_switch.table.rtl2832_get_frontend.4@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_11:
	ldr	w8, [sp, #16]
	ubfx	x9, x8, #3, #3
	cmp	w9, #4
	b.hi	LBB0_13
; %bb.12:
Lloh20:
	adrp	x10, l_switch.table.rtl2832_get_frontend.3@PAGE
Lloh21:
	add	x10, x10, l_switch.table.rtl2832_get_frontend.3@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	x9, [x9]
	str	x9, [x19, #8]
LBB0_13:
	and	w8, w8, #0x7
	cmp	w8, #4
	b.hi	LBB0_1
; %bb.14:
Lloh22:
	adrp	x9, lJTI0_0@PAGE
Lloh23:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_15
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_15:
	mov	w20, #0
Lloh24:
	adrp	x8, _FEC_1_2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FEC_1_2@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
	mov	w20, #0
Lloh26:
	adrp	x8, _FEC_3_4@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FEC_3_4@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	mov	w20, #0
Lloh28:
	adrp	x8, _FEC_7_8@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FEC_7_8@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w20, #0
Lloh30:
	adrp	x8, _FEC_2_3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FEC_2_3@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	mov	w20, #0
Lloh32:
	adrp	x8, _FEC_5_6@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FEC_5_6@GOTPAGEOFF]
LBB0_20:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_5
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_18-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TPS=%*ph\n"

	.comm	_QPSK,4,2                       ; @QPSK
	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_TRANSMISSION_MODE_2K,4,2       ; @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ; @TRANSMISSION_MODE_8K
	.comm	_GUARD_INTERVAL_1_32,4,2        ; @GUARD_INTERVAL_1_32
	.comm	_GUARD_INTERVAL_1_16,4,2        ; @GUARD_INTERVAL_1_16
	.comm	_GUARD_INTERVAL_1_8,4,2         ; @GUARD_INTERVAL_1_8
	.comm	_GUARD_INTERVAL_1_4,4,2         ; @GUARD_INTERVAL_1_4
	.comm	_HIERARCHY_NONE,4,2             ; @HIERARCHY_NONE
	.comm	_HIERARCHY_1,4,2                ; @HIERARCHY_1
	.comm	_HIERARCHY_2,4,2                ; @HIERARCHY_2
	.comm	_HIERARCHY_4,4,2                ; @HIERARCHY_4
	.comm	_FEC_1_2,8,3                    ; @FEC_1_2
	.comm	_FEC_2_3,8,3                    ; @FEC_2_3
	.comm	_FEC_3_4,8,3                    ; @FEC_3_4
	.comm	_FEC_5_6,8,3                    ; @FEC_5_6
	.comm	_FEC_7_8,8,3                    ; @FEC_7_8
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl2832_get_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.rtl2832_get_frontend
l_switch.table.rtl2832_get_frontend:
	.quad	_QPSK
	.quad	_QAM_16
	.quad	_QAM_64

	.p2align	3                               ; @switch.table.rtl2832_get_frontend.2
l_switch.table.rtl2832_get_frontend.2:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4

	.p2align	3                               ; @switch.table.rtl2832_get_frontend.3
l_switch.table.rtl2832_get_frontend.3:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

	.p2align	3                               ; @switch.table.rtl2832_get_frontend.4
l_switch.table.rtl2832_get_frontend.4:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

.subsections_via_symbols
