	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_audio_render
_mmalplay_setup_audio_render:           ## @mmalplay_setup_audio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movl	32(%r15), %edi
	movq	_MMAL_PARAMETER_AUDIO_DESTINATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mmal_port_parameter_set_string
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_LOG_INFO
LBB0_3:
	cmpl	$0, 8(%r14)
	je	LBB0_4
LBB0_7:
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.8:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_4:
	movq	24(%r15), %rax
	movq	(%rax), %rdi
	movq	_MMAL_PARAMETER_ZERO_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mmal_port_parameter_set_boolean
	movq	%rax, %rbx
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.5:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_7
## %bb.6:
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_ERROR
	jmp	LBB0_11
LBB0_9:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_ERROR
LBB0_10:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAL_EINVAL,8,3                ## @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_AUDIO_DESTINATION,4,2 ## @MMAL_PARAMETER_AUDIO_DESTINATION
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set audio destination"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s doesn't have a clock port"

	.no_dead_strip	_mmalplay_setup_audio_render
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmalplay_setup_audio_render
_mmalplay_setup_audio_render:           ; @mmalplay_setup_audio_render
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x2, [x0, #16]
Lloh0:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x8, _MMAL_PARAMETER_AUDIO_DESTINATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMAL_PARAMETER_AUDIO_DESTINATION@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_mmal_port_parameter_set_string
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG_INFO
LBB0_3:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
Lloh7:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_mmal_port_parameter_set_boolean
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _MMAL_ENOSYS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_9
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_8
LBB0_7:
	ldr	w1, [x19]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
LBB0_8:
	ldr	x21, [x22]
	b	LBB0_10
LBB0_9:
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_ERROR
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAL_EINVAL,8,3                ; @MMAL_EINVAL
	.comm	_MMAL_PARAMETER_AUDIO_DESTINATION,4,2 ; @MMAL_PARAMETER_AUDIO_DESTINATION
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set audio destination"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s doesn't have a clock port"

	.no_dead_strip	_mmalplay_setup_audio_render
.subsections_via_symbols
