	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_video_converter
_mmalplay_setup_video_converter:        ## @mmalplay_setup_video_converter
	.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	$24, %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	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	$1, -52(%rbp)
	movq	$0, -48(%rbp)
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpl	$0, 24(%rsi)
	je	LBB0_5
## %bb.1:
	cmpl	$0, 20(%rbx)
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_8
## %bb.3:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	jmp	LBB0_7
LBB0_5:
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
LBB0_6:
	callq	_LOG_ERROR
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-52(%rbp), %r12
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_mmal_port_parameter_set
	movq	%rax, %r15
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%r13), %r15
	je	LBB0_11
## %bb.9:
	cmpq	(%rax), %r15
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_11:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_mmal_port_parameter_set
	movq	(%r13), %r15
	cmpq	%r15, %rax
	je	LBB0_4
## %bb.12:
	movq	%rax, %r12
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_4
## %bb.13:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r12, %r15
	jmp	LBB0_7
	.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_converter
.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_converter
_mmalplay_setup_video_converter:        ; @mmalplay_setup_video_converter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
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_5
; %bb.1:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_7
LBB0_5:
	ldr	w1, [x19, #16]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_LOG_ERROR
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x8, sp
	orr	x22, x8, #0x4
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmal_port_parameter_set
Lloh11:
	adrp	x24, _MMAL_SUCCESS@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh13:
	adrp	x23, _MMAL_ENOSYS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MMAL_ENOSYS@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_12
; %bb.9:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	x1, x22
	bl	_mmal_port_parameter_set
	ldr	x21, [x24]
	cmp	x0, x21
	b.eq	LBB0_4
; %bb.10:
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.11:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x22
	b	LBB0_7
LBB0_12:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.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_converter
.subsections_via_symbols
