	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_brx_create                ## -- Begin function vsp1_brx_create
	.p2align	4, 0x90
_vsp1_brx_create:                       ## @vsp1_brx_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, %r15d
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_VSP1_ENTITY_BRU@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_VI6_BRU_BASE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	movq	_VI6_BRS_BASE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r12)
	movq	_brx_entity_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%r12)
	movl	%r15d, (%r12)
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	incl	%ecx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %r15
	movl	$3, %ecx
LBB0_8:
	movq	_MEDIA_ENT_F_PROC_VIDEO_COMPOSER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_brx_ops@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_vsp1_entity_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r12, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BG_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_brx_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$16777215, %r8d                 ## imm = 0xFFFFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	$0, 32(%r12)
	movq	%rbx, 8(%r12)
	cmpl	$0, 24(%r12)
	je	LBB0_13
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_err
	movl	24(%r12), %ebx
	movq	%r12, %rdi
	callq	_vsp1_entity_destroy
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_13:
	movq	%r12, %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	_VSP1_ENTITY_BRU,4,2            ## @VSP1_ENTITY_BRU
	.comm	_VI6_BRU_BASE,4,2               ## @VI6_BRU_BASE
	.comm	_VI6_BRS_BASE,4,2               ## @VI6_BRS_BASE
	.comm	_brx_entity_ops,4,2             ## @brx_entity_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bru"

L_.str.1:                               ## @.str.1
	.asciz	"brs"

	.comm	_brx_ops,4,2                    ## @brx_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_COMPOSER,4,2 ## @MEDIA_ENT_F_PROC_VIDEO_COMPOSER
	.comm	_brx_ctrl_ops,4,2               ## @brx_ctrl_ops
	.comm	_V4L2_CID_BG_COLOR,4,2          ## @V4L2_CID_BG_COLOR
L_.str.2:                               ## @.str.2
	.asciz	"%s: 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_brx_create                ; -- Begin function vsp1_brx_create
	.p2align	2
_vsp1_brx_create:                       ; @vsp1_brx_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _VSP1_ENTITY_BRU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSP1_ENTITY_BRU@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _VI6_BRU_BASE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VI6_BRU_BASE@GOTPAGEOFF]
Lloh7:
	adrp	x11, _VI6_BRS_BASE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _VI6_BRS_BASE@GOTPAGEOFF]
	cmp	w9, w21
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x0, #40]
Lloh9:
	adrp	x9, _brx_entity_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _brx_entity_ops@GOTPAGEOFF]
	str	x9, [x0, #16]
	str	w21, [x0]
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	add	w3, w8, #1
Lloh11:
	adrp	x21, l_.str@PAGE
Lloh12:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_4:
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	w3, #3
LBB0_5:
Lloh18:
	adrp	x8, _MEDIA_ENT_F_PROC_VIDEO_COMPOSER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEDIA_ENT_F_PROC_VIDEO_COMPOSER@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x4, _brx_ops@GOTPAGE
Lloh22:
	ldr	x4, [x4, _brx_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_vsp1_entity_init
	tbnz	w0, #31, LBB0_8
; %bb.6:
	add	x22, x19, #24
	mov	x0, x22
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
Lloh23:
	adrp	x8, _V4L2_CID_BG_COLOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_CID_BG_COLOR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x1, _brx_ctrl_ops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _brx_ctrl_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #16777215
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	xzr, [x19, #32]
	str	x22, [x19, #8]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_10
; %bb.7:
	ldr	w0, [x20]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	ldr	w22, [x19, #24]
	mov	x0, x19
	bl	_vsp1_entity_destroy
	b	LBB0_9
LBB0_8:
	mov	x22, x0
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VSP1_ENTITY_BRU,4,2            ; @VSP1_ENTITY_BRU
	.comm	_VI6_BRU_BASE,4,2               ; @VI6_BRU_BASE
	.comm	_VI6_BRS_BASE,4,2               ; @VI6_BRS_BASE
	.comm	_brx_entity_ops,4,2             ; @brx_entity_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bru"

l_.str.1:                               ; @.str.1
	.asciz	"brs"

	.comm	_brx_ops,4,2                    ; @brx_ops
	.comm	_MEDIA_ENT_F_PROC_VIDEO_COMPOSER,4,2 ; @MEDIA_ENT_F_PROC_VIDEO_COMPOSER
	.comm	_brx_ctrl_ops,4,2               ; @brx_ctrl_ops
	.comm	_V4L2_CID_BG_COLOR,4,2          ; @V4L2_CID_BG_COLOR
l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to initialize controls\n"

.subsections_via_symbols
