	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_vc_send_bta
_dsi_vc_send_bta:                       ## @dsi_vc_send_bta
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_DSSDBG
LBB0_3:
	movq	%rbx, %rdi
	callq	_dsi_bus_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$20, %edx
	movl	$20, %ecx
	callq	_REG_GET
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DSSERR
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dsi_vc_flush_receive_data
LBB0_5:
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$6, %ecx
	movl	$6, %r8d
	callq	_REG_FLD_MOD
	movl	%r14d, %edi
	callq	_DSI_VC_CTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dsi_read_reg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dsi_vc_send_bta %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"rx fifo not empty when sending BTA, dumping data:\n"

	.no_dead_strip	_dsi_vc_send_bta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsi_vc_send_bta
_dsi_vc_send_bta:                       ; @dsi_vc_send_bta
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DSSDBG
LBB0_3:
	mov	x0, x19
	bl	_dsi_bus_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x20
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #20
	mov	w3, #20
	bl	_REG_GET
	cbz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DSSERR
	mov	x0, x19
	mov	x1, x20
	bl	_dsi_vc_flush_receive_data
LBB0_5:
	mov	x0, x20
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	mov	w3, #6
	mov	w4, #6
	bl	_REG_FLD_MOD
	mov	x0, x20
	bl	_DSI_VC_CTRL
	mov	x1, x0
	mov	x0, x19
	bl	_dsi_read_reg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dsi_vc_send_bta %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"rx fifo not empty when sending BTA, dumping data:\n"

	.no_dead_strip	_dsi_vc_send_bta
.subsections_via_symbols
