	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_video_render_create
_test_video_render_create:              ## @test_video_render_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_mmal_component_create
	movl	%eax, (%rbx)
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_4
## %bb.8:
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_MMAL_PARAMETER_DISPLAYREGION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-116(%rbp), %rsi
	movl	%eax, -112(%rbp)
	movl	$48, -116(%rbp)
	movq	_MMAL_DISPLAY_SET_LAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movl	24(%r14), %ecx
	movl	%ecx, -80(%rbp)
	cmpq	$0, 16(%r14)
	je	LBB0_11
## %bb.9:
	leaq	8(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_MMAL_DISPLAY_SET_DEST_RECT@GOTPCREL(%rip), %rdx
	movq	_MMAL_DISPLAY_SET_FULLSCREEN@GOTPCREL(%rip), %rdi
	orl	(%rdx), %eax
	orl	(%rdi), %eax
	movl	%eax, -120(%rbp)
	movq	$0, -88(%rbp)
	movups	(%rcx), %xmm0
	movups	%xmm0, -104(%rbp)
LBB0_11:
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set
	movl	%eax, (%rbx)
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %r13
	cmpl	(%r12), %eax
	je	LBB0_15
## %bb.12:
	cmpl	(%r13), %eax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_15:
	xorl	%eax, %eax
	callq	_enable_zero_copy
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	leaq	-68(%rbp), %rsi
	movq	$1, -68(%rbp)
	movq	$0, -60(%rbp)
	movq	%r15, %rdi
	callq	_mmal_port_parameter_set
	movl	%eax, (%rbx)
	cmpl	(%r12), %eax
	je	LBB0_18
## %bb.17:
	cmpl	(%r13), %eax
	je	LBB0_18
## %bb.25:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_18:
	leaq	L_.str.4(%rip), %rdi
	callq	_LOG_INFO
LBB0_19:
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.20:
	movq	_MMAL_ENCODING_OPAQUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
LBB0_21:
	movq	-48(%rbp), %rdi
	callq	_mmal_component_enable
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	leaq	L_.str.5(%rip), %rdi
LBB0_14:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_5:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_mmal_component_destroy
LBB0_7:
	xorl	%eax, %eax
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	-48(%rbp), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,4,2 ## @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
	.comm	_MMAL_SUCCESS,4,2               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't create video render"

L_.str.1:                               ## @.str.1
	.asciz	"video render doesn't have input ports"

	.comm	_MMAL_EINVAL,4,2                ## @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ## @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ## @MMAL_DISPLAY_SET_LAYER
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ## @MMAL_DISPLAY_SET_DEST_RECT
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ## @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_ENOSYS,4,2                ## @MMAL_ENOSYS
L_.str.2:                               ## @.str.2
	.asciz	"could not set video render display properties (%u)"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
L_.str.3:                               ## @.str.3
	.asciz	"failed to set zero copy on render input"

L_.str.4:                               ## @.str.4
	.asciz	"enabled zero copy on render"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ## @MMAL_ENCODING_OPAQUE
L_.str.5:                               ## @.str.5
	.asciz	"video render component couldn't be enabled (%u)"

	.no_dead_strip	_test_video_render_create
.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 test_video_render_create
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_video_render_create:              ; @test_video_render_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x1
	mov	x20, x0
	stur	xzr, [x29, #-56]
Lloh0:
	adrp	x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sub	x1, x29, #56
	bl	_mmal_component_create
	str	w0, [x19]
Lloh3:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.1:
	ldur	x8, [x29, #-56]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_11
; %bb.2:
	ldr	x8, [x8]
	ldr	x21, [x8]
Lloh5:
	adrp	x8, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
	add	x8, sp, #40
	orr	x1, x8, #0x4
	mov	w10, #48
Lloh8:
	adrp	x8, _MMAL_DISPLAY_SET_LAYER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_DISPLAY_SET_LAYER@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w10, [sp, #40]
	ldr	w10, [x20, #24]
	str	w9, [sp, #48]
	str	w10, [sp, #80]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_5
; %bb.3:
	add	x9, x20, #8
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.4:
Lloh11:
	adrp	x10, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w8, w10, w8
	orr	w8, w8, w11
	str	w8, [sp, #40]
	str	xzr, [sp, #72]
	ldr	q0, [x9]
	stur	q0, [sp, #56]
LBB0_5:
	mov	x0, x21
	bl	_mmal_port_parameter_set
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
	ldr	w8, [x22]
Lloh17:
	adrp	x23, _MMAL_ENOSYS@GOTPAGE
Lloh18:
	ldr	x23, [x23, _MMAL_ENOSYS@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_12
; %bb.6:
	bl	_enable_zero_copy
	cbz	x0, LBB0_14
; %bb.7:
Lloh19:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	add	x8, sp, #16
	orr	x1, x8, #0x4
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #20]
	stur	xzr, [sp, #28]
	mov	x0, x21
	bl	_mmal_port_parameter_set
	str	w0, [x19]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.8:
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.9:
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_10:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_18
LBB0_11:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
Lloh30:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19]
	ldur	x0, [x29, #-56]
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_12:
	str	x0, [sp]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_13:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LOG_INFO
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
; %bb.15:
Lloh37:
	adrp	x8, _MMAL_ENCODING_OPAQUE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MMAL_ENCODING_OPAQUE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	x9, [x21]
	str	w8, [x9]
LBB0_16:
	ldur	x0, [x29, #-56]
	bl	_mmal_component_enable
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
	cbz	w0, LBB0_21
; %bb.17:
	str	x0, [sp]
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_18:
	bl	_LOG_ERROR
	ldur	x0, [x29, #-56]
	cbz	x0, LBB0_20
LBB0_19:
	bl	_mmal_component_destroy
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_21:
	ldur	x0, [x29, #-56]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER,4,2 ; @MMAL_COMPONENT_DEFAULT_VIDEO_RENDERER
	.comm	_MMAL_SUCCESS,4,2               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't create video render"

l_.str.1:                               ; @.str.1
	.asciz	"video render doesn't have input ports"

	.comm	_MMAL_EINVAL,4,2                ; @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ; @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ; @MMAL_DISPLAY_SET_LAYER
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ; @MMAL_DISPLAY_SET_DEST_RECT
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ; @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_ENOSYS,4,2                ; @MMAL_ENOSYS
l_.str.2:                               ; @.str.2
	.asciz	"could not set video render display properties (%u)"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
l_.str.3:                               ; @.str.3
	.asciz	"failed to set zero copy on render input"

l_.str.4:                               ; @.str.4
	.asciz	"enabled zero copy on render"

	.comm	_MMAL_ENCODING_OPAQUE,4,2       ; @MMAL_ENCODING_OPAQUE
l_.str.5:                               ; @.str.5
	.asciz	"video render component couldn't be enabled (%u)"

	.no_dead_strip	_test_video_render_create
.subsections_via_symbols
