	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_get_frontend
_dib7000p_get_frontend:                 ## @dib7000p_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	$463, %esi                      ## imm = 0x1CF
	callq	_dib7000p_read_word
	movl	%eax, %ebx
	movq	_INVERSION_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movl	(%r15), %edi
	callq	_BANDWIDTH_TO_HZ
	movl	%eax, 32(%r14)
	movl	%ebx, %eax
	shrl	$8, %eax
	andl	$3, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.3:
	movq	_TRANSMISSION_MODE_8K@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_TRANSMISSION_MODE_2K@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
LBB0_5:
	movl	%ebx, %eax
	andl	$3, %eax
	leaq	l_switch.table.dib7000p_get_frontend(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	%ebx, %eax
	shrl	$14, %eax
	andl	$3, %eax
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.7:
	movq	_QAM_16@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movq	_QAM_64@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movq	_QPSK@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
	movl	%eax, 20(%r14)
	movq	_HIERARCHY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%ebx, %ecx
	shrl	$5, %ecx
	andl	$7, %ecx
	decl	%ecx
	movq	_FEC_7_8@GOTPCREL(%rip), %rax
	movq	%rax, %rdx
	cmpl	$4, %ecx
	ja	LBB0_12
## %bb.11:
	movslq	%ecx, %rcx
	leaq	l_switch.table.dib7000p_get_frontend.2(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
LBB0_12:
	movq	(%rdx), %rcx
	movq	%rcx, 8(%r14)
	shrl	$2, %ebx
	andl	$7, %ebx
	decl	%ebx
	cmpl	$4, %ebx
	ja	LBB0_14
## %bb.13:
	movslq	%ebx, %rax
	leaq	l_switch.table.dib7000p_get_frontend.2(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_14:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_dib7000p_get_frontend
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.dib7000p_get_frontend
l_switch.table.dib7000p_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.dib7000p_get_frontend.2
l_switch.table.dib7000p_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 dib7000p_get_frontend
_dib7000p_get_frontend:                 ; @dib7000p_get_frontend
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	mov	x0, x21
	mov	w1, #463
	bl	_dib7000p_read_word
	mov	x20, x0
Lloh0:
	adrp	x8, _INVERSION_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVERSION_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	ldr	w0, [x21]
	bl	_BANDWIDTH_TO_HZ
	str	w0, [x19, #32]
	ubfx	w8, w20, #8, #2
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #28]
LBB0_5:
Lloh7:
	adrp	x8, _QAM_16@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QAM_16@GOTPAGEOFF]
Lloh9:
	adrp	x9, _QAM_64@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QAM_64@GOTPAGEOFF]
	mov	w10, #3
	ands	w11, w10, w20, lsr #14
	cmp	w11, #1
	csel	x8, x8, x9, eq
	tst	w10, w20, lsr #14
	and	w9, w20, #0x3
Lloh11:
	adrp	x10, l_switch.table.dib7000p_get_frontend@PAGE
Lloh12:
	add	x10, x10, l_switch.table.dib7000p_get_frontend@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh13:
	adrp	x9, _QPSK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _QPSK@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	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, x20, #5, #3
	sub	x8, x8, #1
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.6:
Lloh18:
	adrp	x9, l_switch.table.dib7000p_get_frontend.2@PAGE
Lloh19:
	add	x9, x9, l_switch.table.dib7000p_get_frontend.2@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _FEC_7_8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FEC_7_8@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	ubfx	x8, x20, #2, #3
	sub	x8, x8, #1
	cmp	w8, #4
	b.hi	LBB0_10
; %bb.9:
Lloh22:
	adrp	x9, l_switch.table.dib7000p_get_frontend.2@PAGE
Lloh23:
	add	x9, x9, l_switch.table.dib7000p_get_frontend.2@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x8, _FEC_7_8@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FEC_7_8@GOTPAGEOFF]
LBB0_11:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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	_dib7000p_get_frontend
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.dib7000p_get_frontend
l_switch.table.dib7000p_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.dib7000p_get_frontend.2
l_switch.table.dib7000p_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
