	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pulse_audio_get_devices     ## -- Begin function ff_pulse_audio_get_devices
	.p2align	4, 0x90
_ff_pulse_audio_get_devices:            ## @ff_pulse_audio_get_devices
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	%edx, -96(%rbp)
	movq	%rdi, -72(%rbp)
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movl	$0, (%rdi)
	movq	$0, 8(%rdi)
	leaq	L_.str(%rip), %rcx
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_ff_pulse_audio_connect_context
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	js	LBB0_22
## %bb.2:
	movq	-40(%rbp), %rdi
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_pulse_audio_sink_device_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_pa_context_get_sink_info_list
	jmp	LBB0_5
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	_pulse_audio_source_device_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_pa_context_get_source_info_list
LBB0_5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pa_operation_get_state
	movq	_PA_OPERATION_RUNNING@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_pa_mainloop_iterate
	movq	%rbx, %rdi
	callq	_pa_operation_get_state
	cmpl	(%r15), %eax
	je	LBB0_6
LBB0_8:
	movq	_PA_OPERATION_DONE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_10
## %bb.9:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
LBB0_10:
	movq	%rbx, %rdi
	callq	_pa_operation_unref
	cmpq	$0, -88(%rbp)
	js	LBB0_22
## %bb.11:
	movq	-40(%rbp), %rdi
	movq	_pulse_server_info_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_pa_context_get_server_info
	movq	%rax, %rbx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	callq	_pa_operation_get_state
	cmpl	(%r15), %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_pa_mainloop_iterate
	movq	%rbx, %rdi
	jmp	LBB0_13
LBB0_14:
	cmpl	(%r12), %eax
	je	LBB0_16
## %bb.15:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
LBB0_16:
	movq	%rbx, %rdi
	callq	_pa_operation_unref
	cmpq	$0, -88(%rbp)
	js	LBB0_22
## %bb.17:
	movl	$-1, 4(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_22
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movl	-80(%rbp), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_19
	jmp	LBB0_22
LBB0_20:
	movl	%ebx, 4(%r14)
LBB0_22:
	movl	-80(%rbp), %edi
	callq	_av_free
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_ff_pulse_audio_disconnect_context
	movl	-88(%rbp), %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Query devices"

	.comm	_pulse_audio_sink_device_cb,4,2 ## @pulse_audio_sink_device_cb
	.comm	_pulse_audio_source_device_cb,4,2 ## @pulse_audio_source_device_cb
	.comm	_PA_OPERATION_RUNNING,4,2       ## @PA_OPERATION_RUNNING
	.comm	_PA_OPERATION_DONE,4,2          ## @PA_OPERATION_DONE
	.comm	_AVERROR_EXTERNAL,8,3           ## @AVERROR_EXTERNAL
	.comm	_pulse_server_info_cb,4,2       ## @pulse_server_info_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pulse_audio_get_devices     ; -- Begin function ff_pulse_audio_get_devices
	.p2align	2
_ff_pulse_audio_get_devices:            ; @ff_pulse_audio_get_devices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	stur	xzr, [x29, #-40]
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	str	w2, [sp]
	stp	x0, xzr, [sp, #24]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x2, x1
	mov	x19, x0
	str	wzr, [x0]
	str	xzr, [x0, #8]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	sub	x0, x29, #40
	add	x1, sp, #48
	bl	_ff_pulse_audio_connect_context
	str	x0, [sp, #8]
	tbnz	x0, #63, LBB0_23
; %bb.2:
	ldr	x0, [sp, #48]
	cbz	w20, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _pulse_audio_sink_device_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pulse_audio_sink_device_cb@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_pa_context_get_sink_info_list
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_AVERROR
LBB0_5:
Lloh8:
	adrp	x8, _pulse_audio_source_device_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pulse_audio_source_device_cb@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_pa_context_get_source_info_list
LBB0_6:
	mov	x20, x0
	bl	_pa_operation_get_state
Lloh11:
	adrp	x21, _PA_OPERATION_RUNNING@GOTPAGE
Lloh12:
	ldr	x21, [x21, _PA_OPERATION_RUNNING@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x0, [x29, #-40]
	mov	w1, #1
	mov	x2, #0
	bl	_pa_mainloop_iterate
	mov	x0, x20
	bl	_pa_operation_get_state
	b	LBB0_7
LBB0_9:
Lloh13:
	adrp	x22, _PA_OPERATION_DONE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PA_OPERATION_DONE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.10:
Lloh15:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_11:
	mov	x0, x20
	bl	_pa_operation_unref
	ldr	x8, [sp, #8]
	tbnz	x8, #63, LBB0_23
; %bb.12:
	ldr	x0, [sp, #48]
Lloh18:
	adrp	x8, _pulse_server_info_cb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pulse_server_info_cb@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_pa_context_get_server_info
	mov	x20, x0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	bl	_pa_operation_get_state
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldur	x0, [x29, #-40]
	mov	w1, #1
	mov	x2, #0
	bl	_pa_mainloop_iterate
	mov	x0, x20
	b	LBB0_13
LBB0_15:
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.16:
Lloh21:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [sp, #8]
LBB0_17:
	mov	x0, x20
	bl	_pa_operation_unref
	ldr	x8, [sp, #8]
	tbnz	x8, #63, LBB0_23
; %bb.18:
	mov	w8, #-1
	str	w8, [x19, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x20, #0
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	ldr	w1, [sp, #16]
	bl	_strcmp
	cbz	w0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_20
	b	LBB0_23
LBB0_22:
	str	w20, [x19, #4]
LBB0_23:
	ldr	w0, [sp, #16]
	bl	_av_free
	sub	x0, x29, #40
	add	x1, sp, #48
	bl	_ff_pulse_audio_disconnect_context
	ldr	w0, [sp, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Query devices"

	.comm	_pulse_audio_sink_device_cb,4,2 ; @pulse_audio_sink_device_cb
	.comm	_pulse_audio_source_device_cb,4,2 ; @pulse_audio_source_device_cb
	.comm	_PA_OPERATION_RUNNING,4,2       ; @PA_OPERATION_RUNNING
	.comm	_PA_OPERATION_DONE,4,2          ; @PA_OPERATION_DONE
	.comm	_AVERROR_EXTERNAL,8,3           ; @AVERROR_EXTERNAL
	.comm	_pulse_server_info_cb,4,2       ; @pulse_server_info_cb
.subsections_via_symbols
