	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_video_decoder
_mmalplay_setup_video_decoder:          ## @mmalplay_setup_video_decoder
	.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
	movq	%rsi, %rbx
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$1, -44(%rbp)
	movq	$0, -40(%rbp)
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	$0, 24(%rsi)
	je	LBB0_6
## %bb.1:
	cmpl	$0, 20(%rbx)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	leaq	-44(%rbp), %r12
	cmpl	$0, 12(%rdi)
	je	LBB0_9
LBB0_3:
	cmpl	$0, 8(%r14)
	je	LBB0_12
## %bb.4:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_6:
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
LBB0_7:
	callq	_LOG_ERROR
LBB0_8:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_mmal_port_parameter_set
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_3
## %bb.10:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_3
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_12:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_mmal_port_parameter_set
	movq	%rax, %r12
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r15, %r12
	je	LBB0_5
## %bb.13:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_5
## %bb.14:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r12, %r15
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s doesn't have input/output ports"

	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ## @MMAL_ENOSYS
L_.str.1:                               ## @.str.1
	.asciz	"failed to set zero copy on %s"

	.no_dead_strip	_mmalplay_setup_video_decoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_setup_video_decoder
_mmalplay_setup_video_decoder:          ; @mmalplay_setup_video_decoder
	.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	x19, x1
Lloh0:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [sp]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x8, sp
	orr	x22, x8, #0x4
	ldr	w8, [x0, #12]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmal_port_parameter_set
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _MMAL_ENOSYS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_9
LBB0_4:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	x21, [x8]
	b	LBB0_8
LBB0_6:
	ldr	w1, [x19, #16]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_11
LBB0_7:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmal_port_parameter_set
Lloh17:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh19:
	ldr	x21, [x8]
Lloh20:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x21
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_11
LBB0_9:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x22
LBB0_11:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s doesn't have input/output ports"

	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.comm	_MMAL_ENOSYS,8,3                ; @MMAL_ENOSYS
l_.str.1:                               ; @.str.1
	.asciz	"failed to set zero copy on %s"

	.no_dead_strip	_mmalplay_setup_video_decoder
.subsections_via_symbols
