	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_alloc_pipe
_vx_alloc_pipe:                         ## @vx_alloc_pipe
	.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
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	$0, (%r8)
	movq	_CMD_RES_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_vx_init_rmh
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_vx_set_pipe_cmd_params
	movq	_IEC958_AES0_NONAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	(%r15), %eax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_BIT_DATA_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	orl	%eax, (%rcx)
LBB0_3:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_vx_send_msg
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %bl
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movl	%r14d, 4(%rax)
	movl	%r13d, 8(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movl	%ebx, 12(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r12d
	jmp	LBB0_8
LBB0_6:
	movq	_CMD_FREE_PIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_vx_init_rmh
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_vx_set_pipe_cmd_params
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vx_send_msg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_RES_PIPE,4,2               ## @CMD_RES_PIPE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ## @IEC958_AES0_NONAUDIO
	.comm	_BIT_DATA_MODE,4,2              ## @BIT_DATA_MODE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CMD_FREE_PIPE,4,2              ## @CMD_FREE_PIPE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BIT_SKIP_SOUND,4,2             ## @BIT_SKIP_SOUND
	.comm	_underrun_skip_sound,8,3        ## @underrun_skip_sound
	.no_dead_strip	_vx_alloc_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_alloc_pipe
_vx_alloc_pipe:                         ; @vx_alloc_pipe
	.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, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	xzr, [x4]
Lloh0:
	adrp	x8, _CMD_RES_PIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_RES_PIPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vx_init_rmh
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	bl	_vx_set_pipe_cmd_params
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _IEC958_AES0_NONAUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEC958_AES0_NONAUDIO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cset	w24, ne
	cbnz	w21, LBB0_3
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _BIT_DATA_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_DATA_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_vx_send_msg
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x8, x0
	mov	w0, #0
	stp	w20, w21, [x8]
	stp	xzr, xzr, [x8, #16]
	stp	w23, w24, [x8, #8]
	str	x8, [x22]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _CMD_FREE_PIPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_FREE_PIPE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vx_init_rmh
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	bl	_vx_set_pipe_cmd_params
	add	x1, sp, #8
	mov	x0, x19
	bl	_vx_send_msg
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_RES_PIPE,4,2               ; @CMD_RES_PIPE
	.comm	_IEC958_AES0_NONAUDIO,4,2       ; @IEC958_AES0_NONAUDIO
	.comm	_BIT_DATA_MODE,4,2              ; @BIT_DATA_MODE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CMD_FREE_PIPE,4,2              ; @CMD_FREE_PIPE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BIT_SKIP_SOUND,4,2             ; @BIT_SKIP_SOUND
	.comm	_underrun_skip_sound,8,3        ; @underrun_skip_sound
	.no_dead_strip	_vx_alloc_pipe
.subsections_via_symbols
