	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_clear_bridge_error
_cx23885_clear_bridge_error:            ## @cx23885_clear_bridge_error
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	_TC_REQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cx_read
	movq	%rax, %r14
	movq	_TC_REQ_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_cx_read
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_cx_write
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_cx_write
	movq	_VID_B_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	_VBI_B_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	_VID_C_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	_VBI_C_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC_REQ,4,2                     ## @TC_REQ
	.comm	_TC_REQ_SET,4,2                 ## @TC_REQ_SET
	.comm	_VID_B_DMA,4,2                  ## @VID_B_DMA
	.comm	_VBI_B_DMA,4,2                  ## @VBI_B_DMA
	.comm	_VID_C_DMA,4,2                  ## @VID_C_DMA
	.comm	_VBI_C_DMA,4,2                  ## @VBI_C_DMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma in progress detected 0x%08x 0x%08x, clearing\n"

	.no_dead_strip	_cx23885_clear_bridge_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_clear_bridge_error
_cx23885_clear_bridge_error:            ; @cx23885_clear_bridge_error
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _TC_REQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TC_REQ@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_cx_read
	mov	x20, x0
Lloh2:
	adrp	x23, _TC_REQ_SET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TC_REQ_SET@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_cx_read
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
LBB0_2:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x21, x0
	ldr	w0, [x22]
	mov	x1, x20
	bl	_cx_write
	ldr	w0, [x23]
	mov	x1, x21
	bl	_cx_write
Lloh4:
	adrp	x8, _VID_B_DMA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VID_B_DMA@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_cx_read
Lloh7:
	adrp	x8, _VBI_B_DMA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VBI_B_DMA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cx_read
Lloh10:
	adrp	x8, _VID_C_DMA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VID_C_DMA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_cx_read
Lloh13:
	adrp	x8, _VBI_C_DMA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VBI_C_DMA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cx_read
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_info
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TC_REQ,4,2                     ; @TC_REQ
	.comm	_TC_REQ_SET,4,2                 ; @TC_REQ_SET
	.comm	_VID_B_DMA,4,2                  ; @VID_B_DMA
	.comm	_VBI_B_DMA,4,2                  ; @VBI_B_DMA
	.comm	_VID_C_DMA,4,2                  ; @VID_C_DMA
	.comm	_VBI_C_DMA,4,2                  ; @VBI_C_DMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma in progress detected 0x%08x 0x%08x, clearing\n"

	.no_dead_strip	_cx23885_clear_bridge_error
.subsections_via_symbols
