	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it913x_set_params
_it913x_set_params:                     ## @it913x_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	40(%r15), %rdi
	movl	32(%r15), %edx
	movl	(%r13), %ecx
	movl	4(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 28(%r15)
	je	LBB0_1
## %bb.3:
	movl	(%r13), %eax
	movl	$48, %r12d
	cmpl	$74000001, %eax                 ## imm = 0x4692681
	jl	LBB0_17
## %bb.4:
	cmpl	$111000001, %eax                ## imm = 0x69DB9C1
	jae	LBB0_6
## %bb.5:
	movl	$8192, %r14d                    ## imm = 0x2000
	movl	$32, %r12d
	jmp	LBB0_17
LBB0_6:
	cmpl	$148000001, %eax                ## imm = 0x8D24D01
	jae	LBB0_8
## %bb.7:
	movl	$16384, %r14d                   ## imm = 0x4000
	movl	$24, %r12d
	jmp	LBB0_17
LBB0_8:
	cmpl	$222000001, %eax                ## imm = 0xD3B7381
	jae	LBB0_10
## %bb.9:
	movl	$24576, %r14d                   ## imm = 0x6000
	movl	$16, %r12d
	jmp	LBB0_17
LBB0_10:
	cmpl	$296000001, %eax                ## imm = 0x11A49A01
	jae	LBB0_12
## %bb.11:
	movl	$32768, %r14d                   ## imm = 0x8000
	movl	$12, %r12d
	jmp	LBB0_17
LBB0_12:
	cmpl	$445000001, %eax                ## imm = 0x1A862941
	jae	LBB0_14
## %bb.13:
	movl	$40960, %r14d                   ## imm = 0xA000
	movl	$8, %r12d
	jmp	LBB0_17
LBB0_14:
	cmpl	(%r15), %eax
	jle	LBB0_15
## %bb.16:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpl	$950000001, %eax                ## imm = 0x389FD981
	setb	%dl
	leal	2(%rdx,%rdx), %r12d
	movl	$57344, %r14d                   ## imm = 0xE000
	cmovael	%ecx, %r14d
	jmp	LBB0_17
LBB0_15:
	movl	$49152, %r14d                   ## imm = 0xC000
	movl	$6, %r12d
LBB0_17:
	movl	24(%r15), %edi
	leaq	-48(%rbp), %rdx
	movl	$8449409, %esi                  ## imm = 0x80ED81
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.18:
	movl	-48(%rbp), %eax
	movl	%eax, %ebx
	imull	%r12d, %ebx
	cmpl	$31, %eax
	ja	LBB0_22
## %bb.19:
	cmpq	$0, 8(%r15)
	je	LBB0_20
## %bb.21:
	shrl	%ebx
	jmp	LBB0_25
LBB0_22:
	movl	$64, %eax
	subl	%ebx, %eax
	cmpq	$0, 8(%r15)
	je	LBB0_23
## %bb.24:
	shrl	%eax
	notl	%eax
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_20:
	leal	(%rbx,%rbx,8), %ebx
	shrl	$5, %ebx
	jmp	LBB0_25
LBB0_23:
	leal	(%rax,%rax,8), %ebx
	shrl	$5, %ebx
	notl	%ebx
LBB0_25:
	movslq	(%r13), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	imull	%r12d, %eax
	imull	16(%r15), %eax
	movl	20(%r15), %esi
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	xorl	%r12d, %r12d
	addl	%eax, %r14d
	imull	%esi, %eax
	movl	%eax, -48(%rbp)
	shrl	%esi
	cmpl	%esi, %edx
	sbbl	$-1, %r14d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	addl	%r14d, %ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	movl	$160, %r14d
	cmpl	$440000001, %eax                ## imm = 0x1A39DE01
	jl	LBB0_42
## %bb.26:
	movl	$1, %r12d
	movl	$168, %r14d
	cmpl	$484000001, %eax                ## imm = 0x1CD94101
	jb	LBB0_42
## %bb.27:
	cmpl	$533000001, %eax                ## imm = 0x1FC4EF41
	jae	LBB0_29
## %bb.28:
	movl	$2, %r12d
	jmp	LBB0_42
LBB0_29:
	cmpl	$587000001, %eax                ## imm = 0x22FCE8C1
	jae	LBB0_31
## %bb.30:
	movl	$3, %r12d
	jmp	LBB0_42
LBB0_31:
	cmpl	$645000001, %eax                ## imm = 0x2671EB41
	jae	LBB0_33
## %bb.32:
	movl	$4, %r12d
	jmp	LBB0_42
LBB0_33:
	cmpl	$710000001, %eax                ## imm = 0x2A51BD81
	jae	LBB0_35
## %bb.34:
	movl	$5, %r12d
	jmp	LBB0_42
LBB0_35:
	cmpl	$782000001, %eax                ## imm = 0x2E9C5F81
	jae	LBB0_37
## %bb.36:
	movl	$6, %r12d
	jmp	LBB0_42
LBB0_37:
	cmpl	$860000001, %eax                ## imm = 0x33428F01
	jae	LBB0_39
## %bb.38:
	movl	$7, %r12d
	jmp	LBB0_42
LBB0_39:
	cmpl	$1492000001, %eax               ## imm = 0x58EE1D01
	jae	LBB0_41
## %bb.40:
	xorl	%r12d, %r12d
	jmp	LBB0_42
LBB0_41:
	cmpl	$1685000001, %eax               ## imm = 0x646F0F41
	jae	LBB0_1
LBB0_42:
	movl	24(%r15), %edi
	movl	$8449542, %esi                  ## imm = 0x80EE06
	movl	%r12d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.43:
	movl	4(%r13), %eax
	xorl	%edx, %edx
	cmpl	$5000001, %eax                  ## imm = 0x4C4B41
	jl	LBB0_46
## %bb.44:
	movl	$2, %edx
	cmpl	$6000001, %eax                  ## imm = 0x5B8D81
	jb	LBB0_46
## %bb.45:
	xorl	%ecx, %ecx
	cmpl	$7000001, %eax                  ## imm = 0x6ACFC1
	setae	%cl
	leal	(%rcx,%rcx), %edx
	addl	$4, %edx
LBB0_46:
	movl	24(%r15), %edi
	movl	$8449110, %esi                  ## imm = 0x80EC56
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.47:
	movl	24(%r15), %edi
	movl	$8449100, %esi                  ## imm = 0x80EC4C
	movl	%r14d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.48:
	movl	24(%r15), %edi
	movzbl	-56(%rbp), %edx                 ## 1-byte Folded Reload
	movl	$8449101, %esi                  ## imm = 0x80EC4D
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.49:
	movl	24(%r15), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movzbl	%ah, %edx
	movl	$8449102, %esi                  ## imm = 0x80EC4E
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.50:
	movl	24(%r15), %edi
	movzbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	movl	$8388894, %esi                  ## imm = 0x80011E
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.51:
	movl	24(%r15), %edi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movzbl	%ah, %edx
	movl	$8388895, %esi                  ## imm = 0x80011F
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.52:
	xorl	%ebx, %ebx
	jmp	LBB0_53
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_53:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"role=%u, frequency %u, bandwidth_hz %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"t_cal_freq %u, pre_lo_freq %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_it913x_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function it913x_set_params
_it913x_set_params:                     ; @it913x_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, [x0, #8]
	ldr	x19, [x24, #40]
	ldr	w2, [x24, #32]
	ldp	w8, w9, [x0]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x24, #28]
	cbz	w8, LBB0_52
; %bb.1:
	ldr	w8, [x20]
	mov	w9, #9857
	movk	w9, #1129, lsl #16
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	mov	w21, #0
	mov	w22, #48
	b	LBB0_16
LBB0_3:
	mov	w9, #47553
	movk	w9, #1693, lsl #16
	cmp	w8, w9
	b.hs	LBB0_5
; %bb.4:
	mov	w21, #8192
	mov	w22, #32
	b	LBB0_16
LBB0_5:
	mov	w9, #19713
	movk	w9, #2258, lsl #16
	cmp	w8, w9
	b.hs	LBB0_7
; %bb.6:
	mov	w21, #16384
	mov	w22, #24
	b	LBB0_16
LBB0_7:
	mov	w9, #29569
	movk	w9, #3387, lsl #16
	cmp	w8, w9
	b.hs	LBB0_9
; %bb.8:
	mov	w21, #24576
	mov	w22, #16
	b	LBB0_16
LBB0_9:
	mov	w9, #39425
	movk	w9, #4516, lsl #16
	cmp	w8, w9
	b.hs	LBB0_11
; %bb.10:
	mov	w21, #32768
	mov	w22, #12
	b	LBB0_16
LBB0_11:
	mov	w9, #10561
	movk	w9, #6790, lsl #16
	cmp	w8, w9
	b.hs	LBB0_13
; %bb.12:
	mov	w21, #40960
	mov	w22, #8
	b	LBB0_16
LBB0_13:
	ldr	w9, [x24]
	cmp	w8, w9
	b.le	LBB0_15
; %bb.14:
	mov	w9, #55681
	movk	w9, #14495, lsl #16
	mov	w10, #2
	mov	w11, #4
	cmp	w8, w9
	csel	w22, w11, w10, lo
	mov	w8, #57344
	csel	w21, w8, wzr, lo
	b	LBB0_16
LBB0_15:
	mov	w21, #49152
	mov	w22, #6
LBB0_16:
	mov	w25, #60492
	movk	w25, #128, lsl #16
	ldr	w0, [x24, #24]
	add	w1, w25, #309
	add	x2, sp, #28
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.17:
	ldr	w9, [sp, #28]
	mul	w8, w9, w22
	cmp	w9, #31
	b.hi	LBB0_19
; %bb.18:
	ldr	x9, [x24, #8]
	lsr	w10, w8, #1
	add	w8, w8, w8, lsl #3
	lsr	w8, w8, #5
	cmp	x9, #0
	csel	w8, w10, w8, ne
	b	LBB0_20
LBB0_19:
	mov	w9, #64
	sub	w8, w9, w8
	ldr	x9, [x24, #8]
	mov	w10, #-1
	eor	w11, w10, w8, lsr #1
	add	w8, w8, w8, lsl #3
	eor	w8, w10, w8, lsr #5
	cmp	x9, #0
	csel	w8, w11, w8, ne
LBB0_20:
	ldrsw	x9, [x20]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mul	w9, w9, w22
	ldp	w10, w11, [x24, #16]
	mul	w9, w9, w10
	udiv	w10, w9, w11
	mul	w12, w10, w11
	str	w12, [sp, #28]
	sub	w9, w9, w12
	cmp	w9, w11, lsr #1
	add	w9, w10, w21
	cinc	w26, w9, hs
	add	w21, w26, w8
	str	x26, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
	ldr	w8, [x20]
	mov	w9, #56833
	movk	w9, #6713, lsl #16
	cmp	w8, w9
	b.ge	LBB0_22
; %bb.21:
	mov	w2, #0
	mov	w22, #160
	b	LBB0_39
LBB0_22:
	mov	w9, #16641
	movk	w9, #7385, lsl #16
	cmp	w8, w9
	b.hs	LBB0_24
LBB0_23:
	mov	w2, #1
	b	LBB0_38
LBB0_24:
	mov	w9, #61249
	movk	w9, #8132, lsl #16
	cmp	w8, w9
	b.hs	LBB0_26
; %bb.25:
	mov	w2, #2
	b	LBB0_38
LBB0_26:
	mov	w9, #59585
	movk	w9, #8956, lsl #16
	cmp	w8, w9
	b.hs	LBB0_28
; %bb.27:
	mov	w2, #3
	b	LBB0_38
LBB0_28:
	mov	w9, #60225
	movk	w9, #9841, lsl #16
	cmp	w8, w9
	b.hs	LBB0_30
; %bb.29:
	mov	w2, #4
	b	LBB0_38
LBB0_30:
	mov	w9, #48513
	movk	w9, #10833, lsl #16
	cmp	w8, w9
	b.hs	LBB0_32
; %bb.31:
	mov	w2, #5
	b	LBB0_38
LBB0_32:
	mov	w9, #24449
	movk	w9, #11932, lsl #16
	cmp	w8, w9
	b.hs	LBB0_34
; %bb.33:
	mov	w2, #6
	b	LBB0_38
LBB0_34:
	mov	w9, #36609
	movk	w9, #13122, lsl #16
	cmp	w8, w9
	b.hs	LBB0_36
; %bb.35:
	mov	w2, #7
	b	LBB0_38
LBB0_36:
	mov	w9, #7425
	movk	w9, #22766, lsl #16
	cmp	w8, w9
	b.hs	LBB0_51
; %bb.37:
	mov	w2, #0
LBB0_38:
	mov	w22, #168
LBB0_39:
	ldr	w0, [x24, #24]
	add	w1, w25, #442
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.40:
	ldr	w8, [x20, #4]
	mov	w9, #19265
	movk	w9, #76, lsl #16
	cmp	w8, w9
	b.ge	LBB0_42
; %bb.41:
	mov	w2, #0
	b	LBB0_45
LBB0_42:
	mov	w9, #36225
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.hs	LBB0_44
; %bb.43:
	mov	w2, #2
	b	LBB0_45
LBB0_44:
	mov	w9, #53185
	movk	w9, #106, lsl #16
	mov	w10, #6
	mov	w11, #4
	cmp	w8, w9
	csel	w2, w11, w10, lo
LBB0_45:
	ldr	w0, [x24, #24]
	add	w1, w25, #10
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.46:
	ldr	w0, [x24, #24]
	mov	w1, #60492
	movk	w1, #128, lsl #16
	mov	x2, x22
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.47:
	ldr	w0, [x24, #24]
	and	w2, w21, #0xff
	add	w1, w25, #1
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.48:
	ldr	w0, [x24, #24]
	ubfx	w2, w21, #8, #8
	add	w1, w25, #2
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.49:
	mov	w20, #286
	movk	w20, #128, lsl #16
	ldr	w0, [x24, #24]
	and	w2, w26, #0xff
	mov	w1, #286
	movk	w1, #128, lsl #16
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
; %bb.50:
	ldr	w0, [x24, #24]
	ubfx	w2, w26, #8, #8
	add	w1, w20, #1
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_53
	b	LBB0_54
LBB0_51:
	mov	w9, #3905
	movk	w9, #25711, lsl #16
	cmp	w8, w9
	b.lo	LBB0_23
LBB0_52:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_53:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_dbg
LBB0_54:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"role=%u, frequency %u, bandwidth_hz %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"t_cal_freq %u, pre_lo_freq %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_it913x_set_params
.subsections_via_symbols
