	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmalplay_setup_audio_decoder
_mmalplay_setup_audio_decoder:          ## @mmalplay_setup_audio_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_MMAL_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$0, 32(%rsi)
	je	LBB0_8
## %bb.1:
	cmpl	$0, 28(%r15)
	je	LBB0_8
## %bb.2:
	movq	%rdi, %r14
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.3:
	movq	16(%r15), %rdi
	movq	_MMAL_PARAMETER_AUDIO_PASSTHROUGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MMAL_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mmal_port_parameter_set_boolean
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_LOG_INFO
LBB0_5:
	cmpl	$0, 4(%r14)
	je	LBB0_11
LBB0_6:
	cmpl	$0, (%r14)
	je	LBB0_14
## %bb.7:
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_10
LBB0_8:
	movl	24(%r15), %esi
	leaq	L_.str(%rip), %rdi
LBB0_9:
	callq	_LOG_ERROR
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%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_6
## %bb.12:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_6
## %bb.13:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_14:
	movq	(%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, %r14
	movq	_MMAL_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpq	%rbx, %r14
	je	LBB0_10
## %bb.15:
	movq	_MMAL_ENOSYS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_10
## %bb.16:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_LOG_ERROR
	movq	%r14, %rbx
	jmp	LBB0_10
	.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/output ports"

	.comm	_MMAL_PARAMETER_AUDIO_PASSTHROUGH,4,2 ## @MMAL_PARAMETER_AUDIO_PASSTHROUGH
	.comm	_MMAL_TRUE,4,2                  ## @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ## @MMAL_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"could not set audio passthrough mode"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ## @MMAL_PARAMETER_ZERO_COPY
	.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_audio_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_audio_decoder
_mmalplay_setup_audio_decoder:          ; @mmalplay_setup_audio_decoder
	.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
Lloh0:
	adrp	x8, _MMAL_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMAL_EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	ldr	w8, [x1, #32]
	cbz	w8, LBB0_9
; %bb.1:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x22, _MMAL_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MMAL_SUCCESS@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x8, _MMAL_PARAMETER_AUDIO_PASSTHROUGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMAL_PARAMETER_AUDIO_PASSTHROUGH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_mmal_port_parameter_set_boolean
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_INFO
LBB0_5:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh13:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_mmal_port_parameter_set_boolean
	ldr	x8, [x22]
Lloh19:
	adrp	x9, _MMAL_ENOSYS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_14
LBB0_7:
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.8:
	ldr	x21, [x22]
	b	LBB0_11
LBB0_9:
	ldr	w1, [x19, #24]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_LOG_ERROR
LBB0_11:
	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
LBB0_12:
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh24:
	adrp	x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MMAL_PARAMETER_ZERO_COPY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MMAL_TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MMAL_TRUE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_mmal_port_parameter_set_boolean
	ldr	x21, [x22]
Lloh30:
	adrp	x8, _MMAL_ENOSYS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MMAL_ENOSYS@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x21
	ccmp	x0, x8, #4, ne
	b.eq	LBB0_11
; %bb.13:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_ERROR
	mov	x21, x20
	b	LBB0_11
LBB0_14:
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.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/output ports"

	.comm	_MMAL_PARAMETER_AUDIO_PASSTHROUGH,4,2 ; @MMAL_PARAMETER_AUDIO_PASSTHROUGH
	.comm	_MMAL_TRUE,4,2                  ; @MMAL_TRUE
	.comm	_MMAL_SUCCESS,8,3               ; @MMAL_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"could not set audio passthrough mode"

	.comm	_MMAL_PARAMETER_ZERO_COPY,4,2   ; @MMAL_PARAMETER_ZERO_COPY
	.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_audio_decoder
.subsections_via_symbols
