	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_csi2_register_link
_adv748x_csi2_register_link:            ## @adv748x_csi2_register_link
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %r14
	cmpl	$0, 4(%rdx)
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	jne	LBB0_7
LBB0_2:
	leaq	8(%r14), %rdx
	movq	_ADV748X_CSI2_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_4:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_media_create_pad_link
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, (%r14)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV748X_CSI2_SINK,4,2          ## @ADV748X_CSI2_SINK
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.no_dead_strip	_adv748x_csi2_register_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_csi2_register_link
_adv748x_csi2_register_link:            ; @adv748x_csi2_register_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x2, #4]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x1
	mov	x1, x19
	bl	_v4l2_device_register_subdev
	cbnz	w0, LBB0_5
LBB0_2:
	add	x2, x20, #8
Lloh0:
	adrp	x8, _ADV748X_CSI2_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV748X_CSI2_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w4, wzr, w8, eq
	mov	x0, x19
	mov	x1, x22
	bl	_media_create_pad_link
	cbz	w21, LBB0_5
; %bb.3:
	cbnz	w0, LBB0_5
; %bb.4:
	str	x19, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV748X_CSI2_SINK,4,2          ; @ADV748X_CSI2_SINK
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.no_dead_strip	_adv748x_csi2_register_link
.subsections_via_symbols
