	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adv748x_subdev_init            ## -- Begin function adv748x_subdev_init
	.p2align	4, 0x90
_adv748x_subdev_init:                   ## @adv748x_subdev_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rsi
	callq	_v4l2_subdev_init
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%rbx)
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	movl	8(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_v4l2_set_subdevdata
	movl	16(%rbx), %r13d
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r14
	movl	4(%rax), %edi
	callq	_i2c_adapter_id
	movq	(%r12), %rcx
	movl	(%rcx), %r9d
	movq	%r15, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movl	$4, %esi
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_snprintf
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_adv748x_sd_to_csi2
	movl	%eax, %edi
	callq	_is_tx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_adv748x_media_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_adv748x_tx_media_ops@GOTPCREL(%rip), %rax
LBB0_3:
	movq	%rax, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %d-%04x %s"

	.comm	_adv748x_tx_media_ops,4,2       ## @adv748x_tx_media_ops
	.comm	_adv748x_media_ops,4,2          ## @adv748x_media_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adv748x_subdev_init            ; -- Begin function adv748x_subdev_init
	.p2align	2
_adv748x_subdev_init:                   ; @adv748x_subdev_init
	.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	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	mov	x1, x2
	bl	_v4l2_subdev_init
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #36]
	orr	w8, w9, w8
	ldr	x9, [x22, #8]
	ldr	x10, [x9]
	ldr	w10, [x10, #8]
	stp	w10, w8, [x19, #32]
	str	x9, [x19, #24]
	mov	x0, x19
	mov	x1, x22
	bl	_v4l2_set_subdevdata
	ldr	w23, [x19, #16]
	ldp	x9, x8, [x22]
	ldr	x8, [x8]
	ldr	x24, [x8]
	ldr	w0, [x9, #4]
	bl	_i2c_adapter_id
	mov	x4, x0
	ldr	x8, [x22]
	ldr	w5, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	mov	x3, x24
	mov	x6, x20
	bl	_snprintf
	str	w21, [x19, #8]
	mov	x0, x19
	bl	_adv748x_sd_to_csi2
	bl	_is_tx
Lloh5:
	adrp	x8, _adv748x_tx_media_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _adv748x_tx_media_ops@GOTPAGEOFF]
Lloh7:
	adrp	x9, _adv748x_media_ops@GOTPAGE
Lloh8:
	ldr	x9, [x9, _adv748x_media_ops@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [x19]
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %d-%04x %s"

	.comm	_adv748x_tx_media_ops,4,2       ; @adv748x_tx_media_ops
	.comm	_adv748x_media_ops,4,2          ; @adv748x_media_ops
.subsections_via_symbols
