	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dsi_cio_wait_tx_clk_esc_reset
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dsi_cio_wait_tx_clk_esc_reset:         ## @dsi_cio_wait_tx_clk_esc_reset
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DSI_MAX_NR_LANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	16(%r14), %rax
	movq	_DSI_QUIRK_REVERSE_TXCLKESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	leaq	_dsi_cio_wait_tx_clk_esc_reset.offsets_new(%rip), %rax
	leaq	_dsi_cio_wait_tx_clk_esc_reset.offsets_old(%rip), %r12
	cmoveq	%rax, %r12
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	movq	8(%r14), %rcx
	movq	_DSI_LANE_UNUSED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %esi
	andl	$-4, %esi
	movq	%rdx, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <1,1,u,u>
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pcmpeqq	%xmm0, %xmm2
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	pandn	%xmm1, %xmm2
	pcmpeqq	%xmm0, %xmm3
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	pandn	%xmm1, %xmm3
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	movdqa	%xmm2, (%r13,%rdi,4)
	movdqu	32(%rcx,%rdi,8), %xmm2
	movdqu	48(%rcx,%rdi,8), %xmm3
	pcmpeqq	%xmm0, %xmm2
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	pandn	%xmm1, %xmm2
	pcmpeqq	%xmm0, %xmm3
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	pandn	%xmm1, %xmm3
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	movdqa	%xmm2, 16(%r13,%rdi,4)
	addq	$8, %rdi
	addq	$-2, %rbx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdi,8), %xmm1
	movdqu	16(%rcx,%rdi,8), %xmm2
	pcmpeqq	%xmm0, %xmm1
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = <1,1,u,u>
	pandn	%xmm3, %xmm1
	pcmpeqq	%xmm0, %xmm2
	pshufd	$232, %xmm2, %xmm0              ## xmm0 = xmm2[0,2,2,3]
	pandn	%xmm3, %xmm0
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqa	%xmm1, (%r13,%rdi,4)
LBB0_9:
	cmpq	%rax, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	%rdx, (%rcx,%rsi,8)
	setne	%dil
	movl	%edi, (%r13,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_10
LBB0_11:
	movl	$100000, %ebx                   ## imm = 0x186A0
	.p2align	4, 0x90
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	_DSI_DSIPHY_CFG5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dsi_read_reg
	movl	%eax, %r15d
	movl	(%r14), %r8d
	xorl	%eax, %eax
	movl	$0, %edx
	testl	%r8d, %r8d
	jle	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$1, %r8d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	testb	$1, %r8b
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$0, (%r13,%rsi,4)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12,%rsi,4), %ecx
	btl	%ecx, %r15d
	jae	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%edx
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpl	%r8d, %edx
	je	LBB0_36
## %bb.28:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%ebx
	jne	LBB0_12
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%edx
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_23
LBB0_16:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%r13,%rsi,4)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	(%r12,%rsi,4), %ecx
	btl	%ecx, %r15d
	jae	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	incl	%edx
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$0, 4(%r13,%rsi,4)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	4(%r12,%rsi,4), %ecx
	btl	%ecx, %r15d
	jb	LBB0_21
	jmp	LBB0_22
LBB0_29:
	testl	%r8d, %r8d
	jle	LBB0_35
## %bb.30:
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_31 Depth=1
	incq	%rbx
	movslq	%r8d, %rax
	cmpq	%rax, %rbx
	jge	LBB0_35
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r13,%rbx,4)
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=1
	movl	(%r12,%rbx,4), %eax
	btl	%eax, %r15d
	jb	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DSSERR
	movl	(%r14), %r8d
	jmp	LBB0_34
LBB0_35:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_38
## %bb.37:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
LBB0_38:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_MAX_NR_LANES,4,2           ## @DSI_MAX_NR_LANES
	.section	__TEXT,__const
	.p2align	2                               ## @dsi_cio_wait_tx_clk_esc_reset.offsets_old
_dsi_cio_wait_tx_clk_esc_reset.offsets_old:
	.long	28                              ## 0x1c
	.long	27                              ## 0x1b
	.long	26                              ## 0x1a

	.p2align	4                               ## @dsi_cio_wait_tx_clk_esc_reset.offsets_new
