	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5pcsis_set_params
_s5pcsis_set_params:                    ## @s5pcsis_set_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_S5PCSIS_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_s5pcsis_read
	movq	_S5PCSIS_CFG_NR_LANE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %edx
	decl	%edx
	orl	%ecx, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_write
	movq	%rbx, %rdi
	callq	___s5pcsis_set_format
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_set_hsync_settle
	movq	_S5PCSIS_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_read
	movq	16(%rbx), %rcx
	movq	_S5PCSIS_CTRL_ALIGN_32BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	cmpl	$32, (%rcx)
	cmovel	%esi, %edx
	movq	_S5PCSIS_CTRL_WCLK_EXTCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%edx, %ecx
	orl	%eax, %edx
	cmpq	$0, 8(%rbx)
	cmovel	%ecx, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_s5pcsis_read
	movl	(%r14), %esi
	movq	_S5PCSIS_CTRL_UPDATE_SHADOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5pcsis_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S5PCSIS_CONFIG,4,2             ## @S5PCSIS_CONFIG
	.comm	_S5PCSIS_CFG_NR_LANE_MASK,4,2   ## @S5PCSIS_CFG_NR_LANE_MASK
	.comm	_S5PCSIS_CTRL,4,2               ## @S5PCSIS_CTRL
	.comm	_S5PCSIS_CTRL_ALIGN_32BIT,4,2   ## @S5PCSIS_CTRL_ALIGN_32BIT
	.comm	_S5PCSIS_CTRL_WCLK_EXTCLK,4,2   ## @S5PCSIS_CTRL_WCLK_EXTCLK
	.comm	_S5PCSIS_CTRL_UPDATE_SHADOW,4,2 ## @S5PCSIS_CTRL_UPDATE_SHADOW
	.no_dead_strip	_s5pcsis_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5pcsis_set_params
_s5pcsis_set_params:                    ; @s5pcsis_set_params
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _S5PCSIS_CONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S5PCSIS_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_s5pcsis_read
Lloh2:
	adrp	x8, _S5PCSIS_CFG_NR_LANE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5PCSIS_CFG_NR_LANE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x19]
	sub	w9, w9, #1
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_write
	mov	x0, x19
	bl	___s5pcsis_set_format
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_s5pcsis_set_hsync_settle
Lloh5:
	adrp	x20, _S5PCSIS_CTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _S5PCSIS_CTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_read
Lloh7:
	adrp	x8, _S5PCSIS_CTRL_ALIGN_32BIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5PCSIS_CTRL_ALIGN_32BIT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	ldp	x11, x10, [x19, #8]
	ldr	w10, [x10]
	cmp	w10, #32
	csel	w8, w9, w8, eq
Lloh10:
	adrp	x9, _S5PCSIS_CTRL_WCLK_EXTCLK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _S5PCSIS_CTRL_WCLK_EXTCLK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	x11, #0
	csel	w2, w10, w8, eq
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_s5pcsis_read
Lloh13:
	adrp	x8, _S5PCSIS_CTRL_UPDATE_SHADOW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S5PCSIS_CTRL_UPDATE_SHADOW@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh15:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5pcsis_write
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S5PCSIS_CONFIG,4,2             ; @S5PCSIS_CONFIG
	.comm	_S5PCSIS_CFG_NR_LANE_MASK,4,2   ; @S5PCSIS_CFG_NR_LANE_MASK
	.comm	_S5PCSIS_CTRL,4,2               ; @S5PCSIS_CTRL
	.comm	_S5PCSIS_CTRL_ALIGN_32BIT,4,2   ; @S5PCSIS_CTRL_ALIGN_32BIT
	.comm	_S5PCSIS_CTRL_WCLK_EXTCLK,4,2   ; @S5PCSIS_CTRL_WCLK_EXTCLK
	.comm	_S5PCSIS_CTRL_UPDATE_SHADOW,4,2 ; @S5PCSIS_CTRL_UPDATE_SHADOW
	.no_dead_strip	_s5pcsis_set_params
.subsections_via_symbols
