	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ves1820_set_parameters
_ves1820_set_parameters:                ## @ves1820_set_parameters
	.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
	movl	24(%rdi), %ebx
	movq	_QAM_16@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	cmpl	$5, %ebx
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	*%rax
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_5:
	movl	32(%r14), %esi
	movq	%r15, %rdi
	callq	_ves1820_set_symbolrate
	movl	(%r15), %edx
	movq	%r15, %rdi
	movl	$52, %esi
	callq	_ves1820_writereg
	movl	%ebx, %ebx
	leaq	_ves1820_set_parameters.reg0x01(%rip), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ves1820_writereg
	leaq	_ves1820_set_parameters.reg0x05(%rip), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_ves1820_writereg
	leaq	_ves1820_set_parameters.reg0x08(%rip), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_ves1820_writereg
	leaq	_ves1820_set_parameters.reg0x09(%rip), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_ves1820_writereg
	leaq	_ves1820_set_parameters.reg0x00(%rip), %rax
	movl	(%rax,%rbx,4), %esi
	movl	28(%r14), %edx
	movq	%r15, %rdi
	callq	_ves1820_setup_reg0
	movq	_ves1820_inittab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	setne	%dl
	shll	$3, %edx
	orl	8(%rax), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_ves1820_writereg
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ves1820_set_parameters.reg0x00
_ves1820_set_parameters.reg0x00:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	12                              ## 0xc
	.long	16                              ## 0x10

	.p2align	4                               ## @ves1820_set_parameters.reg0x01
_ves1820_set_parameters.reg0x01:
	.long	140                             ## 0x8c
	.long	140                             ## 0x8c
	.long	106                             ## 0x6a
	.long	100                             ## 0x64
	.long	92                              ## 0x5c

	.p2align	4                               ## @ves1820_set_parameters.reg0x05
_ves1820_set_parameters.reg0x05:
	.long	135                             ## 0x87
	.long	100                             ## 0x64
	.long	70                              ## 0x46
	.long	54                              ## 0x36
	.long	38                              ## 0x26

	.p2align	4                               ## @ves1820_set_parameters.reg0x08
_ves1820_set_parameters.reg0x08:
	.long	162                             ## 0xa2
	.long	116                             ## 0x74
	.long	67                              ## 0x43
	.long	52                              ## 0x34
	.long	35                              ## 0x23

	.p2align	4                               ## @ves1820_set_parameters.reg0x09
_ves1820_set_parameters.reg0x09:
	.long	145                             ## 0x91
	.long	150                             ## 0x96
	.long	106                             ## 0x6a
	.long	126                             ## 0x7e
	.long	107                             ## 0x6b

	.comm	_QAM_16,4,2                     ## @QAM_16
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ves1820_inittab,8,3            ## @ves1820_inittab
	.no_dead_strip	_ves1820_set_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ves1820_set_parameters
_ves1820_set_parameters:                ; @ves1820_set_parameters
	.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
	ldr	w8, [x0, #24]
Lloh0:
	adrp	x9, _QAM_16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QAM_16@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w21, w8, w9
	cmp	w21, #5
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	ldp	x8, x19, [x0, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	blr	x8
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	blr	x8
LBB0_5:
	ldr	w1, [x20, #32]
	mov	x0, x19
	bl	_ves1820_set_symbolrate
	ldr	w2, [x19]
	mov	x0, x19
	mov	w1, #52
	bl	_ves1820_writereg
	lsl	x21, x21, #2
Lloh6:
	adrp	x8, _ves1820_set_parameters.reg0x01@PAGE
Lloh7:
	add	x8, x8, _ves1820_set_parameters.reg0x01@PAGEOFF
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w1, #1
	bl	_ves1820_writereg
Lloh8:
	adrp	x8, _ves1820_set_parameters.reg0x05@PAGE
Lloh9:
	add	x8, x8, _ves1820_set_parameters.reg0x05@PAGEOFF
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w1, #5
	bl	_ves1820_writereg
Lloh10:
	adrp	x8, _ves1820_set_parameters.reg0x08@PAGE
Lloh11:
	add	x8, x8, _ves1820_set_parameters.reg0x08@PAGEOFF
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w1, #8
	bl	_ves1820_writereg
Lloh12:
	adrp	x8, _ves1820_set_parameters.reg0x09@PAGE
Lloh13:
	add	x8, x8, _ves1820_set_parameters.reg0x09@PAGEOFF
	ldr	w2, [x8, x21]
	mov	x0, x19
	mov	w1, #9
	bl	_ves1820_writereg
Lloh14:
	adrp	x8, _ves1820_set_parameters.reg0x00@PAGE
Lloh15:
	add	x8, x8, _ves1820_set_parameters.reg0x00@PAGEOFF
	ldr	w1, [x8, x21]
	ldr	w2, [x20, #28]
	mov	x0, x19
	bl	_ves1820_setup_reg0
Lloh16:
	adrp	x8, _ves1820_inittab@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ves1820_inittab@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	cmp	x9, #0
	cset	w9, ne
	orr	w2, w8, w9, lsl #3
	mov	x0, x19
	mov	w1, #2
	bl	_ves1820_writereg
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ves1820_set_parameters.reg0x00
_ves1820_set_parameters.reg0x00:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	12                              ; 0xc
	.long	16                              ; 0x10

	.p2align	2                               ; @ves1820_set_parameters.reg0x01
_ves1820_set_parameters.reg0x01:
	.long	140                             ; 0x8c
	.long	140                             ; 0x8c
	.long	106                             ; 0x6a
	.long	100                             ; 0x64
	.long	92                              ; 0x5c

	.p2align	2                               ; @ves1820_set_parameters.reg0x05
_ves1820_set_parameters.reg0x05:
	.long	135                             ; 0x87
	.long	100                             ; 0x64
	.long	70                              ; 0x46
	.long	54                              ; 0x36
	.long	38                              ; 0x26

	.p2align	2                               ; @ves1820_set_parameters.reg0x08
_ves1820_set_parameters.reg0x08:
	.long	162                             ; 0xa2
	.long	116                             ; 0x74
	.long	67                              ; 0x43
	.long	52                              ; 0x34
	.long	35                              ; 0x23

	.p2align	2                               ; @ves1820_set_parameters.reg0x09
_ves1820_set_parameters.reg0x09:
	.long	145                             ; 0x91
	.long	150                             ; 0x96
	.long	106                             ; 0x6a
	.long	126                             ; 0x7e
	.long	107                             ; 0x6b

	.comm	_QAM_16,4,2                     ; @QAM_16
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ves1820_inittab,8,3            ; @ves1820_inittab
	.no_dead_strip	_ves1820_set_parameters
.subsections_via_symbols
