	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ix2505v_set_params
_ix2505v_set_params:                    ## @ix2505v_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %r13d
	cmpl	8(%rdi), %r13d
	jl	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	cmpl	12(%rdi), %r13d
	jle	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_27
LBB0_3:
	movq	16(%r15), %rcx
	movl	4(%rsi), %eax
	leal	(%rax,%rax,8), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %r12
	shrq	$63, %r12
	sarq	$43, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movl	(%rax), %esi
	movslq	%r13d, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$38, %rdx
	addl	%edi, %edx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdi
	shrq	$63, %rdi
	sarq	$42, %rcx
	addl	%edi, %ecx
	imull	$-100, %ecx, %edi
	addl	%edx, %edi
	shll	$5, %edi
	movslq	%edi, %rdi
	imulq	$1374389535, %rdi, %r8          ## imm = 0x51EB851F
	movq	%r8, %rdi
	shrq	$63, %rdi
	sarq	$37, %r8
	addl	%edi, %r8d
	movl	%esi, %edi
	shll	$5, %edi
	andl	$96, %edi
	xorl	%ebx, %ebx
	cmpl	$4, %esi
	cmovgel	%ebx, %edi
	testl	%esi, %esi
	cmovel	%esi, %edi
	movl	4(%rax), %eax
	movl	%ecx, %ebx
	sarl	$3, %ebx
	orl	%edi, %ebx
	movl	%ecx, %esi
	shll	$5, %esi
	movl	%r8d, %r14d
	andl	$31, %r14d
	orl	%esi, %r14d
	movl	%eax, %esi
	shll	$5, %esi
	orl	$129, %esi
	testl	%eax, %eax
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movl	%ebx, -64(%rbp)
	movl	%r14d, -60(%rbp)
	movzbl	%sil, %eax
	movl	$225, %esi
	cmovnel	%eax, %esi
	movl	%esi, -88(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_deb_info
	movl	$194, %ebx
	cmpl	$1065001, %r13d                 ## imm = 0x104029
	jl	LBB0_10
## %bb.4:
	movl	$226, %ebx
	cmpl	$1170001, %r13d                 ## imm = 0x11DA51
	jb	LBB0_10
## %bb.5:
	movl	$32, %ebx
	cmpl	$1300001, %r13d                 ## imm = 0x13D621
	jb	LBB0_10
## %bb.6:
	movl	$64, %ebx
	cmpl	$1445001, %r13d                 ## imm = 0x160C89
	jb	LBB0_10
## %bb.7:
	movl	$96, %ebx
	cmpl	$1607001, %r13d                 ## imm = 0x188559
	jb	LBB0_10
## %bb.8:
	movl	$128, %ebx
	cmpl	$1778001, %r13d                 ## imm = 0x1B2151
	jb	LBB0_10
## %bb.9:
	xorl	%ebx, %ebx
	cmpl	$1942001, %r13d                 ## imm = 0x1DA1F1
	setae	%bl
	shll	$5, %ebx
	addl	$160, %ebx
LBB0_10:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	%r12d, %edx
	movl	%ebx, -52(%rbp)
	movl	$12, %r12d
	movl	-92(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$320032000, %ecx                ## imm = 0x13134D00
	jl	LBB0_20
## %bb.11:
	movl	$2, %r12d
	cmpl	$384032000, %ecx                ## imm = 0x16E3DD00
	jb	LBB0_20
## %bb.12:
	movl	$10, %r12d
	cmpl	$448032000, %ecx                ## imm = 0x1AB46D00
	jb	LBB0_20
## %bb.13:
	movl	$6, %r12d
	cmpl	$512032000, %ecx                ## imm = 0x1E84FD00
	jb	LBB0_20
## %bb.14:
	movl	$14, %r12d
	cmpl	$576032000, %ecx                ## imm = 0x22558D00
	jb	LBB0_20
## %bb.15:
	movl	$1, %r12d
	cmpl	$640032000, %ecx                ## imm = 0x26261D00
	jb	LBB0_20
## %bb.16:
	movl	$9, %r12d
	cmpl	$704032000, %ecx                ## imm = 0x29F6AD00
	jb	LBB0_20
## %bb.17:
	movl	$5, %r12d
	cmpl	$768032000, %ecx                ## imm = 0x2DC73D00
	jb	LBB0_20
## %bb.18:
	movl	$13, %r12d
	cmpl	$832032000, %ecx                ## imm = 0x3197CD00
	jb	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	cmpl	$896032000, %ecx                ## imm = 0x35685D00
	setae	%al
	leal	3(,%rax,8), %r12d
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_deb_info
	leaq	L_.str.2(%rip), %rdi
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_deb_info
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_22:
	leaq	-64(%rbp), %rsi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_ix2505v_write
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	orb	$4, -56(%rbp)
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_ix2505v_write
	movl	%eax, %ebx
	movl	$10, %edi
	callq	_msleep
	leal	(%r12,%r12), %esi
	andl	$-8, %esi
	orl	-56(%rbp), %esi
	movl	%esi, -56(%rbp)
	shll	$2, %r12d
	andl	$12, %r12d
	orl	-52(%rbp), %r12d
	movl	%r12d, -52(%rbp)
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_deb_info
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	callq	_ix2505v_write
	movl	%eax, %r12d
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_24:
	orl	-72(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	8(%rax), %edi
	testl	%edi, %edi
	je	LBB0_26
## %bb.25:
	callq	_msleep
LBB0_26:
	orl	%r12d, %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frq=%d x=%d N=%d A=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Osc=%x b_w=%x lpf=%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Data 0=[%x%x%x%x]\n"

L_.str.3:                               ## @.str.3
	.asciz	"Data 2=[%x%x]\n"

	.no_dead_strip	_ix2505v_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 ix2505v_set_params
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
lCPI0_1:
	.long	24                              ; 0x18
	.long	12                              ; 0xc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ix2505v_set_params:                    ; @ix2505v_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	w19, [x1]
	ldr	w8, [x0, #8]
	cmp	w19, w8
	b.lt	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #12]
	cmp	w19, w8
	b.le	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_30
LBB0_3:
	ldr	x20, [x21, #16]
	ldr	w8, [x1, #4]
	mov	w9, #27
	mul	w27, w8, w9
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w27, w8
	lsr	x9, x8, #63
	asr	x8, x8, #43
	add	w22, w8, w9
	ldr	x8, [x20, #8]
	ldp	w9, w8, [x8]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w19, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w2, w10, w11
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	smull	x10, w19, w10
	lsr	x11, x10, #63
	asr	x10, x10, #42
	add	w10, w10, w11
	mov	w11, #-100
	madd	w11, w10, w11, w2
	lsl	w11, w11, #5
	mov	w12, #34079
	movk	w12, #20971, lsl #16
	smull	x11, w11, w12
	lsr	x12, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w12
	ubfiz	w12, w9, #5, #2
	cmp	w9, #4
	csel	w12, w12, wzr, lt
	cmp	w9, #0
	csel	w9, wzr, w12, eq
	orr	w23, w9, w10, asr #3
	mov	x24, x11
	bfi	w24, w10, #5, #27
	stp	w23, w24, [sp, #24]
	mov	w9, #129
	bfi	w9, w8, #5, #2
	mov	w12, #225
	cmp	w8, #0
	csel	w28, w12, w9, eq
	add	x25, sp, #24
	str	w28, [sp, #32]
	stp	x10, x11, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_deb_info
	mov	w8, #16425
	movk	w8, #16, lsl #16
	cmp	w19, w8
	b.ge	LBB0_5
; %bb.4:
	mov	w26, #194
	b	LBB0_14
LBB0_5:
	mov	w8, #55889
	movk	w8, #17, lsl #16
	cmp	w19, w8
	b.hs	LBB0_7
; %bb.6:
	mov	w26, #226
	b	LBB0_14
LBB0_7:
	mov	w8, #54817
	movk	w8, #19, lsl #16
	cmp	w19, w8
	b.hs	LBB0_9
; %bb.8:
	mov	w26, #32
	b	LBB0_14
LBB0_9:
	mov	w8, #3209
	movk	w8, #22, lsl #16
	cmp	w19, w8
	b.hs	LBB0_11
; %bb.10:
	mov	w26, #64
	b	LBB0_14
LBB0_11:
	mov	w8, #34137
	movk	w8, #24, lsl #16
	cmp	w19, w8
	b.hs	LBB0_13
; %bb.12:
	mov	w26, #96
	b	LBB0_14
LBB0_13:
	mov	w8, #128
	mov	w9, #8529
	movk	w9, #27, lsl #16
	mov	w10, #41457
	movk	w10, #29, lsl #16
	mov	w11, #192
	mov	w12, #160
	cmp	w19, w10
	csel	w10, w12, w11, lo
	cmp	w19, w9
	csel	w26, w8, w10, lo
LBB0_14:
	add	x25, x25, #8
	str	w26, [sp, #36]
	mov	w8, #19712
	movk	w8, #4883, lsl #16
	cmp	w27, w8
	b.ge	LBB0_16
; %bb.15:
	mov	w27, #12
	b	LBB0_23
LBB0_16:
	mov	w8, #56576
	movk	w8, #5859, lsl #16
	cmp	w27, w8
	b.hs	LBB0_18
; %bb.17:
	mov	w27, #2
	b	LBB0_23
LBB0_18:
	mov	w8, #27904
	movk	w8, #6836, lsl #16
	cmp	w27, w8
	b.hs	LBB0_20
; %bb.19:
	mov	w27, #10
	b	LBB0_23
LBB0_20:
	mov	w8, #64768
	movk	w8, #7812, lsl #16
	cmp	w27, w8
	b.hs	LBB0_22
; %bb.21:
	mov	w27, #6
	b	LBB0_23
LBB0_22:
	mov	w8, #14
	mov	w9, #36096
	movk	w9, #8789, lsl #16
	mov	w10, #1
	mov	w11, #7424
	movk	w11, #9766, lsl #16
	mov	w12, #9
	mov	w13, #44288
	movk	w13, #10742, lsl #16
	mov	w14, #5
	mov	w15, #15616
	movk	w15, #11719, lsl #16
	mov	w16, #13
	mov	w17, #52480
	movk	w17, #12695, lsl #16
	mov	w0, #23808
	movk	w0, #13672, lsl #16
	mov	w1, #11
	mov	w2, #3
	cmp	w27, w0
	csel	w0, w2, w1, lo
	cmp	w27, w17
	csel	w16, w16, w0, lo
	cmp	w27, w15
	csel	w14, w14, w16, lo
	cmp	w27, w13
	csel	w12, w12, w14, lo
	cmp	w27, w11
	csel	w10, w10, w12, lo
	cmp	w27, w9
	csel	w27, w8, w10, lo
LBB0_23:
	str	x27, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	mov	x2, x22
	bl	_deb_info
	stp	x28, x26, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	bl	_deb_info
	ldr	x8, [x21]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x21
	mov	w1, #1
	blr	x8
LBB0_25:
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #16
	bl	_ix2505v_write
	mov	x22, x0
	ldr	w8, [sp, #32]
	orr	w8, w8, #0x4
	str	w8, [sp, #32]
	mov	x0, x20
	mov	x1, x25
	mov	w2, #1
	bl	_ix2505v_write
	orr	w23, w0, w22
	mov	w0, #10
	bl	_msleep
	dup.2s	v0, w27
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh14:
	adrp	x8, lCPI0_1@PAGE
Lloh15:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	and.8b	v0, v0, v1
	ldr	d1, [sp, #32]
	orr.8b	v0, v1, v0
	str	d0, [sp, #32]
	mov.s	w2, v0[1]
	fmov	w1, s0
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	mov	x0, x20
	mov	x1, x25
	mov	w2, #2
	bl	_ix2505v_write
	mov	x22, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x21
	mov	w1, #0
	blr	x8
LBB0_27:
	orr	w21, w23, w22
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	cbz	w0, LBB0_29
; %bb.28:
	bl	_msleep
LBB0_29:
	str	w19, [x20]
LBB0_30:
	ldr	x8, [sp, #40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frq=%d x=%d N=%d A=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Osc=%x b_w=%x lpf=%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Data 0=[%x%x%x%x]\n"

l_.str.3:                               ; @.str.3
	.asciz	"Data 2=[%x%x]\n"

	.no_dead_strip	_ix2505v_set_params
.subsections_via_symbols
