	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pulse_audio_connect_context ## -- Begin function ff_pulse_audio_connect_context
	.p2align	4, 0x90
_ff_pulse_audio_connect_context:        ## @ff_pulse_audio_connect_context
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PULSE_CONTEXT_INITIALIZING@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	callq	_av_assert0
	movq	%r14, %rdi
	callq	_av_assert0
	movq	$0, (%rbx)
	movq	$0, (%r14)
	xorl	%eax, %eax
	callq	_pa_mainloop_new
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rdi
	callq	_pa_mainloop_get_api
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_pa_context_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_pa_state_cb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_pa_context_set_state_callback
	movq	(%r14), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pa_context_connect
	testq	%rax, %rax
	js	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %eax
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_pa_mainloop_iterate
	jmp	LBB0_6
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_7:
	movq	_PULSE_CONTEXT_FINISHED@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	(%rcx), %eax
	jne	LBB0_10
LBB0_8:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ff_pulse_audio_disconnect_context
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PULSE_CONTEXT_INITIALIZING,4,2 ## @PULSE_CONTEXT_INITIALIZING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_pa_state_cb,4,2                ## @pa_state_cb
	.comm	_PULSE_CONTEXT_FINISHED,4,2     ## @PULSE_CONTEXT_FINISHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pulse_audio_connect_context ; -- Begin function ff_pulse_audio_connect_context
	.p2align	2
_ff_pulse_audio_connect_context:        ; @ff_pulse_audio_connect_context
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _PULSE_CONTEXT_INITIALIZING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PULSE_CONTEXT_INITIALIZING@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp, #12]
	bl	_av_assert0
	mov	x0, x19
	bl	_av_assert0
	str	xzr, [x20]
	str	xzr, [x19]
	bl	_pa_mainloop_new
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_pa_mainloop_get_api
	cbz	x0, LBB0_8
; %bb.2:
	mov	x1, x22
	bl	_pa_context_new
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.3:
Lloh2:
	adrp	x8, _pa_state_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pa_state_cb@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pa_context_set_state_callback
	ldr	x0, [x19]
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_pa_context_connect
	tbnz	x0, #63, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20]
	mov	w1, #1
	mov	x2, #0
	bl	_pa_mainloop_iterate
	b	LBB0_4
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_7:
Lloh8:
	adrp	x9, _PULSE_CONTEXT_FINISHED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PULSE_CONTEXT_FINISHED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_8:
Lloh11:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_ff_pulse_audio_disconnect_context
LBB0_11:
	mov	x0, x21
	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
LBB0_12:
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PULSE_CONTEXT_INITIALIZING,4,2 ; @PULSE_CONTEXT_INITIALIZING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_pa_state_cb,4,2                ; @pa_state_cb
	.comm	_PULSE_CONTEXT_FINISHED,4,2     ; @PULSE_CONTEXT_FINISHED
.subsections_via_symbols
