	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dealloc_shaper
_dealloc_shaper:                        ## @dealloc_shaper
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_ZATM_DEV
	movq	%rax, %r12
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.1:
	decq	16(%r12)
	jne	LBB0_4
## %bb.2:
	movl	$-1, (%r12)
LBB0_3:
	movq	%r12, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	%r14d, %edi
	callq	_uPD98401_PS
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_zpeekl
	movq	_uPD98401_PS_E@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r14d, %edi
	callq	_uPD98401_PS
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_zpokel
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 4(%r12)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uPD98401_PS_E,4,2              ## @uPD98401_PS_E
	.no_dead_strip	_dealloc_shaper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dealloc_shaper
_dealloc_shaper:                        ; @dealloc_shaper
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	bl	_ZATM_DEV
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	subs	x8, x8, #1
	str	x8, [x20, #16]
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #-1
	str	w8, [x20]
LBB0_3:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_uPD98401_PS
	mov	x1, x0
	mov	x0, x20
	bl	_zpeekl
Lloh0:
	adrp	x8, _uPD98401_PS_E@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uPD98401_PS_E@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w22, w0, w8
	mov	x0, x19
	bl	_uPD98401_PS
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_zpokel
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w8, #1
	lsl	w8, w8, w19
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_uPD98401_PS_E,4,2              ; @uPD98401_PS_E
	.no_dead_strip	_dealloc_shaper
.subsections_via_symbols
