	.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	$40, %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	24(%rdi), %r15d
	movl	8(%rdi), %eax
	movq	_kHz@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cltd
	idivl	%ecx
	cmpl	%eax, %r15d
	jl	LBB0_2
## %bb.1:
	movq	%rdi, %r13
	movl	12(%rdi), %eax
	cltd
	idivl	%ecx
	cmpl	%eax, %r15d
	jle	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_29
LBB0_3:
	movq	16(%r13), %rcx
	movl	28(%r13), %eax
	leal	(%rax,%rax,8), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	cltq
	imulq	$274877907, %rax, %r12          ## imm = 0x10624DD3
	movq	%r12, %r14
	shrq	$63, %r14
	sarq	$43, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rax
	movl	(%rax), %esi
	movslq	%r15d, %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, %esi
	sarl	$3, %esi
	orl	%edi, %esi
	movl	%ecx, %edi
	shll	$5, %edi
	movl	%r8d, %ebx
	andl	$31, %ebx
	orl	%edi, %ebx
	movl	%eax, %edi
	shll	$5, %edi
	orl	$129, %edi
	testl	%eax, %eax
	movl	%esi, -64(%rbp)
	movl	%ebx, -60(%rbp)
	movzbl	%dil, %eax
	movl	$225, %esi
	cmovnel	%eax, %esi
	movl	%esi, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %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, %esi
	cmpl	$1065001, %r15d                 ## imm = 0x104029
	jl	LBB0_10
## %bb.4:
	movl	$226, %esi
	cmpl	$1170001, %r15d                 ## imm = 0x11DA51
	jb	LBB0_10
## %bb.5:
	movl	$32, %esi
	cmpl	$1300001, %r15d                 ## imm = 0x13D621
	jb	LBB0_10
## %bb.6:
	movl	$64, %esi
	cmpl	$1445001, %r15d                 ## imm = 0x160C89
	jb	LBB0_10
## %bb.7:
	movl	$96, %esi
	cmpl	$1607001, %r15d                 ## imm = 0x188559
	jb	LBB0_10
## %bb.8:
	movl	$128, %esi
	cmpl	$1778001, %r15d                 ## imm = 0x1B2151
	jb	LBB0_10
## %bb.9:
	xorl	%esi, %esi
	cmpl	$1942001, %r15d                 ## imm = 0x1DA1F1
	setae	%sil
	shll	$5, %esi
	addl	$160, %esi
LBB0_10:
	addl	%r14d, %r12d
	movl	%esi, -52(%rbp)
	movl	$12, %r14d
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$320032000, %ecx                ## imm = 0x13134D00
	jl	LBB0_20
## %bb.11:
	movl	$2, %r14d
	cmpl	$384032000, %ecx                ## imm = 0x16E3DD00
	jb	LBB0_20
## %bb.12:
	movl	$10, %r14d
	cmpl	$448032000, %ecx                ## imm = 0x1AB46D00
	jb	LBB0_20
## %bb.13:
	movl	$6, %r14d
	cmpl	$512032000, %ecx                ## imm = 0x1E84FD00
	jb	LBB0_20
## %bb.14:
	movl	$14, %r14d
	cmpl	$576032000, %ecx                ## imm = 0x22558D00
	jb	LBB0_20
## %bb.15:
	movl	$1, %r14d
	cmpl	$640032000, %ecx                ## imm = 0x26261D00
	jb	LBB0_20
## %bb.16:
	movl	$9, %r14d
	cmpl	$704032000, %ecx                ## imm = 0x29F6AD00
	jb	LBB0_20
## %bb.17:
	movl	$5, %r14d
	cmpl	$768032000, %ecx                ## imm = 0x2DC73D00
	jb	LBB0_20
