	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10071_set_frontend
_tda10071_set_frontend:                 ## @tda10071_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r12
	movq	16(%r12), %r13
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	movl	8(%rdi), %r8d
	movl	12(%rdi), %r9d
	movl	16(%rdi), %r10d
	movl	32(%rdi), %r11d
	movl	36(%rdi), %r14d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r13, %rdi
	xorl	%eax, %eax
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_dev_dbg
	addq	$32, %rsp
	movq	_SYS_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	cmpl	$0, 8(%r12)
	je	LBB0_7
## %bb.1:
	movl	$-137, %eax
	addl	16(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_8
## %bb.2:
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_18
## %bb.4:
	movl	$-131, %eax
	addl	36(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_19
## %bb.5:
	movl	$-134, %eax
	addl	32(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_20
## %bb.6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_21
LBB0_9:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_QPSK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_TDA10071_MODCOD@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_17
## %bb.11:
	movl	$16, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r14
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movq	(%r13), %rdi
	cmpl	-16(%rdi,%r14), %eax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	-12(%rdi,%r14), %eax
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	24(%rbx), %rax
	cmpq	-8(%rdi,%r14), %rax
	jne	LBB0_12
## %bb.16:
	movl	(%rdi,%r14), %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$255, %r15d
	jne	LBB0_25
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.3(%rip), %rsi
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %r15d
LBB0_24:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	cmpl	$5000001, 12(%rbx)              ## imm = 0x4C4B41
	movl	$14, %eax
	movl	$4, %ebx
	cmovll	%eax, %ebx
	movl	4(%r12), %edi
	movl	$129, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_24
## %bb.26:
	movl	4(%r12), %edi
	movl	$227, %esi
	movl	%ebx, %edx
	callq	_regmap_write
	movl	%eax, %r15d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delivery_system=%d modulation=%d frequency=%u symbol_rate=%d inversion=%d pilot=%d rolloff=%d\n"

	.comm	_SYS_UNDEFINED,4,2              ## @SYS_UNDEFINED
	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"invalid inversion\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QPSK,4,2                       ## @QPSK
L_.str.2:                               ## @.str.2
	.asciz	"invalid rolloff\n"

L_.str.3:                               ## @.str.3
	.asciz	"invalid pilot\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid delivery_system\n"

	.comm	_TDA10071_MODCOD,8,3            ## @TDA10071_MODCOD
L_.str.5:                               ## @.str.5
	.asciz	"mode found=%02x\n"

L_.str.6:                               ## @.str.6
	.asciz	"invalid parameter combination\n"

	.comm	_CMD_CHANGE_CHANNEL,4,2         ## @CMD_CHANGE_CHANNEL
	.comm	_tda10071_ops,4,2               ## @tda10071_ops
L_.str.7:                               ## @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10071_set_frontend
_tda10071_set_frontend:                 ; @tda10071_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x22, [x0, #40]
	ldr	x19, [x22, #16]
	mov	x21, x0
	ldr	w8, [x21, #4]!
	ldr	w9, [x0]
	ldp	w10, w11, [x0, #8]
	ldr	w12, [x0, #16]
	ldp	w13, w14, [x0, #32]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x8, x10, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	str	x9, [sp]
	mov	x0, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _SYS_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_UNDEFINED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x20, #16]
	sub	w8, w8, #137
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.2:
	ldr	w8, [x20]
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.4:
	ldr	w8, [x20, #36]
	sub	w8, w8, #131
	cmp	w8, #3
	b.hs	LBB0_19
; %bb.5:
	ldr	w8, [x20, #32]
	sub	w8, w8, #134
	cmp	w8, #3
	b.lo	LBB0_10
; %bb.6:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_7:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_21
LBB0_8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_9:
Lloh11:
	adrp	x21, _QPSK@GOTPAGE
Lloh12:
	ldr	x21, [x21, _QPSK@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x21]
Lloh13:
	adrp	x23, _TDA10071_MODCOD@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TDA10071_MODCOD@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #24
	cmp	x25, w0, sxtw
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	x0, [x23]
	ldr	w9, [x0, x24]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x0, x24
	ldr	w9, [x8, #4]
	cmp	w21, w9
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x20, #24]
	ldr	x8, [x8, #8]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.16:
	add	x8, x0, x24
	ldr	w21, [x8, #16]
	str	x21, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	cmp	w21, #255
	b.ne	LBB0_23
LBB0_17:
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_dbg
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_22:
	str	x20, [sp]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_23:
	ldr	w8, [x20, #12]
	mov	w9, #19265
	movk	w9, #76, lsl #16
	mov	w10, #4
	mov	w11, #14
	cmp	w8, w9
	csel	w21, w11, w10, lt
	ldr	w0, [x22, #4]
	mov	w1, #129
	mov	x2, x21
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_22
; %bb.24:
	ldr	w0, [x22, #4]
	mov	w1, #227
	mov	x2, x21
	bl	_regmap_write
	mov	x20, x0
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delivery_system=%d modulation=%d frequency=%u symbol_rate=%d inversion=%d pilot=%d rolloff=%d\n"

	.comm	_SYS_UNDEFINED,4,2              ; @SYS_UNDEFINED
	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"invalid inversion\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QPSK,4,2                       ; @QPSK
l_.str.2:                               ; @.str.2
	.asciz	"invalid rolloff\n"

l_.str.3:                               ; @.str.3
	.asciz	"invalid pilot\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid delivery_system\n"

	.comm	_TDA10071_MODCOD,8,3            ; @TDA10071_MODCOD
l_.str.5:                               ; @.str.5
	.asciz	"mode found=%02x\n"

l_.str.6:                               ; @.str.6
	.asciz	"invalid parameter combination\n"

	.comm	_CMD_CHANGE_CHANNEL,4,2         ; @CMD_CHANGE_CHANNEL
	.comm	_tda10071_ops,4,2               ; @tda10071_ops
l_.str.7:                               ; @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda10071_set_frontend
.subsections_via_symbols
