	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_drif_sdr_probe
_rcar_drif_sdr_probe:                   ## @rcar_drif_sdr_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rcar_drif_set_default_format
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_2:
	movq	_RCAR_DRIF_DEFAULT_HWBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	leaq	88(%rbx), %rdi
	callq	_mutex_init
	leaq	84(%rbx), %rdi
	callq	_mutex_init
	leaq	80(%rbx), %rdi
	callq	_spin_lock_init
	leaq	76(%rbx), %rdi
	callq	_spin_lock_init
	leaq	72(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_V4L2_BUF_TYPE_SDR_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %rdi
	movl	%eax, 64(%rbx)
	movq	_VB2_READ@GOTPCREL(%rip), %rax
	movq	_VB2_MMAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VB2_DMABUF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	%rbx, 56(%rbx)
	movl	$4, 28(%rbx)
	movq	_rcar_drif_vb2_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_vb2_vmalloc_memops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	callq	_vb2_queue_init
	movl	16(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_rcar_drif_parse_subdevs
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movq	%rbx, %rdi
	callq	_v4l2_device_unregister
	jmp	LBB0_11
LBB0_8:
	leaq	8(%rbx), %r15
	movq	_rcar_drif_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_v4l2_async_notifier_register
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_11
## %bb.9:
	movl	16(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set default format\n"

	.comm	_RCAR_DRIF_DEFAULT_HWBUF_SIZE,4,2 ## @RCAR_DRIF_DEFAULT_HWBUF_SIZE
	.comm	_V4L2_BUF_TYPE_SDR_CAPTURE,4,2  ## @V4L2_BUF_TYPE_SDR_CAPTURE
	.comm	_VB2_READ,4,2                   ## @VB2_READ
	.comm	_VB2_MMAP,4,2                   ## @VB2_MMAP
	.comm	_VB2_DMABUF,4,2                 ## @VB2_DMABUF
	.comm	_rcar_drif_vb2_ops,4,2          ## @rcar_drif_vb2_ops
	.comm	_vb2_vmalloc_memops,4,2         ## @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ## @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
L_.str.1:                               ## @.str.1
	.asciz	"failed: vb2_queue_init ret %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed: v4l2_device_register ret %d\n"

	.comm	_rcar_drif_notify_ops,4,2       ## @rcar_drif_notify_ops
L_.str.3:                               ## @.str.3
	.asciz	"failed: notifier register ret %d\n"

	.no_dead_strip	_rcar_drif_sdr_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_drif_sdr_probe
_rcar_drif_sdr_probe:                   ; @rcar_drif_sdr_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_rcar_drif_set_default_format
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_2:
Lloh2:
	adrp	x8, _RCAR_DRIF_DEFAULT_HWBUF_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCAR_DRIF_DEFAULT_HWBUF_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #92]
	add	x0, x19, #88
	bl	_mutex_init
	add	x0, x19, #84
	bl	_mutex_init
	add	x0, x19, #80
	bl	_spin_lock_init
	add	x0, x19, #76
	bl	_spin_lock_init
	add	x0, x19, #72
	bl	_INIT_LIST_HEAD
Lloh5:
	adrp	x8, _V4L2_BUF_TYPE_SDR_CAPTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_BUF_TYPE_SDR_CAPTURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #64]
Lloh8:
	adrp	x8, _VB2_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VB2_READ@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _VB2_MMAP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VB2_MMAP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _VB2_DMABUF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VB2_DMABUF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	mov	x0, x19
	str	w8, [x0, #24]!
	str	x19, [x19, #56]
	mov	w8, #4
Lloh17:
	adrp	x9, _rcar_drif_vb2_ops@GOTPAGE
Lloh18:
	ldr	x9, [x9, _rcar_drif_vb2_ops@GOTPAGEOFF]
Lloh19:
	adrp	x10, _vb2_vmalloc_memops@GOTPAGE
Lloh20:
	ldr	x10, [x10, _vb2_vmalloc_memops@GOTPAGEOFF]
	stp	x10, x9, [x19, #40]
Lloh21:
	adrp	x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #28]
	bl	_vb2_queue_init
	mov	x20, x0
	ldr	w0, [x19, #16]
	cbz	w20, LBB0_4
; %bb.3:
	str	x20, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_4:
	mov	x1, x19
	bl	_v4l2_device_register
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
	ldr	w0, [x19, #16]
	str	x20, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_rcar_drif_parse_subdevs
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_v4l2_device_unregister
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _rcar_drif_notify_ops@GOTPAGE
Lloh29:
	ldr	x8, [x8, _rcar_drif_notify_ops@GOTPAGEOFF]
	mov	x21, x19
	str	x8, [x21, #8]!
	mov	x0, x19
	mov	x1, x21
	bl	_v4l2_async_notifier_register
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	w0, [x19, #16]
	mov	x8, x20
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x0, x21
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set default format\n"

	.comm	_RCAR_DRIF_DEFAULT_HWBUF_SIZE,4,2 ; @RCAR_DRIF_DEFAULT_HWBUF_SIZE
	.comm	_V4L2_BUF_TYPE_SDR_CAPTURE,4,2  ; @V4L2_BUF_TYPE_SDR_CAPTURE
	.comm	_VB2_READ,4,2                   ; @VB2_READ
	.comm	_VB2_MMAP,4,2                   ; @VB2_MMAP
	.comm	_VB2_DMABUF,4,2                 ; @VB2_DMABUF
	.comm	_rcar_drif_vb2_ops,4,2          ; @rcar_drif_vb2_ops
	.comm	_vb2_vmalloc_memops,4,2         ; @vb2_vmalloc_memops
	.comm	_V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,2 ; @V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
l_.str.1:                               ; @.str.1
	.asciz	"failed: vb2_queue_init ret %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed: v4l2_device_register ret %d\n"

	.comm	_rcar_drif_notify_ops,4,2       ; @rcar_drif_notify_ops
l_.str.3:                               ; @.str.3
	.asciz	"failed: notifier register ret %d\n"

	.no_dead_strip	_rcar_drif_sdr_probe
.subsections_via_symbols
