	.file	"extr_adv748x-csi2.c_adv748x_csi2_registered.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TXA"
.LC1:
	.string	"TXB"
.LC2:
	.string	"Registered %s (%s)"
	.text
	.p2align 4
	.type	adv748x_csi2_registered, @function
adv748x_csi2_registered:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	adv748x_sd_to_csi2@PLT
	mov	r13d, DWORD PTR 4[rbp]
	mov	rdi, rax
	mov	r12, QWORD PTR [rax]
	mov	rbx, rax
	call	is_txa@PLT
	lea	rdx, .LC0[rip]
	mov	ecx, r13d
	lea	rsi, .LC2[rip]
	test	rax, rax
	lea	rax, .LC1[rip]
	mov	rdi, r12
	cmove	rdx, rax
	call	adv_dbg@PLT
	mov	rdi, r12
	call	is_afe_enabled@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbx
	call	is_txb@PLT
	mov	esi, DWORD PTR 0[rbp]
	lea	rdx, 24[r12]
	mov	rdi, rbx
	mov	ecx, DWORD PTR ADV748X_AFE_SOURCE[rip]
	mov	r8d, eax
	call	adv748x_csi2_register_link@PLT
	test	eax, eax
	je	.L18
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbx
	call	is_txb@PLT
	test	eax, eax
	je	.L4
	mov	QWORD PTR 16[r12], rbx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	is_txb@PLT
	test	eax, eax
	je	.L7
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	call	is_hdmi_enabled@PLT
	test	eax, eax
	je	.L8
	mov	ecx, DWORD PTR ADV748X_HDMI_SOURCE[rip]
	mov	esi, DWORD PTR 0[rbp]
	lea	rdx, 8[r12]
	mov	rdi, rbx
	mov	r8d, 1
	call	adv748x_csi2_register_link@PLT
	test	eax, eax
	jne	.L1
	mov	QWORD PTR [r12], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	adv748x_csi2_registered, .-adv748x_csi2_registered
	.comm	ADV748X_HDMI_SOURCE,4,4
	.comm	ADV748X_AFE_SOURCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_adv748x-csi2.c_adv748x_csi2_registered.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TXA\000"
	.align	2
.LC1:
	.ascii	"TXB\000"
	.align	2
.LC2:
	.ascii	"Registered %s (%s)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adv748x_csi2_registered, %function
adv748x_csi2_registered:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r5, r0
	bl	adv748x_sd_to_csi2
	ldr	r6, [r0]
	mov	r4, r0
	bl	is_txa
	mov	r1, r0
	ldr	r3, .L19
	cmp	r1, #0
	ldr	r2, .L19+4
	ldr	r1, .L19+8
	moveq	r2, r3
	mov	r0, r6
	ldr	r3, [r5, #4]
	bl	adv_dbg
	mov	r0, r6
	bl	is_afe_enabled
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L19+12
	mov	r0, r4
	ldr	r8, [r3]
	ldr	r7, [r5]
	bl	is_txb
	mov	r3, r8
	str	r0, [sp]
	mov	r1, r7
	mov	r0, r4
	add	r2, r6, #12
	bl	adv748x_csi2_register_link
	cmp	r0, #0
	beq	.L18
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r4
	bl	is_txb
	cmp	r0, #0
	strne	r4, [r6, #8]
.L4:
	mov	r0, r4
	bl	is_txb
	cmp	r0, #0
	beq	.L7
.L8:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r6
	bl	is_hdmi_enabled
	cmp	r0, #0
	beq	.L8
	mov	r2, #1
	ldr	r3, .L19+16
	ldr	r1, [r5]
	str	r2, [sp]
	mov	r0, r4
	ldr	r3, [r3]
	add	r2, r6, #4
	bl	adv748x_csi2_register_link
	cmp	r0, #0
	streq	r4, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	ADV748X_AFE_SOURCE
	.word	ADV748X_HDMI_SOURCE
	.size	adv748x_csi2_registered, .-adv748x_csi2_registered
	.comm	ADV748X_HDMI_SOURCE,4,4
	.comm	ADV748X_AFE_SOURCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
