	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2820r_get_frontend_c        ## -- Begin function cxd2820r_get_frontend_c
	.p2align	4, 0x90
_cxd2820r_get_frontend_c:               ## @cxd2820r_get_frontend_c
	.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	4(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	$26, %esi
	movl	$2, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	-48(%rbp), %eax
	andl	$15, %eax
	shll	$8, %eax
	orl	-44(%rbp), %eax
	imull	$2500, %eax, %eax               ## imm = 0x9C4
	movl	%eax, (%r14)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	leaq	-52(%rbp), %rdx
	movl	$25, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-52(%rbp), %eax
	movl	%eax, %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	ja	LBB0_4
## %bb.3:
	leaq	l_switch.table.cxd2820r_get_frontend_c(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r14)
LBB0_4:
	testb	$-128, %al
	jne	LBB0_7
## %bb.5:
	movq	_INVERSION_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_INVERSION_ON@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_32,4,2                     ## @QAM_32
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_QAM_128,4,2                    ## @QAM_128
	.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_c
l_switch.table.cxd2820r_get_frontend_c:
	.quad	_QAM_16
	.quad	_QAM_32
	.quad	_QAM_64
	.quad	_QAM_128
	.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_c        ; -- Begin function cxd2820r_get_frontend_c
	.p2align	2
_cxd2820r_get_frontend_c:               ; @cxd2820r_get_frontend_c
	.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, #4]
	add	x2, sp, #16
	mov	w1, #26
	mov	w3, #2
	bl	_regmap_bulk_read
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	w8, w9, [sp, #16]
	ubfiz	w8, w8, #8, #4
	orr	w8, w8, w9
	mov	w9, #2500
	mul	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	add	x2, sp, #12
	mov	w1, #25
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_2:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_3:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.4:
	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_5:
	ldr	w8, [sp, #12]
	and	x9, x8, #0x7
	cmp	w9, #4
	b.hi	LBB0_7
; %bb.6:
Lloh10:
	adrp	x10, l_switch.table.cxd2820r_get_frontend_c@PAGE
Lloh11:
	add	x10, x10, l_switch.table.cxd2820r_get_frontend_c@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x19, #8]
LBB0_7:
	mov	w21, #0
	tbnz	w8, #7, LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _INVERSION_OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INVERSION_OFF@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _INVERSION_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INVERSION_ON@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_3
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_32,4,2                     ; @QAM_32
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_QAM_128,4,2                    ; @QAM_128
	.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_c
l_switch.table.cxd2820r_get_frontend_c:
	.quad	_QAM_16
	.quad	_QAM_32
	.quad	_QAM_64
	.quad	_QAM_128
	.quad	_QAM_256

.subsections_via_symbols
