	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_splitter
_mmalplay_setup_splitter:               ## @mmalplay_setup_splitter
	.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, %r12
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpl	$0, 28(%rsi)
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movq	(%rdi), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_6
## %bb.5:
	movl	24(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_18
LBB0_2:
	movl	24(%r12), %esi
	leaq	L_.str(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_LOG_ERROR
LBB0_18:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, 8(%rdi)
	je	LBB0_8
## %bb.7:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_18
LBB0_8:
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-52(%rbp), %r15
	movl	$1, -52(%rbp)
	movq	$0, -48(%rbp)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_mmal_port_parameter_set
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	%r14, %rax
	je	LBB0_10
## %bb.9:
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.15:
	movq	16(%r12), %rbx
	jmp	LBB0_16
LBB0_10:
	cmpq	$0, (%r12)
	jle	LBB0_18
## %bb.11:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%ebx
	cmpq	%rbx, (%r12)
	jle	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	_mmal_port_parameter_set
	movq	(%r13), %r14
	cmpq	%r14, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.14:
	shlq	$3, %rbx
	addq	8(%r12), %rbx
LBB0_16:
	movq	%rax, %r14
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
	.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"

L_.str.1:                               ## @.str.1
	.asciz	"%s doesn't have enough output ports (%u/%u)"

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

	.no_dead_strip	_mmalplay_setup_splitter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_setup_splitter
_mmalplay_setup_splitter:               ; @mmalplay_setup_splitter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w8, [x1, #28]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.3:
	ldr	w1, [x20, #24]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w1, [x20, #24]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_LOG_ERROR
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _MMAL_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	x19, [x8]
	b	LBB0_6
LBB0_9:
Lloh10:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	add	x9, sp, #16
	orr	x21, x9, #0x4
	mov	w9, #1
	stp	w8, w9, [sp, #16]
	str	xzr, [sp, #24]
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_mmal_port_parameter_set
Lloh13:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	ldr	x19, [x22]
Lloh15:
	adrp	x23, _MMAL_ENOSYS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MMAL_ENOSYS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x19
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_15
; %bb.10:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.11:
	mov	x24, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x24, lsl #3]
	mov	x1, x21
	bl	_mmal_port_parameter_set
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w24, w24, #1
	ldr	x9, [x20]
	cmp	x9, x24
	b.gt	LBB0_12
; %bb.14:
	mov	x19, x8
	b	LBB0_6
LBB0_15:
	ldr	x8, [x20, #16]
	mov	x19, x0
	b	LBB0_17
LBB0_16:
	mov	x19, x0
	ldr	x8, [x20, #8]
	add	x8, x8, x24, lsl #3
LBB0_17:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.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"

l_.str.1:                               ; @.str.1
	.asciz	"%s doesn't have enough output ports (%u/%u)"

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

	.no_dead_strip	_mmalplay_setup_splitter
.subsections_via_symbols
