	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_wpf_create                ## -- Begin function vsp1_wpf_create
	.p2align	4, 0x90
_vsp1_wpf_create:                       ## @vsp1_wpf_create
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r15), %rax
	cmpl	$2, (%rax)
	movq	_WPF_GEN3_MAX_HEIGHT@GOTPCREL(%rip), %rax
	cmoveq	_WPF_GEN2_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WPF_GEN3_MAX_WIDTH@GOTPCREL(%rip), %rcx
	cmoveq	_WPF_GEN2_MAX_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	%eax, 24(%rbx)
	movq	_wpf_entity_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_VSP1_ENTITY_WPF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	%r14d, (%rbx)
	leaq	L_.str(%rip), %rsi
	leaq	-38(%rbp), %r12
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_sprintf
	movq	_MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_wpf_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	$2, %ecx
	callq	_vsp1_entity_init
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$64, %edx
	callq	_vsp1_dlm_create
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_wpf_init_controls
	testl	%eax, %eax
	js	LBB0_6
## %bb.11:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_v4l2_ctrl_handler_setup
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movl	%eax, %edi
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
LBB0_7:
	movq	%rbx, %rdi
	callq	_vsp1_entity_destroy
	movl	%r12d, %edi
LBB0_8:
	callq	_ERR_PTR
	movq	%rax, %rbx
LBB0_9:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WPF_GEN2_MAX_WIDTH,4,2         ## @WPF_GEN2_MAX_WIDTH
	.comm	_WPF_GEN2_MAX_HEIGHT,4,2        ## @WPF_GEN2_MAX_HEIGHT
	.comm	_WPF_GEN3_MAX_WIDTH,4,2         ## @WPF_GEN3_MAX_WIDTH
	.comm	_WPF_GEN3_MAX_HEIGHT,4,2        ## @WPF_GEN3_MAX_HEIGHT
	.comm	_wpf_entity_ops,4,2             ## @wpf_entity_ops
	.comm	_VSP1_ENTITY_WPF,4,2            ## @VSP1_ENTITY_WPF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wpf.%u"

	.comm	_wpf_ops,4,2                    ## @wpf_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER
L_.str.1:                               ## @.str.1
	.asciz	"wpf%u: failed to initialize controls\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_wpf_create                ; -- Begin function vsp1_wpf_create
	.p2align	2
_vsp1_wpf_create:                       ; @vsp1_wpf_create
	.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, x1
	mov	x21, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WPF_GEN2_MAX_HEIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPF_GEN2_MAX_HEIGHT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _WPF_GEN3_MAX_HEIGHT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _WPF_GEN3_MAX_HEIGHT@GOTPAGEOFF]
	cmp	w8, #2
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _WPF_GEN2_MAX_WIDTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WPF_GEN2_MAX_WIDTH@GOTPAGEOFF]
Lloh9:
	adrp	x10, _WPF_GEN3_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WPF_GEN3_MAX_WIDTH@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x0, #24]
Lloh11:
	adrp	x8, _wpf_entity_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _wpf_entity_ops@GOTPAGEOFF]
	str	x8, [x0, #8]
Lloh13:
	adrp	x8, _VSP1_ENTITY_WPF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VSP1_ENTITY_WPF@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	stp	w20, w8, [x0]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #10
	mov	x2, x20
	bl	_sprintf
Lloh18:
	adrp	x8, _MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x4, _wpf_ops@GOTPAGE
Lloh22:
	ldr	x4, [x4, _wpf_ops@GOTPAGEOFF]
	add	x2, sp, #10
	mov	x0, x21
	mov	x1, x19
	mov	w3, #2
	bl	_vsp1_entity_init
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #64
	bl	_vsp1_dlm_create
	str	w0, [x19, #20]
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_wpf_init_controls
	tbnz	w0, #31, LBB0_7
; %bb.4:
	add	x0, x19, #16
	bl	_v4l2_ctrl_handler_setup
	b	LBB0_10
LBB0_5:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_7:
	mov	x22, x0
	ldr	w0, [x21]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x19
	bl	_vsp1_entity_destroy
	mov	x0, x22
LBB0_9:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_10:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WPF_GEN2_MAX_WIDTH,4,2         ; @WPF_GEN2_MAX_WIDTH
	.comm	_WPF_GEN2_MAX_HEIGHT,4,2        ; @WPF_GEN2_MAX_HEIGHT
	.comm	_WPF_GEN3_MAX_WIDTH,4,2         ; @WPF_GEN3_MAX_WIDTH
	.comm	_WPF_GEN3_MAX_HEIGHT,4,2        ; @WPF_GEN3_MAX_HEIGHT
	.comm	_wpf_entity_ops,4,2             ; @wpf_entity_ops
	.comm	_VSP1_ENTITY_WPF,4,2            ; @VSP1_ENTITY_WPF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wpf.%u"

	.comm	_wpf_ops,4,2                    ; @wpf_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_PIXEL_FORMATTER
l_.str.1:                               ; @.str.1
	.asciz	"wpf%u: failed to initialize controls\n"

.subsections_via_symbols
