	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_host_transfer
_dw_mipi_dsi_host_transfer:             ## @dw_mipi_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_host_to_dsi
	movq	%rax, %r15
	leaq	-32(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mipi_dsi_create_packet
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_message_config
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	movq	%r14, %rsi
	callq	_dw_mipi_message_config
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dw_mipi_dsi_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsi
	callq	_dw_mipi_dsi_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_7:
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.8:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dw_mipi_dsi_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	(%r14), %ebx
	jmp	LBB0_12
LBB0_11:
	movl	-32(%rbp), %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create packet: %d\n"

	.no_dead_strip	_dw_mipi_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 dw_mipi_dsi_host_transfer
_dw_mipi_dsi_host_transfer:             ; @dw_mipi_dsi_host_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_host_to_dsi
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, x19
	bl	_mipi_dsi_create_packet
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_dw_mipi_message_config
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x19
	bl	_dw_mipi_message_config
LBB0_4:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dw_mipi_dsi_write
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x0, [x20]
	cbz	x0, LBB0_8
; %bb.7:
	add	x1, sp, #8
	bl	_dw_mipi_dsi_write
	mov	x21, x0
	cbnz	w0, LBB0_5
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x0, x20
	mov	x1, x19
	bl	_dw_mipi_dsi_read
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.11:
	ldr	w21, [x19]
	b	LBB0_5
LBB0_12:
	ldr	w21, [sp, #8]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create packet: %d\n"

	.no_dead_strip	_dw_mipi_dsi_host_transfer
.subsections_via_symbols
