	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RecursiveSound               ## -- Begin function P_RecursiveSound
	.p2align	4, 0x90
_P_RecursiveSound:                      ## @P_RecursiveSound
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_validcount@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_1
## %bb.2:
	leal	1(%r14), %ecx
	cmpl	%ecx, 8(%r15)
	jg	LBB0_3
	jmp	LBB0_13
LBB0_1:
	leal	1(%r14), %ecx
LBB0_3:
	movq	%rax, (%r15)
	movl	%ecx, 8(%r15)
	movq	_soundtarget@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	cmpl	$0, 12(%r15)
	jle	LBB0_13
## %bb.4:
	xorl	%ebx, %ebx
	movq	_ML_TWOSIDED@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	movl	$1, %esi
	cmovel	%r14d, %esi
	callq	_P_RecursiveSound
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	12(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %r12
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_P_LineOpening
	movq	_openrange@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_sides@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rdx
	movq	(%rax,%rdx,8), %rdi
	cmpq	%r15, %rdi
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_ML_SOUNDBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_12
	jmp	LBB0_11
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_validcount,8,3                 ## @validcount
	.comm	_soundtarget,4,2                ## @soundtarget
	.comm	_ML_TWOSIDED,4,2                ## @ML_TWOSIDED
	.comm	_openrange,8,3                  ## @openrange
	.comm	_sides,8,3                      ## @sides
	.comm	_ML_SOUNDBLOCK,4,2              ## @ML_SOUNDBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RecursiveSound               ; -- Begin function P_RecursiveSound
	.p2align	2
_P_RecursiveSound:                      ; @P_RecursiveSound
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _validcount@GOTPAGE
Lloh1:
	ldr	x8, [x8, _validcount@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w10, [x20, #8]
	add	w9, w19, #1
	cmp	w10, w9
	b.gt	LBB0_3
	b	LBB0_12
LBB0_2:
	add	w9, w19, #1
LBB0_3:
	str	x8, [x20]
	str	w9, [x20, #8]
Lloh3:
	adrp	x8, _soundtarget@GOTPAGE
Lloh4:
	ldr	x8, [x8, _soundtarget@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.4:
	mov	x22, #0
Lloh6:
	adrp	x23, _ML_TWOSIDED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ML_TWOSIDED@GOTPAGEOFF]
Lloh8:
	adrp	x24, _openrange@GOTPAGE
Lloh9:
	ldr	x24, [x24, _openrange@GOTPAGEOFF]
Lloh10:
	adrp	x25, _sides@GOTPAGE
Lloh11:
	ldr	x25, [x25, _sides@GOTPAGEOFF]
Lloh12:
	adrp	x26, _ML_SOUNDBLOCK@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ML_SOUNDBLOCK@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20, #12]
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x21, [x8, x22, lsl #3]
	ldr	w8, [x21]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_P_LineOpening
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x21, #8]
	ldr	x10, [x9]
	ldr	x0, [x8, x10, lsl #3]
	cmp	x0, x20
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x9, #8]
	ldr	x0, [x8, x9, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x26]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w19, #0, #4, ne
	b.ne	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w8, #0
	csinc	w1, w19, wzr, eq
	bl	_P_RecursiveSound
	b	LBB0_5
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_validcount,8,3                 ; @validcount
	.comm	_soundtarget,4,2                ; @soundtarget
	.comm	_ML_TWOSIDED,4,2                ; @ML_TWOSIDED
	.comm	_openrange,8,3                  ; @openrange
	.comm	_sides,8,3                      ; @sides
	.comm	_ML_SOUNDBLOCK,4,2              ; @ML_SOUNDBLOCK
.subsections_via_symbols
