	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crport_handshake
_crport_handshake:                      ## @crport_handshake
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	orl	%esi, %edx
	movq	_EXYNOS5_DRD_PHYREG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rdi), %rsi
	movl	%edx, %edi
	callq	_writel
	movl	$101, %r13d
	movq	_EXYNOS5_DRD_PHYREG1@GOTPCREL(%rip), %r15
	movq	_PHYREG1_CR_ACK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%r13d
	jne	LBB0_1
	jmp	LBB0_3
LBB0_7:
	cmpl	$1, %r13d
	jne	LBB0_3
## %bb.8:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	movq	_EXYNOS5_DRD_PHYREG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %r13d
	movl	%ebx, %edi
	callq	_writel
	movl	$101, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_4
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	xorl	%eax, %eax
	cmpl	$1, %ebx
	jne	LBB0_12
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %ebx
LBB0_11:
	movl	(%r14), %edi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS5_DRD_PHYREG0,8,3        ## @EXYNOS5_DRD_PHYREG0
	.comm	_EXYNOS5_DRD_PHYREG1,8,3        ## @EXYNOS5_DRD_PHYREG1
	.comm	_PHYREG1_CR_ACK,4,2             ## @PHYREG1_CR_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CRPORT handshake timeout1 (0x%08x)\n"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.1:                               ## @.str.1
	.asciz	"CRPORT handshake timeout2 (0x%08x)\n"

	.no_dead_strip	_crport_handshake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crport_handshake
_crport_handshake:                      ; @crport_handshake
	.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
	mov	x19, x1
	mov	x20, x0
	orr	w0, w2, w1
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x23, _EXYNOS5_DRD_PHYREG0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EXYNOS5_DRD_PHYREG0@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w24, #101
Lloh2:
	adrp	x21, _EXYNOS5_DRD_PHYREG1@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EXYNOS5_DRD_PHYREG1@GOTPAGEOFF]
Lloh4:
	adrp	x22, _PHYREG1_CR_ACK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PHYREG1_CR_ACK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w24, w24, #1
	b.ne	LBB0_1
	b	LBB0_5
LBB0_3:
	cmp	w24, #1
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w23, #101
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w23, w23, #1
	b.ne	LBB0_6
	b	LBB0_11
LBB0_8:
	cmp	w23, #1
	b.ne	LBB0_11
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	ldr	w0, [x20]
	mov	x2, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ETIME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS5_DRD_PHYREG0,8,3        ; @EXYNOS5_DRD_PHYREG0
	.comm	_EXYNOS5_DRD_PHYREG1,8,3        ; @EXYNOS5_DRD_PHYREG1
	.comm	_PHYREG1_CR_ACK,4,2             ; @PHYREG1_CR_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CRPORT handshake timeout1 (0x%08x)\n"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.1:                               ; @.str.1
	.asciz	"CRPORT handshake timeout2 (0x%08x)\n"

	.no_dead_strip	_crport_handshake
.subsections_via_symbols