## %bb.18:
	movl	$13, %r14d
	cmpl	$832032000, %ecx                ## imm = 0x3197CD00
	jb	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	cmpl	$896032000, %ecx                ## imm = 0x35685D00
	setae	%al
	leal	3(,%rax,8), %r14d
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_deb_info
	leaq	L_.str.2(%rip), %rdi
	leaq	-64(%rbp), %rsi
	xorl	%eax, %eax
	callq	_deb_info
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_22:
	leaq	-56(%rbp), %rbx
	leaq	-64(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %edx
	callq	_ix2505v_write
	orb	$4, -56(%rbp)
	movl	%eax, %r12d
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_24:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_ix2505v_write
	movl	%eax, %ebx
	movl	$10, %edi
	callq	_msleep
	leal	(%r14,%r14), %esi
	andl	$-8, %esi
	orl	-56(%rbp), %esi
	movl	%esi, -56(%rbp)
	shll	$2, %r14d
	andl	$12, %r14d
	orl	-52(%rbp), %r14d
	movl	%r14d, -52(%rbp)
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_deb_info
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_26:
	orl	%r12d, %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	movl	$2, %edx
	callq	_ix2505v_write
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movl	8(%rax), %edi
	testl	%edi, %edi
	je	LBB0_28
## %bb.27:
	callq	_msleep
LBB0_28:
	orl	%r14d, %ebx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kHz,4,2                        ## @kHz
	.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=[%4phN]\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, #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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w23, [x0, #24]
	ldr	w9, [x0, #8]
Lloh3:
	adrp	x8, _kHz@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kHz@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w9, w8
	cmp	w23, w9
	b.lt	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w9, [x0, #12]
	sdiv	w8, w9, w8
	cmp	w23, w8
	b.le	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_44
LBB0_3:
	ldr	x19, [x20, #16]
	ldr	w8, [x20, #28]
	mov	w9, #27
	mul	w21, w8, w9
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w21, w8
	lsr	x22, x8, #63
	asr	x24, x8, #43
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x10, w23, w10
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x11, w23, w11
	lsr	x12, x11, #63
	asr	x11, x11, #42
	add	w11, w11, w12
	mov	w12, #-100
	madd	w12, w11, w12, w10
	lsl	w12, w12, #5
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #63
	asr	x12, x12, #37
	add	w12, w12, w13
	ubfiz	w13, w9, #5, #2
	cmp	w9, #4
	csel	w13, w13, wzr, lt
	cmp	w9, #0
	csel	w9, wzr, w13, eq
	orr	w9, w9, w11, asr #3
	mov	x13, x12
	bfi	w13, w11, #5, #27
	stp	w9, w13, [sp, #40]
	mov	w9, #129
	bfi	w9, w8, #5, #2
	mov	w13, #225
	cmp	w8, #0
	csel	w8, w13, w9, eq
	str	w8, [sp, #48]
	stp	x11, x12, [sp, #16]
	stp	x23, x10, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	w8, #16425
	movk	w8, #16, lsl #16
	cmp	w23, w8
	b.ge	LBB0_5
; %bb.4:
	mov	w8, #194
	b	LBB0_16
LBB0_5:
	mov	w8, #55889
	movk	w8, #17, lsl #16
	cmp	w23, w8
	b.hs	LBB0_7
; %bb.6:
	mov	w8, #226
	b	LBB0_16
LBB0_7:
	mov	w8, #54817
	movk	w8, #19, lsl #16
	cmp	w23, w8
	b.hs	LBB0_9
; %bb.8:
	mov	w8, #32
	b	LBB0_16
LBB0_9:
	mov	w8, #3209
	movk	w8, #22, lsl #16
	cmp	w23, w8
	b.hs	LBB0_11
; %bb.10:
	mov	w8, #64
	b	LBB0_16
LBB0_11:
	mov	w8, #34137
	movk	w8, #24, lsl #16
	cmp	w23, w8
	b.hs	LBB0_13
; %bb.12:
	mov	w8, #96
	b	LBB0_16
LBB0_13:
	mov	w8, #8529
	movk	w8, #27, lsl #16
	cmp	w23, w8
	b.hs	LBB0_15
; %bb.14:
	mov	w8, #128
	b	LBB0_16
LBB0_15:
	mov	w8, #41457
	movk	w8, #29, lsl #16
	mov	w9, #192
	mov	w10, #160
	cmp	w23, w8
	csel	w8, w10, w9, lo
LBB0_16:
	add	x10, sp, #40
	add	w9, w24, w22
	str	w8, [sp, #52]
	mov	w11, #19712
	movk	w11, #4883, lsl #16
	cmp	w21, w11
	b.ge	LBB0_18
; %bb.17:
	mov	w24, #12
	b	LBB0_35
LBB0_18:
	mov	w11, #56576
	movk	w11, #5859, lsl #16
	cmp	w21, w11
	b.hs	LBB0_20
; %bb.19:
	mov	w24, #2
	b	LBB0_35
LBB0_20:
	mov	w11, #27904
	movk	w11, #6836, lsl #16
	cmp	w21, w11
	b.hs	LBB0_22
; %bb.21:
	mov	w24, #10
	b	LBB0_35
LBB0_22:
	mov	w11, #64768
	movk	w11, #7812, lsl #16
	cmp	w21, w11
	b.hs	LBB0_24
; %bb.23:
	mov	w24, #6
	b	LBB0_35
LBB0_24:
	mov	w11, #36096
	movk	w11, #8789, lsl #16
	cmp	w21, w11
	b.hs	LBB0_26
; %bb.25:
	mov	w24, #14
	b	LBB0_35
LBB0_26:
	mov	w11, #7424
	movk	w11, #9766, lsl #16
	cmp	w21, w11
	b.hs	LBB0_28
; %bb.27:
	mov	w24, #1
	b	LBB0_35
LBB0_28:
	mov	w11, #44288
	movk	w11, #10742, lsl #16
	cmp	w21, w11
	b.hs	LBB0_30
; %bb.29:
	mov	w24, #9
	b	LBB0_35
LBB0_30:
	mov	w11, #15616
	movk	w11, #11719, lsl #16
	cmp	w21, w11
	b.hs	LBB0_32
; %bb.31:
	mov	w24, #5
	b	LBB0_35
LBB0_32:
	mov	w11, #52480
	movk	w11, #12695, lsl #16
	cmp	w21, w11
	b.hs	LBB0_34
; %bb.33:
	mov	w24, #13
	b	LBB0_35
LBB0_34:
	mov	w11, #23808
	movk	w11, #13672, lsl #16
	mov	w12, #11
	mov	w13, #3
	cmp	w21, w11
	csel	w24, w13, w12, lo
LBB0_35:
	add	x21, x10, #8
	stp	x9, x24, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	add	x8, sp, #40
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
	ldr	x8, [x20]
	cbz	x8, LBB0_37
; %bb.36:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_37:
	add	x1, sp, #40
	mov	x0, x19
	mov	w2, #16
	bl	_ix2505v_write
	mov	x22, x0
	ldr	w8, [sp, #48]
	orr	w8, w8, #0x4
	str	w8, [sp, #48]
	ldr	x8, [x20]
	cbz	x8, LBB0_39
; %bb.38:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_39:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_ix2505v_write
	orr	w22, w0, w22
	mov	w0, #10
	bl	_msleep
	dup.2s	v0, w24
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
Lloh17:
	adrp	x8, lCPI0_1@PAGE
Lloh18:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	and.8b	v0, v0, v1
	ldr	d1, [sp, #48]
	orr.8b	v0, v1, v0
	str	d0, [sp, #48]
	mov.s	w8, v0[1]
	fmov	w9, s0
	stp	x9, x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_deb_info
	ldr	x8, [x20]
	cbz	x8, LBB0_41
; %bb.40:
	mov	x0, x20
	mov	w1, #1
	blr	x8
LBB0_41:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2
	bl	_ix2505v_write
	orr	w20, w22, w0
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #8]
	cbz	w0, LBB0_43
; %bb.42:
	bl	_msleep
LBB0_43:
	str	w23, [x19]
LBB0_44:
	ldr	x8, [sp, #56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_46
; %bb.45:
	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_46:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_kHz,4,2                        ; @kHz
	.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=[%4phN]\n"

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

	.no_dead_strip	_ix2505v_set_params
.subsections_via_symbols
