	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxp_open
_pxp_open:                              ## @pxp_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	%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, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_v4l2_fh_init
	movq	%r12, (%rbx)
	movq	%r14, 40(%r12)
	movq	%r12, %r15
	addq	$32, %r15
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_pxp_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_ALPHA_COMPONENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	32(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_6
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r15, 8(%r12)
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	_formats@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	24(%r12), %rcx
	movq	_V4L2_M2M_SRC@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rax, 16(%rcx,%rdx,8)
	movabsq	$2061584302720, %rax            ## imm = 0x1E000000280
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rdi
	movl	$640, %esi                      ## imm = 0x280
	callq	_pxp_bytesperline
	movq	24(%r12), %rcx
	movq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 12(%rcx,%rdx,8)
	movq	(%rbx), %rdi
	movl	$640, %esi                      ## imm = 0x280
	movl	$480, %edx                      ## imm = 0x1E0
	callq	_pxp_sizeimage
	movq	24(%r12), %rcx
	movq	(%r13), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 8(%rcx,%rdx,8)
	movq	_V4L2_M2M_DST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	movups	(%rcx,%rdx,8), %xmm0
	movups	%xmm0, (%rcx,%rax,8)
	movq	16(%rcx,%rdx,8), %rdx
	movq	%rdx, 16(%rcx,%rax,8)
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	8(%r14), %edi
	movq	_queue_init@GOTPCREL(%rip), %rdx
	movq	%r12, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_v4l2_fh_exit
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_v4l2_fh_add
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dprintk
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pxp_ctrl_ops,4,2               ## @pxp_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ## @V4L2_CID_ALPHA_COMPONENT
	.comm	_formats,8,3                    ## @formats
	.comm	_V4L2_M2M_SRC,8,3               ## @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ## @V4L2_M2M_DST
	.comm	_V4L2_COLORSPACE_REC709,4,2     ## @V4L2_COLORSPACE_REC709
	.comm	_queue_init,4,2                 ## @queue_init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_pxp_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pxp_open
lCPI0_0:
	.long	640                             ; 0x280
	.long	480                             ; 0x1e0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pxp_open:                              ; @pxp_open
	.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	_video_drvdata
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	bl	_video_devdata
	mov	x1, x0
	mov	x0, x20
	bl	_v4l2_fh_init
	str	x20, [x21]
	str	x19, [x20, #40]
	add	x21, x20, #32
	mov	x0, x21
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh6:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x22, _pxp_ctrl_ops@GOTPAGE
Lloh10:
	ldr	x22, [x22, _pxp_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh14:
	adrp	x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_CID_ALPHA_COMPONENT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #255
	bl	_v4l2_ctrl_new_std
	ldr	w22, [x20, #32]
	cbz	w22, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_6:
	str	x21, [x20, #8]
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
Lloh20:
	adrp	x22, _formats@GOTPAGE
Lloh21:
	ldr	x22, [x22, _formats@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x20, #24]
Lloh22:
	adrp	x23, _V4L2_M2M_SRC@GOTPAGE
Lloh23:
	ldr	x23, [x23, _V4L2_M2M_SRC@GOTPAGEOFF]
	ldr	x10, [x23]
	mov	w24, #24
	madd	x9, x10, x24, x9
	str	x8, [x9, #16]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9]
	ldr	x0, [x22]
	mov	w1, #640
	bl	_pxp_bytesperline
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	madd	x8, x9, x24, x8
	str	w0, [x8, #12]
	ldr	x0, [x22]
	mov	w1, #640
	mov	w2, #480
	bl	_pxp_sizeimage
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	madd	x9, x9, x24, x8
Lloh26:
	adrp	x10, _V4L2_M2M_DST@GOTPAGE
Lloh27:
	ldr	x10, [x10, _V4L2_M2M_DST@GOTPAGEOFF]
	str	w0, [x9, #8]
Lloh28:
	ldr	x10, [x10]
	madd	x8, x10, x24, x8
	ldr	q0, [x9]
	ldr	x9, [x9, #16]
	str	x9, [x8, #16]
	str	q0, [x8]
Lloh29:
	adrp	x8, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	w0, [x19, #8]
Lloh32:
	adrp	x2, _queue_init@GOTPAGE
Lloh33:
	ldr	x2, [x2, _queue_init@GOTPAGEOFF]
	mov	x1, x20
	bl	_v4l2_m2m_ctx_init
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x22, x0
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_fh_exit
LBB0_8:
	mov	x0, x20
	bl	_kfree
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x22
	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_11:
	mov	x0, x20
	bl	_v4l2_fh_add
	add	x0, x19, #4
	bl	_atomic_inc
	ldr	w3, [x20]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dprintk
	mov	w22, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pxp_ctrl_ops,4,2               ; @pxp_ctrl_ops
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_ALPHA_COMPONENT,4,2   ; @V4L2_CID_ALPHA_COMPONENT
	.comm	_formats,8,3                    ; @formats
	.comm	_V4L2_M2M_SRC,8,3               ; @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ; @V4L2_M2M_DST
	.comm	_V4L2_COLORSPACE_REC709,4,2     ; @V4L2_COLORSPACE_REC709
	.comm	_queue_init,4,2                 ; @queue_init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Created instance: %p, m2m_ctx: %p\n"

	.no_dead_strip	_pxp_open
.subsections_via_symbols
