	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc440spe_adma_release_irqs
_ppc440spe_adma_release_irqs:           ## @ppc440spe_adma_release_irqs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_PPC440SPE_XOR_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	32(%r15), %rdi
	callq	_ioread32be
	movq	_XOR_IE_CBCIE_BIT@GOTPCREL(%rip), %rcx
	movq	_XOR_IE_ICBIE_BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	movq	_XOR_IE_ICIE_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_XOR_IE_RPTIE_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	32(%r15), %rsi
	callq	_iowrite32be
	jmp	LBB0_3
LBB0_2:
	movq	_PPC440SPE_DMA0_ID@GOTPCREL(%rip), %rcx
	movq	_I2O_IOPIM_P0SNE@GOTPCREL(%rip), %rdx
	movq	_I2O_IOPIM_P1SNE@GOTPCREL(%rip), %rsi
	movq	_I2O_IOPIM_P0EM@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movq	_I2O_IOPIM_P1EM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	orl	(%rdx), %edi
	orl	(%rsi), %ebx
	cmpq	(%rcx), %rax
	cmovel	%edi, %ebx
	movq	24(%r15), %rdi
	callq	_ioread32
	orl	%eax, %ebx
	movq	24(%r15), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
LBB0_3:
	movq	8(%r15), %rdi
	movq	%r14, %rsi
	callq	_free_irq
	movq	8(%r15), %rdi
	callq	_irq_dispose_mapping
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.4:
	movq	%r14, %rsi
	callq	_free_irq
	movq	_ppc440spe_adma_err_irq_ref@GOTPCREL(%rip), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	16(%r15), %rdi
	callq	_irq_dispose_mapping
	movq	24(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iounmap                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC440SPE_XOR_ID,8,3           ## @PPC440SPE_XOR_ID
	.comm	_XOR_IE_CBCIE_BIT,4,2           ## @XOR_IE_CBCIE_BIT
	.comm	_XOR_IE_ICBIE_BIT,4,2           ## @XOR_IE_ICBIE_BIT
	.comm	_XOR_IE_ICIE_BIT,4,2            ## @XOR_IE_ICIE_BIT
	.comm	_XOR_IE_RPTIE_BIT,4,2           ## @XOR_IE_RPTIE_BIT
	.comm	_PPC440SPE_DMA0_ID,8,3          ## @PPC440SPE_DMA0_ID
	.comm	_I2O_IOPIM_P0SNE,4,2            ## @I2O_IOPIM_P0SNE
	.comm	_I2O_IOPIM_P0EM,4,2             ## @I2O_IOPIM_P0EM
	.comm	_I2O_IOPIM_P1SNE,4,2            ## @I2O_IOPIM_P1SNE
	.comm	_I2O_IOPIM_P1EM,4,2             ## @I2O_IOPIM_P1EM
	.comm	_ppc440spe_adma_err_irq_ref,4,2 ## @ppc440spe_adma_err_irq_ref
	.no_dead_strip	_ppc440spe_adma_release_irqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc440spe_adma_release_irqs
_ppc440spe_adma_release_irqs:           ; @ppc440spe_adma_release_irqs
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PPC440SPE_XOR_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PPC440SPE_XOR_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19, #32]
	bl	_ioread32be
Lloh3:
	adrp	x8, _XOR_IE_CBCIE_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XOR_IE_CBCIE_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _XOR_IE_ICBIE_BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XOR_IE_ICBIE_BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _XOR_IE_ICIE_BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XOR_IE_ICIE_BIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _XOR_IE_RPTIE_BIT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XOR_IE_RPTIE_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w0, w0, w8
	ldr	x1, [x19, #32]
	bl	_iowrite32be
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x9, _PPC440SPE_DMA0_ID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PPC440SPE_DMA0_ID@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _I2O_IOPIM_P0SNE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _I2O_IOPIM_P0SNE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _I2O_IOPIM_P1SNE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _I2O_IOPIM_P1SNE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
Lloh24:
	adrp	x12, _I2O_IOPIM_P0EM@GOTPAGE
Lloh25:
	ldr	x12, [x12, _I2O_IOPIM_P0EM@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
Lloh27:
	adrp	x13, _I2O_IOPIM_P1EM@GOTPAGE
Lloh28:
	ldr	x13, [x13, _I2O_IOPIM_P1EM@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
	orr	w10, w12, w10
	orr	w11, w13, w11
	cmp	x8, x9
	csel	w21, w10, w11, eq
	ldr	x0, [x19, #24]
	bl	_ioread32
	orr	w0, w0, w21
	ldr	x1, [x19, #24]
	bl	_iowrite32
LBB0_3:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_free_irq
	ldr	x0, [x19, #8]
	bl	_irq_dispose_mapping
	ldr	x0, [x19, #16]
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x1, x20
	bl	_free_irq
Lloh30:
	adrp	x0, _ppc440spe_adma_err_irq_ref@GOTPAGE
Lloh31:
	ldr	x0, [x0, _ppc440spe_adma_err_irq_ref@GOTPAGEOFF]
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]
	bl	_irq_dispose_mapping
	ldr	x0, [x19, #24]
	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
	b	_iounmap
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC440SPE_XOR_ID,8,3           ; @PPC440SPE_XOR_ID
	.comm	_XOR_IE_CBCIE_BIT,4,2           ; @XOR_IE_CBCIE_BIT
	.comm	_XOR_IE_ICBIE_BIT,4,2           ; @XOR_IE_ICBIE_BIT
	.comm	_XOR_IE_ICIE_BIT,4,2            ; @XOR_IE_ICIE_BIT
	.comm	_XOR_IE_RPTIE_BIT,4,2           ; @XOR_IE_RPTIE_BIT
	.comm	_PPC440SPE_DMA0_ID,8,3          ; @PPC440SPE_DMA0_ID
	.comm	_I2O_IOPIM_P0SNE,4,2            ; @I2O_IOPIM_P0SNE
	.comm	_I2O_IOPIM_P0EM,4,2             ; @I2O_IOPIM_P0EM
	.comm	_I2O_IOPIM_P1SNE,4,2            ; @I2O_IOPIM_P1SNE
	.comm	_I2O_IOPIM_P1EM,4,2             ; @I2O_IOPIM_P1EM
	.comm	_ppc440spe_adma_err_irq_ref,4,2 ; @ppc440spe_adma_err_irq_ref
	.no_dead_strip	_ppc440spe_adma_release_irqs
.subsections_via_symbols
