	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap24xxcam_open
_omap24xxcam_open:                      ## @omap24xxcam_open
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_video_devdata
	movq	_omap24xxcam@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.2:
	movl	(%rax), %eax
	cmpl	%eax, (%rcx)
	jne	LBB0_12
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	12(%rbx), %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.9:
	movq	%rbx, %rdi
	callq	_omap24xxcam_hwinit
	movq	%rbx, %rdi
	callq	_omap24xxcam_sensor_enable
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	callq	_omap24xxcam_poweron_reset
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, 16(%r14)
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	_vidioc_int_g_fmt_cap
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	-40(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	%r14, (%r15)
	movq	%r14, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_omap24xxcam_vbq_ops@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	movq	%r14, %rcx
	pushq	%r14
	pushq	$4
	callq	_videobuf_queue_sg_init
	addq	$16, %rsp
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_omap24xxcam,8,3                ## @omap24xxcam
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_omap24xxcam_vbq_ops,4,2        ## @omap24xxcam_vbq_ops
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.no_dead_strip	_omap24xxcam_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap24xxcam_open
_omap24xxcam_open:                      ; @omap24xxcam_open
	.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	x20, x0
	bl	_video_devdata
Lloh0:
	adrp	x8, _omap24xxcam@GOTPAGE
Lloh1:
	ldr	x8, [x8, _omap24xxcam@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cbz	x21, LBB0_12
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	w9, [x0]
	ldr	w8, [x8]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.5:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_10
; %bb.6:
	add	x0, x21, #12
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.7:
	mov	x0, x21
	bl	_omap24xxcam_hwinit
	mov	x0, x21
	bl	_omap24xxcam_sensor_enable
	cbz	x0, LBB0_15
; %bb.8:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x21
	bl	_omap24xxcam_poweron_reset
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_module_put
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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_15:
	mov	x0, x22
	bl	_mutex_unlock
	str	x21, [x19, #16]
	mov	x0, x22
	bl	_mutex_lock
	ldr	x0, [x21]
	add	x1, sp, #8
	bl	_vidioc_int_g_fmt_cap
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	str	x19, [x20]
	mov	x0, x19
	bl	_spin_lock_init
	add	x0, x19, #4
Lloh10:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
Lloh13:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w5, [x8]
Lloh16:
	adrp	x1, _omap24xxcam_vbq_ops@GOTPAGE
Lloh17:
	ldr	x1, [x1, _omap24xxcam_vbq_ops@GOTPAGEOFF]
	mov	x2, #0
	mov	x3, x19
	mov	w6, #4
	mov	x7, x19
	bl	_videobuf_queue_sg_init
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_omap24xxcam,8,3                ; @omap24xxcam
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_omap24xxcam_vbq_ops,4,2        ; @omap24xxcam_vbq_ops
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.no_dead_strip	_omap24xxcam_open
.subsections_via_symbols
