	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_set_hs_tx_timeout
_dsi_set_hs_tx_timeout:                 ## @dsi_set_hs_tx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpl	$8192, %esi                     ## imm = 0x2000
	setae	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_dsi_get_txbyteclkhs
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_DSI_TIMING2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dsi_read_reg
	movl	$1, %ebx
	movl	%eax, %edi
	movl	$1, %esi
	movl	$31, %edx
	movl	$31, %ecx
	callq	_FLD_MOD
	xorl	%esi, %esi
	testl	%r14d, %r14d
	setne	%sil
	movl	$16, %ecx
	cmovnel	%ecx, %ebx
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rdx, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %edi
	movl	$30, %edx
	movl	$30, %ecx
	callq	_FLD_MOD
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	setne	%r14b
	leaq	L_.str.1(%rip), %r13
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rcx, %r13
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	$29, %edx
	movl	$29, %ecx
	callq	_FLD_MOD
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	$28, %edx
	movl	$16, %ecx
	callq	_FLD_MOD
	movq	_DSI_TIMING2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	(%r14,%r14,2), %r14d
	incl	%r14d
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dsi_write_reg
	imull	%r15d, %ebx
	imull	%r14d, %ebx
	imulq	$1000, %rbx, %rsi               ## imm = 0x3E8
	movabsq	$4835703278458516699, %rcx      ## imm = 0x431BDE82D7B634DB
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	mulq	%rcx
	movq	%rdx, %rcx
	shrq	$18, %rcx
	movq	%rsi, %rax
	orq	%rcx, %rax
	movabsq	$35180077121536, %rdx           ## imm = 0x1FFF00000000
	testq	%rdx, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DSSDBG                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_TIMING2,4,2                ## @DSI_TIMING2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HS_TX_TO %lu ticks (%#x%s%s) = %lu ns\n"

L_.str.1:                               ## @.str.1
	.asciz	" x4"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	" x16"

	.no_dead_strip	_dsi_set_hs_tx_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_set_hs_tx_timeout
_dsi_set_hs_tx_timeout:                 ; @dsi_set_hs_tx_timeout
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x22, x0
	cmp	w2, #0
	cset	w24, ne
	mov	w8, #4
	csinc	w26, w8, wzr, ne
	cmp	w3, #0
	cset	w25, ne
	mov	w8, #16
	csinc	w27, w8, wzr, ne
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.3@PAGE
Lloh3:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x20, x8, x9, eq
	cmp	w2, #0
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x21, x8, x9, eq
	tst	w1, #0xffffe000
	cset	w0, ne
	bl	_BUG_ON
	mov	x0, x22
	bl	_dsi_get_txbyteclkhs
	mov	x23, x0
Lloh6:
	adrp	x28, _DSI_TIMING2@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DSI_TIMING2@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x22
	bl	_dsi_read_reg
	mov	w1, #1
	mov	w2, #31
	mov	w3, #31
	bl	_FLD_MOD
	mov	x1, x25
	mov	w2, #30
	mov	w3, #30
	bl	_FLD_MOD
	mov	x1, x24
	mov	w2, #29
	mov	w3, #29
	bl	_FLD_MOD
	mov	x1, x19
	mov	w2, #28
	mov	w3, #16
	bl	_FLD_MOD
	mov	x2, x0
	ldr	w1, [x28]
	mul	w8, w26, w19
	mul	w24, w8, w27
	mov	x0, x22
	bl	_dsi_write_reg
	mov	w8, #1000
	umull	x8, w24, w8
	mov	x9, #13531
	movk	x9, #55222, lsl #16
	movk	x9, #56962, lsl #32
	movk	x9, #17179, lsl #48
	umulh	x9, x23, x9
	lsr	x9, x9, #18
	udiv	x5, x8, x9
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_DSSDBG
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_TIMING2,4,2                ; @DSI_TIMING2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HS_TX_TO %lu ticks (%#x%s%s) = %lu ns\n"

l_.str.1:                               ; @.str.1
	.asciz	" x4"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	" x16"

	.no_dead_strip	_dsi_set_hs_tx_timeout
.subsections_via_symbols
