	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crport_ctrl_write
_crport_ctrl_write:                     ## @crport_ctrl_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_PHYREG0_CR_DATA_IN
	movq	_EXYNOS5_DRD_PHYREG0@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	%ebx, %edi
	callq	_PHYREG0_CR_DATA_IN
	movq	_PHYREG0_CR_CAP_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_crport_handshake
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_PHYREG0_CR_DATA_IN
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	%r14d, %edi
	callq	_PHYREG0_CR_DATA_IN
	movq	_PHYREG0_CR_CAP_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_crport_handshake
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r14d, %edi
	callq	_PHYREG0_CR_DATA_IN
	movq	_PHYREG0_CR_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crport_handshake               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS5_DRD_PHYREG0,8,3        ## @EXYNOS5_DRD_PHYREG0
	.comm	_PHYREG0_CR_CAP_ADDR,4,2        ## @PHYREG0_CR_CAP_ADDR
	.comm	_PHYREG0_CR_CAP_DATA,4,2        ## @PHYREG0_CR_CAP_DATA
	.comm	_PHYREG0_CR_WRITE,4,2           ## @PHYREG0_CR_WRITE
	.no_dead_strip	_crport_ctrl_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crport_ctrl_write
_crport_ctrl_write:                     ; @crport_ctrl_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_PHYREG0_CR_DATA_IN
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _EXYNOS5_DRD_PHYREG0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EXYNOS5_DRD_PHYREG0@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x21
	bl	_PHYREG0_CR_DATA_IN
	mov	x1, x0
Lloh2:
	adrp	x8, _PHYREG0_CR_CAP_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PHYREG0_CR_CAP_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_crport_handshake
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PHYREG0_CR_DATA_IN
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	bl	_PHYREG0_CR_DATA_IN
	mov	x1, x0
Lloh5:
	adrp	x8, _PHYREG0_CR_CAP_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHYREG0_CR_CAP_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_crport_handshake
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x20
	bl	_PHYREG0_CR_DATA_IN
	mov	x1, x0
Lloh8:
	adrp	x8, _PHYREG0_CR_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHYREG0_CR_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_crport_handshake
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS5_DRD_PHYREG0,8,3        ; @EXYNOS5_DRD_PHYREG0
	.comm	_PHYREG0_CR_CAP_ADDR,4,2        ; @PHYREG0_CR_CAP_ADDR
	.comm	_PHYREG0_CR_CAP_DATA,4,2        ; @PHYREG0_CR_CAP_DATA
	.comm	_PHYREG0_CR_WRITE,4,2           ; @PHYREG0_CR_WRITE
	.no_dead_strip	_crport_ctrl_write
.subsections_via_symbols
