	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_dsi_set_timeout
_tegra_dsi_set_timeout:                 ## @tegra_dsi_set_timeout
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	%edx, %ecx
	movq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r14
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r14d
LBB0_3:
	shrq	$9, %r14
	shrq	$8, %rsi
	imull	$1000, %esi, %r15d              ## imm = 0x3E8
	movq	_DSI_TO_TALLY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_DSI_TIMEOUT_LRX
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_DSI_TIMEOUT_HTX
	orl	%eax, %ebx
	movq	_DSI_TIMEOUT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tegra_dsi_writel
	movl	%r15d, %edi
	callq	_DSI_TIMEOUT_PR
	movl	%eax, %ebx
	movl	$8192, %edi                     ## imm = 0x2000
	callq	_DSI_TIMEOUT_TA
	orl	%eax, %ebx
	movq	_DSI_TIMEOUT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tegra_dsi_writel
	xorl	%edi, %edi
	callq	_DSI_TALLY_TA
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DSI_TALLY_LRX
	orl	%eax, %ebx
	xorl	%edi, %edi
	callq	_DSI_TALLY_HTX
	orl	%eax, %ebx
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tegra_dsi_writel
	movq	(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_4
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_TIMEOUT_0,4,2              ## @DSI_TIMEOUT_0
	.comm	_DSI_TIMEOUT_1,4,2              ## @DSI_TIMEOUT_1
	.comm	_DSI_TO_TALLY,4,2               ## @DSI_TO_TALLY
	.no_dead_strip	_tegra_dsi_set_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_dsi_set_timeout
_tegra_dsi_set_timeout:                 ; @tegra_dsi_set_timeout
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	mov	w8, w2
	udiv	x8, x1, x8
	lsr	x20, x8, #9
	lsr	x8, x1, #8
	mov	w9, #1000
	mul	w21, w8, w9
Lloh0:
	adrp	x23, _DSI_TIMEOUT_0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DSI_TIMEOUT_0@GOTPAGEOFF]
Lloh2:
	adrp	x24, _DSI_TIMEOUT_1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DSI_TIMEOUT_1@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DSI_TO_TALLY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DSI_TO_TALLY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #8192
	bl	_DSI_TIMEOUT_LRX
	mov	x22, x0
	mov	x0, x20
	bl	_DSI_TIMEOUT_HTX
	orr	w1, w0, w22
	ldr	w2, [x23]
	mov	x0, x19
	bl	_tegra_dsi_writel
	mov	x0, x21
	bl	_DSI_TIMEOUT_PR
	mov	x22, x0
	mov	w0, #8192
	bl	_DSI_TIMEOUT_TA
	orr	w1, w0, w22
	ldr	w2, [x24]
	mov	x0, x19
	bl	_tegra_dsi_writel
	mov	w0, #0
	bl	_DSI_TALLY_TA
	mov	x22, x0
	mov	w0, #0
	bl	_DSI_TALLY_LRX
	orr	w22, w0, w22
	mov	w0, #0
	bl	_DSI_TALLY_HTX
	orr	w1, w22, w0
	ldr	w2, [x25]
	mov	x0, x19
	bl	_tegra_dsi_writel
	ldr	x19, [x19]
	cbnz	x19, LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_TIMEOUT_0,4,2              ; @DSI_TIMEOUT_0
	.comm	_DSI_TIMEOUT_1,4,2              ; @DSI_TIMEOUT_1
	.comm	_DSI_TO_TALLY,4,2               ; @DSI_TO_TALLY
	.no_dead_strip	_tegra_dsi_set_timeout
.subsections_via_symbols
