	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_csi2_registered
_adv748x_csi2_registered:               ## @adv748x_csi2_registered
	.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
	movq	%rdi, %r15
	callq	_adv748x_sd_to_csi2
	movq	%rax, %r12
	movq	(%rax), %r14
	movq	%rax, %rdi
	callq	_is_txa
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_adv_dbg
	movq	%r14, %rdi
	callq	_is_afe_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%r15), %ebx
	leaq	24(%r14), %r13
	movq	_ADV748X_AFE_SOURCE@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_is_txb
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_adv748x_csi2_register_link
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	%r12, %rdi
	callq	_is_txb
	testl	%eax, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	%r12, 16(%r14)
LBB0_4:
	movq	%r12, %rdi
	callq	_is_txb
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_is_hdmi_enabled
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	(%r15), %esi
	leaq	8(%r14), %rdx
	movq	_ADV748X_HDMI_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$1, %r8d
	callq	_adv748x_csi2_register_link
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registered %s (%s)"

L_.str.1:                               ## @.str.1
	.asciz	"TXA"

L_.str.2:                               ## @.str.2
	.asciz	"TXB"

	.comm	_ADV748X_AFE_SOURCE,4,2         ## @ADV748X_AFE_SOURCE
	.comm	_ADV748X_HDMI_SOURCE,4,2        ## @ADV748X_HDMI_SOURCE
	.no_dead_strip	_adv748x_csi2_registered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_csi2_registered
_adv748x_csi2_registered:               ; @adv748x_csi2_registered
	.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
	mov	x21, x0
	bl	_adv748x_sd_to_csi2
	mov	x19, x0
	ldr	x20, [x0]
	bl	_is_txa
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x2, x9, x8, eq
	ldr	w3, [x21, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_adv_dbg
	mov	x0, x20
	bl	_is_afe_enabled
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w22, [x21]
	add	x23, x20, #24
Lloh6:
	adrp	x8, _ADV748X_AFE_SOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV748X_AFE_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_is_txb
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_adv748x_csi2_register_link
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_is_txb
	cbz	w0, LBB0_4
; %bb.3:
	str	x19, [x20, #16]
LBB0_4:
	mov	x0, x19
	bl	_is_txb
	cbz	w0, LBB0_7
; %bb.5:
	mov	w0, #0
LBB0_6:
	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_7:
	mov	x0, x20
	bl	_is_hdmi_enabled
	cbz	w0, LBB0_6
; %bb.8:
	ldr	w1, [x21]
	add	x2, x20, #8
Lloh9:
	adrp	x8, _ADV748X_HDMI_SOURCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV748X_HDMI_SOURCE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #1
	bl	_adv748x_csi2_register_link
	cbnz	w0, LBB0_6
; %bb.9:
	str	x19, [x20]
	b	LBB0_6
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registered %s (%s)"

l_.str.1:                               ; @.str.1
	.asciz	"TXA"

l_.str.2:                               ; @.str.2
	.asciz	"TXB"

	.comm	_ADV748X_AFE_SOURCE,4,2         ; @ADV748X_AFE_SOURCE
	.comm	_ADV748X_HDMI_SOURCE,4,2        ; @ADV748X_HDMI_SOURCE
	.no_dead_strip	_adv748x_csi2_registered
.subsections_via_symbols
