	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_video_render
_mmalplay_setup_video_render:           ## @mmalplay_setup_video_render
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$0, 12(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_video_render_num@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	_MMAL_PARAMETER_DISPLAYREGION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-132(%rbp), %rsi
	movl	%eax, -128(%rbp)
	movl	$72, -132(%rbp)
	movq	_MMAL_DISPLAY_SET_LAYER@GOTPCREL(%rip), %rdx
	movq	_MMAL_DISPLAY_SET_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movl	%eax, -136(%rbp)
	movq	24(%rdi), %rdx
	addq	$2, %rdx
	movq	%rdx, -72(%rbp)
	movl	16(%rdi), %edx
	movl	%edx, -80(%rbp)
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.3:
	movq	$0, -88(%rbp)
	movabsq	$1099511628288, %rdx            ## imm = 0x10000000200
	movq	%rdx, -104(%rbp)
	shll	$8, %ecx
	movl	%ecx, -96(%rbp)
	movq	_MMAL_DISPLAY_MODE_LETTERBOX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -112(%rbp)
	movq	$0, -120(%rbp)
	movq	_MMAL_DISPLAY_SET_DEST_RECT@GOTPCREL(%rip), %rcx
	movq	_MMAL_DISPLAY_SET_MODE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_MMAL_DISPLAY_SET_FULLSCREEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -136(%rbp)
LBB0_4:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mmal_port_parameter_set
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	%rbx, %r12
	je	LBB0_7
## %bb.5:
	cmpq	(%rax), %r12
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r12, %rbx
	jmp	LBB0_11
LBB0_1:
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_11
LBB0_7:
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.8:
	movq	%rax, %r12
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-60(%rbp), %rsi
	movq	$1, -60(%rbp)
	movq	$0, -52(%rbp)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_mmal_port_parameter_set
	movq	(%r13), %rbx
	cmpq	%rbx, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r15
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r15, %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s doesn't have input ports"

	.comm	_video_render_num,4,2           ## @video_render_num
	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ## @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ## @MMAL_DISPLAY_SET_LAYER
	.comm	_MMAL_DISPLAY_SET_NUM,4,2       ## @MMAL_DISPLAY_SET_NUM
	.comm	_MMAL_DISPLAY_MODE_LETTERBOX,4,2 ## @MMAL_DISPLAY_MODE_LETTERBOX
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ## @MMAL_DISPLAY_SET_DEST_RECT
	.comm	_MMAL_DISPLAY_SET_MODE,4,2      ## @MMAL_DISPLAY_SET_MODE
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ## @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.1:                               ## @.str.1
	.asciz	"could not set video render layer on %s"

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

	.no_dead_strip	_mmalplay_setup_video_render
.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 mmalplay_setup_video_render
lCPI0_0:
	.long	512                             ; 0x200
	.long	256                             ; 0x100
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_mmalplay_setup_video_render:           ; @mmalplay_setup_video_render
	.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
	ldr	w8, [x1, #12]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, _video_render_num@GOTPAGE
Lloh1:
	ldr	x9, [x9, _video_render_num@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w10, w8, #1
	str	w10, [x9]
Lloh2:
	adrp	x9, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMAL_PARAMETER_DISPLAYREGION@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	add	x9, sp, #24
	orr	x1, x9, #0x4
Lloh5:
	adrp	x9, _MMAL_DISPLAY_SET_LAYER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMAL_DISPLAY_SET_LAYER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _MMAL_DISPLAY_SET_NUM@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MMAL_DISPLAY_SET_NUM@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w9, w11, w9
	mov	w11, #72
	stp	w9, w11, [sp, #24]
	ldr	x11, [x0, #24]
	add	x11, x11, #2
	str	x11, [sp, #88]
	ldr	w11, [x0, #16]
	str	w10, [sp, #32]
	str	w11, [sp, #80]
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_3
; %bb.2:
	str	xzr, [sp, #72]
Lloh11:
	adrp	x10, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [sp, #56]
	lsl	w8, w8, #8
	str	w8, [sp, #64]
Lloh13:
	adrp	x8, _MMAL_DISPLAY_MODE_LETTERBOX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMAL_DISPLAY_MODE_LETTERBOX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh16:
	adrp	x8, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_DISPLAY_SET_DEST_RECT@GOTPAGEOFF]
	str	xzr, [sp, #40]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, _MMAL_DISPLAY_SET_MODE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _MMAL_DISPLAY_SET_MODE@GOTPAGEOFF]
Lloh21:
	adrp	x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MMAL_DISPLAY_SET_FULLSCREEN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [sp, #24]
LBB0_3:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_mmal_port_parameter_set
Lloh25:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh26:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x24]
Lloh27:
	adrp	x23, _MMAL_ENOSYS@GOTPAGE
Lloh28:
	ldr	x23, [x23, _MMAL_ENOSYS@GOTPAGEOFF]
	cmp	x0, x21
	b.eq	LBB0_7
; %bb.4:
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x22
	b	LBB0_11
LBB0_6:
Lloh31:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	x21, [x8]
	ldr	w1, [x19, #8]
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_11
LBB0_7:
	ldr	w8, [x20]
	cbnz	w8, LBB0_11
; %bb.8:
Lloh36:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x8, sp
	orr	x1, x8, #0x4
Lloh39:
	adrp	x8, lCPI0_1@PAGE
Lloh40:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [sp, #4]
	stur	xzr, [sp, #12]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_mmal_port_parameter_set
	ldr	x21, [x24]
	cmp	x0, x21
	b.eq	LBB0_11
; %bb.9:
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x20
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh19
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdr	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s doesn't have input ports"

	.comm	_video_render_num,4,2           ; @video_render_num
	.comm	_MMAL_PARAMETER_DISPLAYREGION,4,2 ; @MMAL_PARAMETER_DISPLAYREGION
	.comm	_MMAL_DISPLAY_SET_LAYER,4,2     ; @MMAL_DISPLAY_SET_LAYER
	.comm	_MMAL_DISPLAY_SET_NUM,4,2       ; @MMAL_DISPLAY_SET_NUM
	.comm	_MMAL_DISPLAY_MODE_LETTERBOX,4,2 ; @MMAL_DISPLAY_MODE_LETTERBOX
	.comm	_MMAL_DISPLAY_SET_DEST_RECT,4,2 ; @MMAL_DISPLAY_SET_DEST_RECT
	.comm	_MMAL_DISPLAY_SET_MODE,4,2      ; @MMAL_DISPLAY_SET_MODE
	.comm	_MMAL_DISPLAY_SET_FULLSCREEN,4,2 ; @MMAL_DISPLAY_SET_FULLSCREEN
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.1:                               ; @.str.1
	.asciz	"could not set video render layer on %s"

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

	.no_dead_strip	_mmalplay_setup_video_render
.subsections_via_symbols
