	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_update_sink_input_info
_pulse_update_sink_input_info:          ## @pulse_update_sink_input_info
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rcx
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ff_pulse_audio_connect_context
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	-48(%rbp), %r12
	movl	(%r14), %edi
	callq	_pa_stream_get_index
	movq	_pulse_audio_sink_input_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_pa_context_get_sink_input_info
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_pa_operation_get_state
	movl	%eax, %ebx
	movq	_PA_OPERATION_RUNNING@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_pa_mainloop_iterate
	movq	%r12, %rdi
	callq	_pa_operation_get_state
	cmpl	(%r13), %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_pa_operation_unref
	movq	_PA_OPERATION_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
LBB0_6:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ff_pulse_audio_disconnect_context
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	jmp	LBB0_10
LBB0_8:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Update sink input information"

	.comm	_pulse_audio_sink_input_cb,4,2  ## @pulse_audio_sink_input_cb
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_PA_OPERATION_RUNNING,4,2       ## @PA_OPERATION_RUNNING
	.comm	_PA_OPERATION_DONE,4,2          ## @PA_OPERATION_DONE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"pa_context_get_sink_input_info failed.\n"

	.no_dead_strip	_pulse_update_sink_input_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_update_sink_input_info
_pulse_update_sink_input_info:          ; @pulse_update_sink_input_info
	.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	x21, x0
	ldr	x19, [x0]
	stp	xzr, xzr, [sp]
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x1, sp
	bl	_ff_pulse_audio_connect_context
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x22, [sp]
	ldr	w0, [x19]
	bl	_pa_stream_get_index
	mov	x1, x0
Lloh2:
	adrp	x8, _pulse_audio_sink_input_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pulse_audio_sink_input_cb@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x21
	bl	_pa_context_get_sink_input_info
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	bl	_pa_operation_get_state
	mov	x22, x0
Lloh5:
	adrp	x23, _PA_OPERATION_RUNNING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PA_OPERATION_RUNNING@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	mov	w1, #1
	mov	x2, #0
	bl	_pa_mainloop_iterate
	mov	x0, x21
	bl	_pa_operation_get_state
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.4:
	mov	x22, x0
LBB0_5:
	mov	x0, x21
	bl	_pa_operation_unref
Lloh7:
	adrp	x8, _PA_OPERATION_DONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PA_OPERATION_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _AVERROR_EXTERNAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w22, w8
	csel	w20, w20, w9, eq
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
LBB0_7:
	add	x0, sp, #8
	mov	x1, sp
	bl	_ff_pulse_audio_disconnect_context
	cbz	w20, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Update sink input information"

	.comm	_pulse_audio_sink_input_cb,4,2  ; @pulse_audio_sink_input_cb
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_PA_OPERATION_RUNNING,4,2       ; @PA_OPERATION_RUNNING
	.comm	_PA_OPERATION_DONE,4,2          ; @PA_OPERATION_DONE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"pa_context_get_sink_input_info failed.\n"

	.no_dead_strip	_pulse_update_sink_input_info
.subsections_via_symbols
