	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9013_get_frontend
_af9013_get_frontend:                   ## @af9013_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	%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), %rbx
	movq	8(%rbx), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edi
	leaq	-52(%rbp), %rdx
	movl	$54208, %esi                    ## imm = 0xD3C0
	movl	$3, %ecx
	callq	_regmap_bulk_read
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_1
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_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.af9013_get_frontend(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%r14)
LBB0_3:
	movl	-52(%rbp), %ecx
	movl	%ecx, %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	$12, %edx
	leaq	l_switch.table.af9013_get_frontend.2(%rip), %rsi
	movq	(%rsi,%rdx,2), %rdx
	movl	(%rdx), %edx
	movl	%edx, 28(%r14)
	shrl	$4, %ecx
	andl	$7, %ecx
	cmpl	$3, %ecx
	ja	LBB0_10
## %bb.9:
	movl	%ecx, %ecx
	leaq	l_switch.table.af9013_get_frontend.5(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
LBB0_10:
	movl	-44(%rbp), %ecx
	movl	%ecx, %esi
	andl	$7, %esi
	leaq	l_switch.table.af9013_get_frontend.4(%rip), %rdx
	cmpl	$4, %esi
	ja	LBB0_12
## %bb.11:
	movq	(%rdx,%rsi,8), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, 16(%r14)
LBB0_12:
	shrl	$3, %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.13:
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
LBB0_14:
	shrl	$2, %eax
	andl	$3, %eax
	cmpl	$2, %eax
	je	LBB0_19
## %bb.15:
	cmpl	$1, %eax
	je	LBB0_18
## %bb.16:
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movl	$6000000, (%r14)                ## imm = 0x5B8D80
	jmp	LBB0_21
LBB0_19:
	movl	$8000000, (%r14)                ## imm = 0x7A1200
	jmp	LBB0_21
LBB0_18:
	movl	$7000000, (%r14)                ## imm = 0x6ACFC0
	jmp	LBB0_21
LBB0_23:
	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
L_.str.1:                               ## @.str.1
	.asciz	"failed %d\n"

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

	.p2align	3                               ## @switch.table.af9013_get_frontend.2
l_switch.table.af9013_get_frontend.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.af9013_get_frontend.4
l_switch.table.af9013_get_frontend.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.af9013_get_frontend.5
l_switch.table.af9013_get_frontend.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
	.p2align	2                               ; -- Begin function af9013_get_frontend
_af9013_get_frontend:                   ; @af9013_get_frontend
	.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	x20, 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	x19, [x0]
	ldr	x21, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w0, [x19]
	add	x2, sp, #12
	mov	w1, #54208
	mov	w3, #3
	bl	_regmap_bulk_read
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.1:
	str	x19, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_2:
	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_23
; %bb.3:
	mov	x0, x19
	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_4:
	ldr	w8, [sp, #16]
	ubfx	x9, x8, #6, #2
	cmp	w9, #3
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x10, l_switch.table.af9013_get_frontend@PAGE
Lloh11:
	add	x10, x10, l_switch.table.af9013_get_frontend@PAGEOFF
	ldr	x9, [x10, x9, lsl #3]
	ldr	w9, [x9]
	str	w9, [x20, #36]
LBB0_6:
	ldr	w9, [sp, #12]
	ands	w10, w9, #0x3
	b.eq	LBB0_9
; %bb.7:
	cmp	w10, #1
	b.ne	LBB0_11
; %bb.8:
Lloh12:
	adrp	x10, _TRANSMISSION_MODE_8K@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TRANSMISSION_MODE_8K@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x10, _TRANSMISSION_MODE_2K@GOTPAGE
Lloh15:
	ldr	x10, [x10, _TRANSMISSION_MODE_2K@GOTPAGEOFF]
LBB0_10:
	ldr	w10, [x10]
	str	w10, [x20, #32]
LBB0_11:
	ubfx	x10, x9, #2, #2
Lloh16:
	adrp	x11, l_switch.table.af9013_get_frontend.2@PAGE
Lloh17:
	add	x11, x11, l_switch.table.af9013_get_frontend.2@PAGEOFF
	ldr	x10, [x11, x10, lsl #3]
	ldr	w10, [x10]
	str	w10, [x20, #28]
	ubfx	w9, w9, #4, #3
	cmp	w9, #3
	b.hi	LBB0_13
; %bb.12:
Lloh18:
	adrp	x10, l_switch.table.af9013_get_frontend.5@PAGE
Lloh19:
	add	x10, x10, l_switch.table.af9013_get_frontend.5@PAGEOFF
	ldr	x9, [x10, w9, uxtw #3]
	ldr	w9, [x9]
	str	w9, [x20, #24]
LBB0_13:
	ldr	w10, [sp, #20]
	and	x11, x10, #0x7
Lloh20:
	adrp	x9, l_switch.table.af9013_get_frontend.4@PAGE
Lloh21:
	add	x9, x9, l_switch.table.af9013_get_frontend.4@PAGEOFF
	cmp	w11, #4
	b.hi	LBB0_15
; %bb.14:
	ldr	x11, [x9, x11, lsl #3]
	ldr	x11, [x11]
	str	x11, [x20, #16]
LBB0_15:
	ubfx	x10, x10, #3, #3
	cmp	w10, #4
	b.hi	LBB0_17
; %bb.16:
	ldr	x9, [x9, x10, lsl #3]
	ldr	x9, [x9]
	str	x9, [x20, #8]
LBB0_17:
	ubfx	w8, w8, #2, #2
	cmp	w8, #2
	b.eq	LBB0_21
; %bb.18:
	cmp	w8, #1
	b.eq	LBB0_22
; %bb.19:
	cbnz	w8, LBB0_2
; %bb.20:
	mov	w8, #36224
	movk	w8, #91, lsl #16
	str	w8, [x20]
	b	LBB0_2
LBB0_21:
	mov	w8, #4608
	movk	w8, #122, lsl #16
	str	w8, [x20]
	b	LBB0_2
LBB0_22:
	mov	w8, #53184
	movk	w8, #106, lsl #16
	str	w8, [x20]
	b	LBB0_2
LBB0_23:
	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
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.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
l_.str.1:                               ; @.str.1
	.asciz	"failed %d\n"

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

	.p2align	3                               ; @switch.table.af9013_get_frontend.2
l_switch.table.af9013_get_frontend.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.af9013_get_frontend.4
l_switch.table.af9013_get_frontend.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.af9013_get_frontend.5
l_switch.table.af9013_get_frontend.5:
	.quad	_HIERARCHY_NONE
	.quad	_HIERARCHY_1
	.quad	_HIERARCHY_2
	.quad	_HIERARCHY_4

.subsections_via_symbols
