	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_dsi_host_transfer
_exynos_dsi_host_transfer:              ## @exynos_dsi_host_transfer
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_host_to_dsi
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_DSIM_STATE_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_DSIM_STATE_INITIALIZED@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_3
LBB0_5:
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mipi_dsi_create_packet
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	8(%r14), %eax
	movl	%eax, -36(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -40(%rbp)
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_exynos_dsi_transfer
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	-48(%rbp), %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_exynos_dsi_init
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DSIM_STATE_ENABLED,4,2         ## @DSIM_STATE_ENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DSIM_STATE_INITIALIZED,4,2     ## @DSIM_STATE_INITIALIZED
	.no_dead_strip	_exynos_dsi_host_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_dsi_host_transfer
_exynos_dsi_host_transfer:              ; @exynos_dsi_host_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	bl	_host_to_dsi
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DSIM_STATE_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DSIM_STATE_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x21, _DSIM_STATE_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DSIM_STATE_INITIALIZED@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_2:
	add	x8, sp, #8
	add	x0, x8, #16
	mov	x1, x19
	bl	_mipi_dsi_create_packet
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x19, #8]
	str	w8, [sp, #20]
	ldr	d0, [x19]
	stur	d0, [sp, #12]
	add	x1, sp, #8
	mov	x0, x20
	bl	_exynos_dsi_transfer
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_exynos_dsi_init
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DSIM_STATE_ENABLED,4,2         ; @DSIM_STATE_ENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSIM_STATE_INITIALIZED,4,2     ; @DSIM_STATE_INITIALIZED
	.no_dead_strip	_exynos_dsi_host_transfer
.subsections_via_symbols
