	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audioplay_set_dest             ## -- Begin function audioplay_set_dest
	.p2align	4, 0x90
_audioplay_set_dest:                    ## @audioplay_set_dest
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	cmpl	$7, %eax
	ja	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, -56(%rbp)
	movq	_OMX_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movl	(%r14), %edi
	callq	_ILC_GET_HANDLE
	movq	_OMX_IndexConfigBrcmAudioDestination@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_OMX_SetConfig
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
LBB0_3:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_VERSION,4,2                ## @OMX_VERSION
	.comm	_OMX_IndexConfigBrcmAudioDestination,4,2 ## @OMX_IndexConfigBrcmAudioDestination
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audioplay_set_dest             ; -- Begin function audioplay_set_dest
	.p2align	2
_audioplay_set_dest:                    ; @audioplay_set_dest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	cmp	w0, #7
	b.hi	LBB0_3
; %bb.2:
	mov	w21, #24
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _OMX_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMX_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w21, [sp, #8]
	str	w8, [sp, #24]
	ldr	x0, [sp, #16]
	mov	x1, x20
	bl	_strcpy
	ldr	w0, [x19]
	bl	_ILC_GET_HANDLE
Lloh3:
	adrp	x8, _OMX_IndexConfigBrcmAudioDestination@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMX_IndexConfigBrcmAudioDestination@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_OMX_SetConfig
Lloh6:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_VERSION,4,2                ; @OMX_VERSION
	.comm	_OMX_IndexConfigBrcmAudioDestination,4,2 ; @OMX_IndexConfigBrcmAudioDestination
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
.subsections_via_symbols