_dsi_cio_wait_tx_clk_esc_reset.offsets_new:
	.long	24                              ## 0x18
	.long	25                              ## 0x19
	.long	26                              ## 0x1a
	.long	27                              ## 0x1b
	.long	28                              ## 0x1c

	.comm	_DSI_QUIRK_REVERSE_TXCLKESC,4,2 ## @DSI_QUIRK_REVERSE_TXCLKESC
	.comm	_DSI_LANE_UNUSED,8,3            ## @DSI_LANE_UNUSED
	.comm	_DSI_DSIPHY_CFG5,4,2            ## @DSI_DSIPHY_CFG5
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CIO TXCLKESC%d domain not coming out of reset\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dsi_cio_wait_tx_clk_esc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_cio_wait_tx_clk_esc_reset
_dsi_cio_wait_tx_clk_esc_reset:         ; @dsi_cio_wait_tx_clk_esc_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _DSI_MAX_NR_LANES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSI_MAX_NR_LANES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DSI_QUIRK_REVERSE_TXCLKESC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DSI_QUIRK_REVERSE_TXCLKESC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _dsi_cio_wait_tx_clk_esc_reset.offsets_old@PAGE
Lloh12:
	add	x10, x10, _dsi_cio_wait_tx_clk_esc_reset.offsets_old@PAGEOFF
Lloh13:
	adrp	x11, _dsi_cio_wait_tx_clk_esc_reset.offsets_new@PAGE
Lloh14:
	add	x11, x11, _dsi_cio_wait_tx_clk_esc_reset.offsets_new@PAGEOFF
	tst	w9, w8
	csel	x24, x11, x10, eq
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x10, [x19, #8]
Lloh15:
	adrp	x8, _DSI_LANE_UNUSED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DSI_LANE_UNUSED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	w9, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x9, #0xfffffff8
	dup.2d	v0, x8
	add	x12, x23, #16
	add	x13, x10, #32
	movi.2s	v1, #1
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x13, #-32]
	ldp	q4, q5, [x13], #64
	cmeq.2d	v2, v2, v0
	mvn.16b	v2, v2
	xtn.2s	v2, v2
	and.8b	v2, v2, v1
	cmeq.2d	v3, v3, v0
	mvn.16b	v3, v3
	xtn.2s	v3, v3
	and.8b	v3, v3, v1
	cmeq.2d	v4, v4, v0
	mvn.16b	v4, v4
	xtn.2s	v4, v4
	and.8b	v4, v4, v1
	cmeq.2d	v5, v5, v0
	mvn.16b	v5, v5
	xtn.2s	v5, v5
	stp	d2, d3, [x12, #-16]
	and.8b	v2, v5, v1
	stp	d4, d2, [x12], #32
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x9
	b.eq	LBB0_8
LBB0_6:
	add	x12, x23, x11, lsl #2
	sub	x9, x9, x11
	add	x10, x10, x11, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	cmp	x11, x8
	cset	w11, ne
	str	w11, [x12], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w21, #34464
	movk	w21, #1, lsl #16
Lloh18:
	adrp	x22, _DSI_DSIPHY_CFG5@GOTPAGE
Lloh19:
	ldr	x22, [x22, _DSI_DSIPHY_CFG5@GOTPAGEOFF]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dsi_read_reg
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
	mov	x10, x8
	mov	x11, x23
	mov	x12, x24
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	add	w9, w9, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x12, x12, #4
	add	x11, x11, #4
	subs	x10, x10, #1
	b.eq	LBB0_16
LBB0_13:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w13, [x11]
	cbz	w13, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	w13, [x12]
	lsr	w13, w20, w13
	tbnz	w13, #0, LBB0_11
	b	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, w8
	b.eq	LBB0_24
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_9
; %bb.18:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.19:
	mov	x21, #0
Lloh20:
	adrp	x22, l_.str@PAGE
Lloh21:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_25
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23, x21, lsl #2]
	cbz	w9, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [x24, x21, lsl #2]
	lsr	w9, w20, w9
	tbnz	w9, #0, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_DSSERR
	ldr	w8, [x19]
	b	LBB0_20
LBB0_24:
	mov	w0, #0
	b	LBB0_26
LBB0_25:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_26:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_MAX_NR_LANES,4,2           ; @DSI_MAX_NR_LANES
	.section	__TEXT,__const
	.p2align	2                               ; @dsi_cio_wait_tx_clk_esc_reset.offsets_old
_dsi_cio_wait_tx_clk_esc_reset.offsets_old:
	.long	28                              ; 0x1c
	.long	27                              ; 0x1b
	.long	26                              ; 0x1a

	.p2align	2                               ; @dsi_cio_wait_tx_clk_esc_reset.offsets_new
_dsi_cio_wait_tx_clk_esc_reset.offsets_new:
	.long	24                              ; 0x18
	.long	25                              ; 0x19
	.long	26                              ; 0x1a
	.long	27                              ; 0x1b
	.long	28                              ; 0x1c

	.comm	_DSI_QUIRK_REVERSE_TXCLKESC,4,2 ; @DSI_QUIRK_REVERSE_TXCLKESC
	.comm	_DSI_LANE_UNUSED,8,3            ; @DSI_LANE_UNUSED
	.comm	_DSI_DSIPHY_CFG5,4,2            ; @DSI_DSIPHY_CFG5
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CIO TXCLKESC%d domain not coming out of reset\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dsi_cio_wait_tx_clk_esc_reset
.subsections_via_symbols
