	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5pcsis_system_enable
_s5pcsis_system_enable:                 ## @s5pcsis_system_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_S5PCSIS_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_s5pcsis_read
	movq	_S5PCSIS_CTRL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
	cmovnel	%ecx, %edx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_write
	movq	_S5PCSIS_DPHYCTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_read
	movq	_S5PCSIS_DPHYCTRL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	notl	%edx
	andl	%eax, %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movb	(%rbx), %cl
	incb	%cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	andl	%eax, %esi
	orl	%esi, %edx
LBB0_2:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_s5pcsis_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S5PCSIS_CTRL,4,2               ## @S5PCSIS_CTRL
	.comm	_S5PCSIS_CTRL_ENABLE,4,2        ## @S5PCSIS_CTRL_ENABLE
	.comm	_S5PCSIS_DPHYCTRL,4,2           ## @S5PCSIS_DPHYCTRL
	.comm	_S5PCSIS_DPHYCTRL_ENABLE,4,2    ## @S5PCSIS_DPHYCTRL_ENABLE
	.no_dead_strip	_s5pcsis_system_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5pcsis_system_enable
_s5pcsis_system_enable:                 ; @s5pcsis_system_enable
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _S5PCSIS_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _S5PCSIS_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_s5pcsis_read
Lloh2:
	adrp	x8, _S5PCSIS_CTRL_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5PCSIS_CTRL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w20, #0
	csel	w2, w8, w9, eq
	ldr	w1, [x21]
	mov	x0, x19
	bl	_s5pcsis_write
Lloh5:
	adrp	x21, _S5PCSIS_DPHYCTRL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _S5PCSIS_DPHYCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_s5pcsis_read
Lloh7:
	adrp	x8, _S5PCSIS_DPHYCTRL_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5PCSIS_DPHYCTRL_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w2, w0, w8
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w9, [x19]
	add	w9, w9, #1
	mov	w10, #-1
	lsl	w9, w10, w9
	bic	w8, w8, w9
	orr	w2, w8, w2
LBB0_2:
	ldr	w1, [x21]
	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	_s5pcsis_write
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S5PCSIS_CTRL,4,2               ; @S5PCSIS_CTRL
	.comm	_S5PCSIS_CTRL_ENABLE,4,2        ; @S5PCSIS_CTRL_ENABLE
	.comm	_S5PCSIS_DPHYCTRL,4,2           ; @S5PCSIS_DPHYCTRL
	.comm	_S5PCSIS_DPHYCTRL_ENABLE,4,2    ; @S5PCSIS_DPHYCTRL_ENABLE
	.no_dead_strip	_s5pcsis_system_enable
.subsections_via_symbols
