	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18212_set_params
_tda18212_set_params:                   ## @tda18212_set_params
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r12
	movq	8(%r12), %rdi
	movl	8(%r14), %edx
	movl	12(%r14), %ecx
	movl	16(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_2:
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_28
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	leaq	20(%r12), %rax
	movl	$7, %ecx
	jmp	LBB0_19
LBB0_11:
	movl	16(%r14), %eax
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	je	LBB0_16
## %bb.12:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	je	LBB0_15
## %bb.13:
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	jne	LBB0_28
## %bb.14:
	leaq	32(%r12), %rax
	movl	$3, %ecx
	jmp	LBB0_19
LBB0_5:
	movl	16(%r14), %eax
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	je	LBB0_10
## %bb.6:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	je	LBB0_9
## %bb.7:
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	jne	LBB0_28
## %bb.8:
	leaq	44(%r12), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_19
LBB0_28:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_4:
	leaq	48(%r12), %rax
	movl	$9, %ecx
	jmp	LBB0_19
LBB0_18:
	leaq	52(%r12), %rax
	movl	$8, %ecx
	jmp	LBB0_19
LBB0_16:
	leaq	24(%r12), %rax
	movl	$5, %ecx
	jmp	LBB0_19
LBB0_15:
	leaq	28(%r12), %rax
	movl	$4, %ecx
	jmp	LBB0_19
LBB0_10:
	leaq	36(%r12), %rax
	movl	$2, %ecx
	jmp	LBB0_19
LBB0_9:
	leaq	40(%r12), %rax
	movl	$1, %ecx
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	16(%r12), %edi
	leaq	(%rcx,%rcx,2), %r13
	leaq	_tda18212_set_params.bw_params(%rip), %r15
	movl	8(%r15,%r13,4), %edx
	movl	$35, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.20:
	movl	16(%r12), %edi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.21:
	movl	16(%r12), %edi
	movl	(%r15,%r13,4), %edx
	movl	$15, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.22:
	movl	$2, -96(%rbp)
	movl	4(%r15,%r13,4), %eax
	movl	%eax, -92(%rbp)
	movl	$3, -88(%rbp)
	movl	-100(%rbp), %edi                ## 4-byte Reload
	movl	$50, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, -84(%rbp)
	movslq	12(%r14), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movzbl	%ah, %ecx
	movzbl	%al, %edx
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%edx, -72(%rbp)
	movabsq	$4294967489, %rax               ## imm = 0x1000000C1
	movq	%rax, -68(%rbp)
	movl	16(%r12), %edi
	leaq	-96(%rbp), %rdx
	movl	$18, %esi
	movl	$36, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_23
LBB0_29:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_24:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.27:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	imull	$50000, -84(%rbp), %eax         ## imm = 0xC350
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_17
	.long	L0_0_set_4
	.long	L0_0_set_17
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tda18212_set_params.bw_params
_tda18212_set_params.bw_params:
	.long	179                             ## 0xb3
	.long	32                              ## 0x20
	.long	3                               ## 0x3
	.long	179                             ## 0xb3
	.long	49                              ## 0x31
	.long	1                               ## 0x1
	.long	179                             ## 0xb3
	.long	34                              ## 0x22
	.long	1                               ## 0x1
	.long	188                             ## 0xbc
	.long	32                              ## 0x20
	.long	3                               ## 0x3
	.long	188                             ## 0xbc
	.long	114                             ## 0x72
	.long	3                               ## 0x3
	.long	188                             ## 0xbc
	.long	34                              ## 0x22
	.long	1                               ## 0x1
	.long	146                             ## 0x92
	.long	80                              ## 0x50
	.long	3                               ## 0x3
	.long	146                             ## 0x92
	.long	83                              ## 0x53
	.long	3                               ## 0x3
	.long	125                             ## 0x7d
	.long	32                              ## 0x20
	.long	99                              ## 0x63
	.long	125                             ## 0x7d
	.long	32                              ## 0x20
	.long	99                              ## 0x63

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delivery_system=%d frequency=%d bandwidth_hz=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda18212_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function tda18212_set_params
lCPI0_0:
	.long	193                             ; 0xc1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tda18212_set_params:                   ; @tda18212_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x22, [x0, #24]
	ldr	x0, [x22, #8]
	ldp	w2, w8, [x19, #8]
	ldr	w9, [x19, #16]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_2:
	ldr	w8, [x19, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	add	x8, x22, #20
	mov	w23, #7
	b	LBB0_20
LBB0_5:
	ldr	w8, [x19, #16]
	sub	w9, w8, #1953, lsl #12          ; =7999488
	cmp	w9, #512
	b.eq	LBB0_16
; %bb.6:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.7:
	mov	w9, #36224
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.8:
	add	x8, x22, #32
	mov	w23, #3
	b	LBB0_20
LBB0_9:
	ldr	w8, [x19, #16]
	sub	w9, w8, #1953, lsl #12          ; =7999488
	cmp	w9, #512
	b.eq	LBB0_18
; %bb.10:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.eq	LBB0_19
; %bb.11:
	mov	w9, #36224
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:
	mov	x23, #0
	add	x8, x22, #44
	b	LBB0_20
LBB0_13:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_14:
	add	x8, x22, #48
	mov	w23, #9
	b	LBB0_20
LBB0_15:
	add	x8, x22, #52
	mov	w23, #8
	b	LBB0_20
LBB0_16:
	add	x8, x22, #24
	mov	w23, #5
	b	LBB0_20
LBB0_17:
	add	x8, x22, #28
	mov	w23, #4
	b	LBB0_20
LBB0_18:
	add	x8, x22, #36
	mov	w23, #2
	b	LBB0_20
LBB0_19:
	add	x8, x22, #40
	mov	w23, #1
LBB0_20:
	ldr	w21, [x8]
	ldr	w0, [x22, #16]
	mov	w8, #12
Lloh10:
	adrp	x24, _tda18212_set_params.bw_params@PAGE
Lloh11:
	add	x24, x24, _tda18212_set_params.bw_params@PAGEOFF
	madd	x8, x23, x8, x24
	ldr	w2, [x8, #8]
	mov	w1, #35
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_24
; %bb.21:
	ldr	w0, [x22, #16]
	mov	w1, #6
	mov	w2, #0
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_24
; %bb.22:
	ldr	w0, [x22, #16]
	mov	w8, #12
	mul	x8, x23, x8
	ldr	w2, [x24, x8]
	mov	w1, #15
	bl	_regmap_write
	mov	x20, x0
	cbnz	w0, LBB0_24
; %bb.23:
	mov	w8, #2
	mov	w9, #12
	madd	x9, x23, x9, x24
	ldr	w9, [x9, #4]
	stp	w8, w9, [sp, #20]
	mov	w8, #3
	str	w8, [sp, #28]
	mov	x0, x21
	mov	w1, #50
	bl	_DIV_ROUND_CLOSEST
	ldrsw	x8, [x19, #12]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ubfx	w9, w8, #16, #8
	stp	w0, w9, [sp, #32]
	ubfx	w9, w8, #8, #8
	and	w8, w8, #0xff
	stp	w9, w8, [sp, #40]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #48]
	ldr	w0, [x22, #16]
	add	x2, sp, #20
	mov	w1, #18
	mov	w3, #36
	bl	_regmap_bulk_write
	mov	x20, x0
	cbz	w0, LBB0_28
LBB0_24:
	ldr	x0, [x22, #8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_26
LBB0_25:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_26:
	ldr	x8, [sp, #56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.27:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_28:
	ldr	w8, [sp, #32]
	mov	w9, #50000
	mul	w8, w8, w9
	str	w8, [x22]
	ldr	x8, [x19]
	cbnz	x8, LBB0_25
	b	LBB0_26
LBB0_29:
	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 AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
                                        ; -- End function
	.p2align	2                               ; @tda18212_set_params.bw_params
_tda18212_set_params.bw_params:
	.long	179                             ; 0xb3
	.long	32                              ; 0x20
	.long	3                               ; 0x3
	.long	179                             ; 0xb3
	.long	49                              ; 0x31
	.long	1                               ; 0x1
	.long	179                             ; 0xb3
	.long	34                              ; 0x22
	.long	1                               ; 0x1
	.long	188                             ; 0xbc
	.long	32                              ; 0x20
	.long	3                               ; 0x3
	.long	188                             ; 0xbc
	.long	114                             ; 0x72
	.long	3                               ; 0x3
	.long	188                             ; 0xbc
	.long	34                              ; 0x22
	.long	1                               ; 0x1
	.long	146                             ; 0x92
	.long	80                              ; 0x50
	.long	3                               ; 0x3
	.long	146                             ; 0x92
	.long	83                              ; 0x53
	.long	3                               ; 0x3
	.long	125                             ; 0x7d
	.long	32                              ; 0x20
	.long	99                              ; 0x63
	.long	125                             ; 0x7d
	.long	32                              ; 0x20
	.long	99                              ; 0x63

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delivery_system=%d frequency=%d bandwidth_hz=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_tda18212_set_params
.subsections_via_symbols
