	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shadow_and_reallocate_code
_shadow_and_reallocate_code:            ## @shadow_and_reallocate_code
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movl	%edx, %eax
	shrl	$31, %eax
	addl	%edx, %eax
	andl	$-2, %eax
	movl	%edx, %edi
	subl	%eax, %edi
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.4:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	xorl	%edx, %edx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %rax
	movslq	16(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%r12)
	movl	%r15d, (%rax,%rcx,4)
	movslq	16(%r12), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 16(%r12)
	movl	%r13d, (%rax,%rcx,4)
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	cmpl	%r14d, %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_18
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	%edx, %eax
	orl	$1, %eax
	movl	%edx, %ecx
	movl	(%rbx,%rcx,4), %r15d
	addl	$2, %edx
	movl	(%rbx,%rax,4), %r13d
	cmpl	$0, (%r12)
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	shrl	$6, %eax
	andl	$16383, %eax                    ## imm = 0x3FFF
	cmpl	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WIDE_LADD_INSTR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_WIDE_INSTR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_wide_opcodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	andl	$127, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_snd_printdd
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	andl	$1044480, %r13d                 ## imm = 0xFF000
	andl	$32767, %r15d                   ## imm = 0x7FFF
	movl	%r14d, %eax
	shrl	$5, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	orl	%eax, %r13d
	andl	$31, %r14d
	shll	$15, %r14d
	orl	%r14d, %r15d
	shll	$5, %eax
	shrl	$15, %r14d
	orl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_snd_printdd
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	_wide_opcodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_17
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_wide_opcodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rdi,%rbx,4)
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%r13d, %eax
	shll	$5, %eax
	andl	$131040, %eax                   ## imm = 0x1FFE0
	movl	%r15d, %r14d
	sarl	$15, %r14d
	orl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_snd_printdd
	testl	$32768, %r14d                   ## imm = 0x8000
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	(%r12), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%ecx, %r14d
	jmp	LBB0_15
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snd_printdd
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WIDE_LADD_INSTR_MASK,4,2       ## @WIDE_LADD_INSTR_MASK
	.comm	_WIDE_INSTR_MASK,4,2            ## @WIDE_INSTR_MASK
	.comm	_wide_opcodes,8,3               ## @wide_opcodes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle_wideop[1]: %05x:%05x addr %04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"handle_wideop[1]: ROM symbol not reallocated\n"

L_.str.2:                               ## @.str.2
	.asciz	"handle_wideop:[2] %05x:%05x addr %04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"dsp_spos: %d instructions reallocated\n"

	.no_dead_strip	_shadow_and_reallocate_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shadow_and_reallocate_code
_shadow_and_reallocate_code:            ; @shadow_and_reallocate_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x26, [x0]
	and	w8, w2, #0x1
	cmp	w2, #0
	cneg	w0, w8, lt
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_2:
	cbz	w21, LBB0_17
; %bb.3:
	str	w19, [sp, #36]                  ; 4-byte Folded Spill
	mov	w27, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
Lloh3:
	adrp	x28, _wide_opcodes@GOTPAGE
Lloh4:
	ldr	x28, [x28, _wide_opcodes@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #2
	ldr	x8, [x26, #8]
	ldrsw	x9, [x26, #16]
	add	w10, w9, #1
	str	w10, [x26, #16]
	str	w23, [x8, x9, lsl #2]
	ldrsw	x9, [x26, #16]
	add	w10, w9, #1
	str	w10, [x26, #16]
	str	w25, [x8, x9, lsl #2]
	cmp	w27, w21
	b.hs	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	orr	w8, w27, #0x1
	ldr	w23, [x22, w27, uxtw #2]
	ldr	w25, [x22, w8, uxtw #2]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ubfx	w8, w25, #6, #14
	cmp	w8, #1023
	b.hi	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh5:
	adrp	x9, _WIDE_LADD_INSTR_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WIDE_LADD_INSTR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x9, _WIDE_INSTR_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WIDE_INSTR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x28]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	and	w20, w23, #0x7f
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=2
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_snd_printdd
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	and	w25, w25, #0xff000
	and	w23, w23, #0x7fff
	ubfx	w8, w28, #5, #12
	bfxil	w25, w28, #5, #12
	lsl	w9, w28, #15
	bfi	w23, w28, #15, #5
	ubfx	w9, w9, #15, #5
	bfi	w9, w8, #5, #12
	stp	x25, x23, [sp]
	str	x9, [sp, #16]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_snd_printdd
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	w8, w8, #1
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	mov	x28, x21
	ldr	x0, [x21]
                                        ; kill: def $w25 killed $w25 killed $x25 def $x25
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	mov	x21, x19
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	cmp	x24, w0, uxtw
	b.hs	LBB0_4
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x28]
	ldr	w8, [x0, x24, lsl #2]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x19, x21
	mov	x21, x28
	ubfiz	w8, w25, #5, #12
	orr	w28, w8, w23, asr #15
	stp	x25, x23, [sp]
	str	x28, [sp, #16]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
	tbnz	w28, #15, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x26]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	sub	w9, w28, w9
	add	w28, w9, w8, asr #1
	b	LBB0_12
LBB0_17:
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
LBB0_18:
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	str	x19, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_snd_printdd
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WIDE_LADD_INSTR_MASK,4,2       ; @WIDE_LADD_INSTR_MASK
	.comm	_WIDE_INSTR_MASK,4,2            ; @WIDE_INSTR_MASK
	.comm	_wide_opcodes,8,3               ; @wide_opcodes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle_wideop[1]: %05x:%05x addr %04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"handle_wideop[1]: ROM symbol not reallocated\n"

l_.str.2:                               ; @.str.2
	.asciz	"handle_wideop:[2] %05x:%05x addr %04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"dsp_spos: %d instructions reallocated\n"

	.no_dead_strip	_shadow_and_reallocate_code
.subsections_via_symbols
