	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000mc_get_frontend
_dib3000mc_get_frontend:                ## @dib3000mc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$458, %esi                      ## imm = 0x1CA
	callq	_dib3000mc_read_word
	movq	_INVERSION_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r14)
	movl	(%rbx), %ecx
	movl	%ecx, 32(%r14)
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, 28(%r14)
	movl	%eax, %ecx
	andl	$3, %ecx
	leaq	l_switch.table.dib3000mc_get_frontend(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movl	%eax, %ecx
	shrl	$13, %ecx
	andl	$3, %ecx
	cmpl	$1, %ecx
	jne	LBB0_4
## %bb.5:
	movq	_QAM_16@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	je	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	_QAM_64@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	jne	LBB0_8
LBB0_7:
	movq	_QPSK@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %ecx
	movl	%ecx, 20(%r14)
	movq	_HIERARCHY_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
	movl	%eax, %esi
	shrl	$5, %esi
	andl	$7, %esi
	decl	%esi
	movq	_FEC_7_8@GOTPCREL(%rip), %rcx
	leaq	l_switch.table.dib3000mc_get_frontend.2(%rip), %rdx
	movq	%rcx, %rdi
	cmpl	$4, %esi
	ja	LBB0_10
## %bb.9:
	movslq	%esi, %rsi
	movq	(%rdx,%rsi,8), %rdi
LBB0_10:
	movq	(%rdi), %rsi
	movq	%rsi, 8(%r14)
	shrl	$2, %eax
	andl	$7, %eax
	decl	%eax
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.11:
	cltq
	movq	(%rdx,%rax,8), %rcx
LBB0_12:
	movq	(%rcx), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVERSION_AUTO,4,2             ## @INVERSION_AUTO
	.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	_QPSK,4,2                       ## @QPSK
	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_QAM_64,4,2                     ## @QAM_64
	.comm	_HIERARCHY_NONE,4,2             ## @HIERARCHY_NONE
	.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
	.no_dead_strip	_dib3000mc_get_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.dib3000mc_get_frontend
l_switch.table.dib3000mc_get_frontend:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib3000mc_get_frontend
_dib3000mc_get_frontend:                ; @dib3000mc_get_frontend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #458
	bl	_dib3000mc_read_word
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _QAM_16@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QAM_16@GOTPAGEOFF]
Lloh2:
	adrp	x9, _QAM_64@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QAM_64@GOTPAGEOFF]
	mov	w10, #3
	ands	w11, w10, w0, lsr #13
	cmp	w11, #1
	csel	x8, x8, x9, eq
	tst	w10, w0, lsr #13
Lloh4:
	adrp	x9, _INVERSION_AUTO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INVERSION_AUTO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w10, [x20]
	stp	w10, w9, [x19, #32]
Lloh7:
	adrp	x9, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
Lloh9:
	adrp	x10, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
Lloh11:
	adrp	x11, _QPSK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _QPSK@GOTPAGEOFF]
	mov	x12, x0
	csel	x8, x11, x8, eq
	tst	w0, #0x100
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x19, #28]
	and	w9, w0, #0x3
Lloh13:
	adrp	x10, l_switch.table.dib3000mc_get_frontend@PAGE
Lloh14:
	add	x10, x10, l_switch.table.dib3000mc_get_frontend@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	ldr	w9, [x9]
	str	w9, [x19, #24]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HIERARCHY_NONE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HIERARCHY_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	ubfx	x8, x12, #5, #3
	sub	x9, x8, #1
Lloh18:
	adrp	x8, l_switch.table.dib3000mc_get_frontend.2@PAGE
Lloh19:
	add	x8, x8, l_switch.table.dib3000mc_get_frontend.2@PAGEOFF
	cmp	w9, #4
	b.hi	LBB0_2
; %bb.1:
	ldr	x9, [x8, x9, lsl #3]
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x9, _FEC_7_8@GOTPAGE
Lloh21:
	ldr	x9, [x9, _FEC_7_8@GOTPAGEOFF]
LBB0_3:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	ubfx	x9, x0, #2, #3
	sub	x9, x9, #1
	cmp	w9, #4
	b.hi	LBB0_5
; %bb.4:
	ldr	x8, [x8, x9, lsl #3]
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _FEC_7_8@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FEC_7_8@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_INVERSION_AUTO,4,2             ; @INVERSION_AUTO
	.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	_QPSK,4,2                       ; @QPSK
	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_QAM_64,4,2                     ; @QAM_64
	.comm	_HIERARCHY_NONE,4,2             ; @HIERARCHY_NONE
	.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
	.no_dead_strip	_dib3000mc_get_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dib3000mc_get_frontend
l_switch.table.dib3000mc_get_frontend:
	.quad	_GUARD_INTERVAL_1_32
	.quad	_GUARD_INTERVAL_1_16
	.quad	_GUARD_INTERVAL_1_8
	.quad	_GUARD_INTERVAL_1_4

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

.subsections_via_symbols
