	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function it913x_init
_it913x_init:                           ## @it913x_init
	.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)
	movq	(%rdi), %r14
	movq	32(%r14), %r15
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	28(%r14), %edi
	movl	$8449100, %esi                  ## imm = 0x80EC4C
	movl	$104, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$100000, %esi                   ## imm = 0x186A0
	callq	_usleep_range
	movl	28(%r14), %edi
	leaq	-60(%rbp), %rdx
	movl	$8449158, %esi                  ## imm = 0x80EC86
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-60(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.6:
	cmpl	$1, %edx
	jne	LBB0_22
## %bb.7:
	movl	$6, %r12d
	movl	$1, %eax
	movl	$640, %ecx                      ## imm = 0x280
	jmp	LBB0_9
LBB0_8:
	movl	$16, %r12d
	movl	$3, %eax
	movl	$2000, %ecx                     ## imm = 0x7D0
LBB0_9:
	movl	%edx, 4(%r14)
	movl	%ecx, 8(%r14)
	movl	%eax, 12(%r14)
	movl	28(%r14), %edi
	leaq	-60(%rbp), %rdx
	movl	$8449283, %esi                  ## imm = 0x80ED03
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %ebx
	leaq	_it913x_init.nv(%rip), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	$2, %ecx
	cmpl	%eax, %ebx
	jae	LBB0_12
## %bb.11:
	movl	-60(%rbp), %eax
	movl	(%r12,%rax,4), %ecx
LBB0_12:
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$50, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	28(%r14), %edi
	movl	$8449315, %esi                  ## imm = 0x80ED23
	movq	%r13, %rdx
	movl	$2, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	jne	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-52(%rbp), %eax
	shll	$8, %eax
	orl	-56(%rbp), %eax
	movl	%eax, -60(%rbp)
	je	LBB0_13
LBB0_16:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_jiffies_to_msecs
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_jiffies_to_msecs
	subl	%eax, %ebx
	addl	$50, %ebx
	movl	-60(%rbp), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-60(%rbp), %eax
	imull	8(%r14), %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	imull	12(%r14), %ecx
	xorl	%edx, %edx
	divl	%ecx
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	movl	%edx, 16(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$1, 20(%r14)
	jne	LBB0_23
## %bb.17:
	movq	(%r13), %rbx
	movl	$50, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	leaq	-60(%rbp), %r13
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	28(%r14), %edi
	movl	$8449154, %esi                  ## imm = 0x80EC82
	movq	%r13, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$0, -60(%rbp)
	je	LBB0_18
LBB0_21:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_jiffies_to_msecs
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_jiffies_to_msecs
	subl	%eax, %ebx
	addl	$50, %ebx
	movl	-60(%rbp), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_24
LBB0_22:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_30:
	movl	%eax, %ebx
	jmp	LBB0_2
LBB0_23:
	movl	$50, %edi
	callq	_msleep
LBB0_24:
	movl	28(%r14), %edi
	movl	$8449409, %esi                  ## imm = 0x80ED81
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.25:
	movl	28(%r14), %edi
	movl	$8449111, %esi                  ## imm = 0x80EC57
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.26:
	movl	28(%r14), %edi
	movl	$8449112, %esi                  ## imm = 0x80EC58
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.27:
	movl	28(%r14), %edi
	movl	$8449088, %esi                  ## imm = 0x80EC40
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.28:
	movl	$1, 24(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @it913x_init.nv
_it913x_init.nv:
	.long	48                              ## 0x30
	.long	32                              ## 0x20
	.long	24                              ## 0x18
	.long	16                              ## 0x10
	.long	12                              ## 0xc
	.long	8                               ## 0x8
	.long	6                               ## 0x6
	.long	4                               ## 0x4
	.long	2                               ## 0x2

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"role %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown clock identifier %d\n"

	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"r_fbc_m_bdry took %u ms, val %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"fn_min %u\n"

L_.str.4:                               ## @.str.4
	.asciz	"p_tsm_init_mode took %u ms, val %u\n"

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

	.comm	_TIMEOUT,8,3                    ## @TIMEOUT
	.no_dead_strip	_it913x_init
.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 it913x_init
lCPI0_0:
	.long	2000                            ; 0x7d0
	.long	3                               ; 0x3
lCPI0_1:
	.long	640                             ; 0x280
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_it913x_init:                           ; @it913x_init
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w24, #60480
	movk	w24, #128, lsl #16
	ldr	x23, [x0]
	ldr	x19, [x23, #32]
	ldr	w2, [x23]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x23, #28]
	orr	w1, w24, #0xc
	mov	w2, #104
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #10000
	mov	w1, #34464
	movk	w1, #1, lsl #16
	bl	_usleep_range
	ldr	w0, [x23, #28]
	add	w1, w24, #70
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_5
LBB0_2:
Lloh5:
	adrp	x1, l_.str.5@PAGE
Lloh6:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_3:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.4:
	mov	x0, x21
	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
LBB0_5:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_8
; %bb.6:
	cmp	w2, #1
	b.ne	LBB0_12
; %bb.7:
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	mov	w20, #6
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	w20, #16
LBB0_9:
	str	w2, [x23, #4]
	str	d0, [x23, #8]
	add	w1, w24, #195
	ldr	w0, [x23, #28]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.10:
	ldr	w22, [sp, #12]
Lloh14:
	adrp	x21, _it913x_init.nv@PAGE
Lloh15:
	add	x21, x21, _it913x_init.nv@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.hs	LBB0_13
; %bb.11:
	ldr	w8, [sp, #12]
	ldr	w26, [x21, x8, lsl #2]
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w21, #0
	b	LBB0_2
LBB0_13:
	mov	w26, #2
LBB0_14:
Lloh18:
	adrp	x25, _jiffies@GOTPAGE
Lloh19:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	ldr	x21, [x25]
	mov	w0, #50
	bl	_msecs_to_jiffies
	add	x22, x0, x21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_time_after
	cbnz	w0, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x23, #28]
	add	w1, w24, #227
	add	x2, sp, #16
	mov	w3, #2
	bl	_regmap_bulk_read
	cbnz	w0, LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldp	w9, w8, [sp, #16]
	orr	w8, w9, w8, lsl #8
	str	w8, [sp, #12]
	cbz	w8, LBB0_15
LBB0_18:
	ldr	x0, [x25]
	bl	_jiffies_to_msecs
	mov	x21, x0
	mov	x0, x22
	bl	_jiffies_to_msecs
	sub	w8, w21, w0
	add	w2, w8, #50
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	ldp	w9, w10, [x23, #8]
	mul	w8, w8, w9
	mul	w9, w10, w26
	udiv	w8, w8, w9
	mov	w9, #1000
	mul	w2, w8, w9
	str	w2, [x23, #16]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x23, #20]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.19:
	ldr	x21, [x25]
	mov	w0, #50
	bl	_msecs_to_jiffies
	add	x22, x0, x21
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	mov	x1, x22
	bl	_time_after
	cbnz	w0, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x23, #28]
	add	w1, w24, #66
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_20
LBB0_23:
	ldr	x0, [x25]
	bl	_jiffies_to_msecs
	mov	x21, x0
	mov	x0, x22
	bl	_jiffies_to_msecs
	sub	w8, w21, w0
	add	w2, w8, #50
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_26
LBB0_24:
	mov	x21, x0
	b	LBB0_2
LBB0_25:
	mov	w0, #50
	bl	_msleep
LBB0_26:
	ldr	w0, [x23, #28]
	add	w1, w24, #321
	mov	x2, x20
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.27:
	ldr	w0, [x23, #28]
	add	w1, w24, #23
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.28:
	ldr	w0, [x23, #28]
	add	w1, w24, #24
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.29:
	ldr	w0, [x23, #28]
	mov	w20, #1
	mov	w1, #60480
	movk	w1, #128, lsl #16
	mov	w2, #1
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.30:
	str	w20, [x23, #24]
	b	LBB0_3
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @it913x_init.nv
_it913x_init.nv:
	.long	48                              ; 0x30
	.long	32                              ; 0x20
	.long	24                              ; 0x18
	.long	16                              ; 0x10
	.long	12                              ; 0xc
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.long	4                               ; 0x4
	.long	2                               ; 0x2

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"role %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown clock identifier %d\n"

	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"r_fbc_m_bdry took %u ms, val %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"fn_min %u\n"

l_.str.4:                               ; @.str.4
	.asciz	"p_tsm_init_mode took %u ms, val %u\n"

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

	.comm	_TIMEOUT,8,3                    ; @TIMEOUT
	.no_dead_strip	_it913x_init
.subsections_via_symbols
