	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_get_frontend_t        ## -- Begin function cxd2820r_get_frontend_t
	.p2align	4, 0x90
_cxd2820r_get_frontend_t:               ## @cxd2820r_get_frontend_t
	.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	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	movq	8(%r12), %rax
	movq	(%rax), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$47, %esi
	movl	$8, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.1:
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	shrl	$6, %ecx
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_3
## %bb.2:
	leaq	l_switch.table.cxd2820r_get_frontend_t(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r14)
LBB0_3:
	movl	-44(%rbp), %ecx
	movl	%ecx, %edx
	shrl	%edx
	andl	$3, %edx
	je	LBB0_4
## %bb.5:
	cmpl	$1, %edx
	jne	LBB0_8
## %bb.6:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_4:
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rdx
LBB0_7:
	movl	(%rdx), %edx
	movl	%edx, 32(%r14)
LBB0_8:
	movl	%ecx, %edx
	andl	$24, %edx
	leaq	l_switch.table.cxd2820r_get_frontend_t.2(%rip), %rsi
	movq	(%rdx,%rsi), %rdx
	movl	(%rdx), %edx
	movl	%edx, 28(%r14)
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$7, %edx
	cmpl	$3, %edx
	ja	LBB0_10
## %bb.9:
	leaq	l_switch.table.cxd2820r_get_frontend_t.5(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%r14)
LBB0_10:
	andl	$7, %eax
	leaq	l_switch.table.cxd2820r_get_frontend_t.4(%rip), %rdx
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.11:
	movl	%eax, %eax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
LBB0_12:
	shrl	$5, %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.13:
	movl	%ecx, %eax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_14:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rdx
	movl	$1990, %esi                     ## imm = 0x7C6
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testb	$1, -52(%rbp)
	jne	LBB0_18
## %bb.16:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_18:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\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
	.comm	_INVERSION_OFF,4,2              ## @INVERSION_OFF
	.comm	_INVERSION_ON,4,2               ## @INVERSION_ON
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

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

	.p2align	3                               ## @switch.table.cxd2820r_get_frontend_t.2
l_switch.table.cxd2820r_get_frontend_t.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.cxd2820r_get_frontend_t.4
l_switch.table.cxd2820r_get_frontend_t.4:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

	.p2align	3                               ## @switch.table.cxd2820r_get_frontend_t.5
l_switch.table.cxd2820r_get_frontend_t.5:
	.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
	.globl	_cxd2820r_get_frontend_t        ; -- Begin function cxd2820r_get_frontend_t
	.p2align	2
_cxd2820r_get_frontend_t:               ; @cxd2820r_get_frontend_t
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
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]
	ldr	x20, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x2, sp, #16
	mov	w1, #47
	mov	w3, #8
	bl	_regmap_bulk_read
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	w8, [sp, #16]
	ubfx	x9, x8, #6, #2
	cmp	w9, #3
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x10, l_switch.table.cxd2820r_get_frontend_t@PAGE
Lloh6:
	add	x10, x10, l_switch.table.cxd2820r_get_frontend_t@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19, #36]
LBB0_3:
	ldr	w9, [sp, #20]
	ubfx	w10, w9, #1, #2
	cbz	w10, LBB0_6
; %bb.4:
	cmp	w10, #1
	b.ne	LBB0_8
; %bb.5:
Lloh7:
	adrp	x10, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh8:
	ldr	x10, [x10, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x10, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x10]
	str	w10, [x19, #32]
LBB0_8:
	ubfx	x10, x9, #3, #2
Lloh11:
	adrp	x11, l_switch.table.cxd2820r_get_frontend_t.2@PAGE
Lloh12:
	add	x11, x11, l_switch.table.cxd2820r_get_frontend_t.2@PAGEOFF
	ldr	x10, [x11, x10, lsl #3]
	ldr	w10, [x10]
	str	w10, [x19, #28]
	ubfx	x10, x8, #3, #3
	cmp	w10, #3
	b.hi	LBB0_10
; %bb.9:
Lloh13:
	adrp	x11, l_switch.table.cxd2820r_get_frontend_t.5@PAGE
Lloh14:
	add	x11, x11, l_switch.table.cxd2820r_get_frontend_t.5@PAGEOFF
	ldr	x10, [x11, x10, lsl #3]
	ldr	w10, [x10]
	str	w10, [x19, #24]
LBB0_10:
	and	w10, w8, #0x7
Lloh15:
	adrp	x8, l_switch.table.cxd2820r_get_frontend_t.4@PAGE
Lloh16:
	add	x8, x8, l_switch.table.cxd2820r_get_frontend_t.4@PAGEOFF
	cmp	w10, #4
	b.hi	LBB0_12
; %bb.11:
	ldr	x10, [x8, w10, uxtw #3]
	ldr	x10, [x10]
	str	x10, [x19, #16]
LBB0_12:
	ubfx	w9, w9, #5, #3
	cmp	w9, #4
	b.hi	LBB0_14
; %bb.13:
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_14:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	w1, #1990
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_18
LBB0_15:
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_16:
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.17:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_18:
	ldrb	w8, [sp, #12]
	tbnz	w8, #0, LBB0_20
; %bb.19:
	mov	w21, #0
Lloh22:
	adrp	x8, _INVERSION_OFF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INVERSION_OFF@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
	mov	w21, #0
Lloh24:
	adrp	x8, _INVERSION_ON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INVERSION_ON@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_16
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\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
	.comm	_INVERSION_OFF,4,2              ; @INVERSION_OFF
	.comm	_INVERSION_ON,4,2               ; @INVERSION_ON
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

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

	.p2align	3                               ; @switch.table.cxd2820r_get_frontend_t.2
l_switch.table.cxd2820r_get_frontend_t.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.cxd2820r_get_frontend_t.4
l_switch.table.cxd2820r_get_frontend_t.4:
	.quad	_FEC_1_2
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_5_6
	.quad	_FEC_7_8

	.p2align	3                               ; @switch.table.cxd2820r_get_frontend_t.5
l_switch.table.cxd2820r_get_frontend_t.5:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

.subsections_via_symbols
