	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_get_frontend_t2       ## -- Begin function cxd2820r_get_frontend_t2
	.p2align	4, 0x90
_cxd2820r_get_frontend_t2:              ## @cxd2820r_get_frontend_t2
	.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	$8284, %esi                     ## imm = 0x205C
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	-48(%rbp), %eax
	andl	$7, %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.2:
	leaq	l_switch.table.cxd2820r_get_frontend_t2(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_3:
	movl	-44(%rbp), %eax
	shrl	$4, %eax
	andl	$7, %eax
	cmpl	$7, %eax
	je	LBB0_5
## %bb.4:
	leaq	l_switch.table.cxd2820r_get_frontend_t2.2(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
LBB0_5:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$8795, %esi                     ## imm = 0x225B
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movl	-48(%rbp), %eax
	andl	$7, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.7:
	leaq	l_switch.table.cxd2820r_get_frontend_t2.3(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_8:
	movl	-44(%rbp), %eax
	andl	$7, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.9:
	leaq	l_switch.table.cxd2820r_get_frontend_t2.4(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_10:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rdx
	movl	$8373, %esi                     ## imm = 0x20B5
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testb	$16, -52(%rbp)
	jne	LBB0_14
## %bb.12:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_14:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_TRANSMISSION_MODE_2K,4,2       ## @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ## @TRANSMISSION_MODE_8K
	.comm	_TRANSMISSION_MODE_4K,4,2       ## @TRANSMISSION_MODE_4K
	.comm	_TRANSMISSION_MODE_1K,4,2       ## @TRANSMISSION_MODE_1K
	.comm	_TRANSMISSION_MODE_16K,4,2      ## @TRANSMISSION_MODE_16K
	.comm	_TRANSMISSION_MODE_32K,4,2      ## @TRANSMISSION_MODE_32K
	.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	_GUARD_INTERVAL_1_128,4,2       ## @GUARD_INTERVAL_1_128
	.comm	_GUARD_INTERVAL_19_128,4,2      ## @GUARD_INTERVAL_19_128
	.comm	_GUARD_INTERVAL_19_256,4,2      ## @GUARD_INTERVAL_19_256
	.comm	_FEC_1_2,4,2                    ## @FEC_1_2
	.comm	_FEC_3_5,4,2                    ## @FEC_3_5
	.comm	_FEC_2_3,4,2                    ## @FEC_2_3
	.comm	_FEC_3_4,4,2                    ## @FEC_3_4
	.comm	_FEC_4_5,4,2                    ## @FEC_4_5
	.comm	_FEC_5_6,4,2                    ## @FEC_5_6
	.comm	_QPSK,4,2                       ## @QPSK
	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_QAM_256,4,2                    ## @QAM_256
	.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_t2
l_switch.table.cxd2820r_get_frontend_t2:
	.quad	_TRANSMISSION_MODE_2K
	.quad	_TRANSMISSION_MODE_8K
	.quad	_TRANSMISSION_MODE_4K
	.quad	_TRANSMISSION_MODE_1K
	.quad	_TRANSMISSION_MODE_16K
	.quad	_TRANSMISSION_MODE_32K

	.p2align	3                               ## @switch.table.cxd2820r_get_frontend_t2.2
l_switch.table.cxd2820r_get_frontend_t2.2:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4
	.quad	_GUARD_INTERVAL_1_128
	.quad	_GUARD_INTERVAL_19_128
	.quad	_GUARD_INTERVAL_19_256

	.p2align	3                               ## @switch.table.cxd2820r_get_frontend_t2.3
l_switch.table.cxd2820r_get_frontend_t2.3:
	.quad	_FEC_1_2
	.quad	_FEC_3_5
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_4_5
	.quad	_FEC_5_6

	.p2align	3                               ## @switch.table.cxd2820r_get_frontend_t2.4
l_switch.table.cxd2820r_get_frontend_t2.4:
	.quad	_QPSK
	.quad	_QAM_16
	.quad	_QAM_64
	.quad	_QAM_256

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_get_frontend_t2       ; -- Begin function cxd2820r_get_frontend_t2
	.p2align	2
_cxd2820r_get_frontend_t2:              ; @cxd2820r_get_frontend_t2
	.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, #8284
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.1:
	ldr	w8, [sp, #16]
	and	x8, x8, #0x7
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.2:
Lloh5:
	adrp	x9, l_switch.table.cxd2820r_get_frontend_t2@PAGE
Lloh6:
	add	x9, x9, l_switch.table.cxd2820r_get_frontend_t2@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_3:
	ldr	w8, [sp, #20]
	ubfx	x8, x8, #4, #3
	cmp	w8, #7
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x9, l_switch.table.cxd2820r_get_frontend_t2.2@PAGE
Lloh8:
	add	x9, x9, l_switch.table.cxd2820r_get_frontend_t2.2@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_5:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x2, sp, #16
	mov	w1, #8795
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w8, [sp, #16]
	and	x8, x8, #0x7
	cmp	w8, #5
	b.hi	LBB0_8
; %bb.7:
Lloh9:
	adrp	x9, l_switch.table.cxd2820r_get_frontend_t2.3@PAGE
Lloh10:
	add	x9, x9, l_switch.table.cxd2820r_get_frontend_t2.3@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_8:
	ldr	w8, [sp, #20]
	and	x8, x8, #0x7
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.9:
Lloh11:
	adrp	x9, l_switch.table.cxd2820r_get_frontend_t2.4@PAGE
Lloh12:
	add	x9, x9, l_switch.table.cxd2820r_get_frontend_t2.4@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_10:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	w1, #8373
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_14
LBB0_11:
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_12:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.13:
	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_14:
	ldrb	w8, [sp, #12]
	tbnz	w8, #4, LBB0_16
; %bb.15:
	mov	w21, #0
Lloh18:
	adrp	x8, _INVERSION_OFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INVERSION_OFF@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	mov	w21, #0
Lloh20:
	adrp	x8, _INVERSION_ON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INVERSION_ON@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_12
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_TRANSMISSION_MODE_2K,4,2       ; @TRANSMISSION_MODE_2K
	.comm	_TRANSMISSION_MODE_8K,4,2       ; @TRANSMISSION_MODE_8K
	.comm	_TRANSMISSION_MODE_4K,4,2       ; @TRANSMISSION_MODE_4K
	.comm	_TRANSMISSION_MODE_1K,4,2       ; @TRANSMISSION_MODE_1K
	.comm	_TRANSMISSION_MODE_16K,4,2      ; @TRANSMISSION_MODE_16K
	.comm	_TRANSMISSION_MODE_32K,4,2      ; @TRANSMISSION_MODE_32K
	.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	_GUARD_INTERVAL_1_128,4,2       ; @GUARD_INTERVAL_1_128
	.comm	_GUARD_INTERVAL_19_128,4,2      ; @GUARD_INTERVAL_19_128
	.comm	_GUARD_INTERVAL_19_256,4,2      ; @GUARD_INTERVAL_19_256
	.comm	_FEC_1_2,4,2                    ; @FEC_1_2
	.comm	_FEC_3_5,4,2                    ; @FEC_3_5
	.comm	_FEC_2_3,4,2                    ; @FEC_2_3
	.comm	_FEC_3_4,4,2                    ; @FEC_3_4
	.comm	_FEC_4_5,4,2                    ; @FEC_4_5
	.comm	_FEC_5_6,4,2                    ; @FEC_5_6
	.comm	_QPSK,4,2                       ; @QPSK
	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_QAM_256,4,2                    ; @QAM_256
	.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_t2
l_switch.table.cxd2820r_get_frontend_t2:
	.quad	_TRANSMISSION_MODE_2K
	.quad	_TRANSMISSION_MODE_8K
	.quad	_TRANSMISSION_MODE_4K
	.quad	_TRANSMISSION_MODE_1K
	.quad	_TRANSMISSION_MODE_16K
	.quad	_TRANSMISSION_MODE_32K

	.p2align	3                               ; @switch.table.cxd2820r_get_frontend_t2.2
l_switch.table.cxd2820r_get_frontend_t2.2:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4
	.quad	_GUARD_INTERVAL_1_128
	.quad	_GUARD_INTERVAL_19_128
	.quad	_GUARD_INTERVAL_19_256

	.p2align	3                               ; @switch.table.cxd2820r_get_frontend_t2.3
l_switch.table.cxd2820r_get_frontend_t2.3:
	.quad	_FEC_1_2
	.quad	_FEC_3_5
	.quad	_FEC_2_3
	.quad	_FEC_3_4
	.quad	_FEC_4_5
	.quad	_FEC_5_6

	.p2align	3                               ; @switch.table.cxd2820r_get_frontend_t2.4
l_switch.table.cxd2820r_get_frontend_t2.4:
	.quad	_QPSK
	.quad	_QAM_16
	.quad	_QAM_64
	.quad	_QAM_256

.subsections_via_symbols
