	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_enable_irq
_pdc_enable_irq:                        ## @pdc_enable_irq
	.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, %r12
	movl	4(%rdi), %edi
	callq	_to_pd
	movq	%rax, %r15
	movl	(%r12), %ebx
	leal	8(%rbx), %r13d
	movq	_CTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dma_readl
	cmpl	$8, %ebx
	movzbl	%r13b, %ecx
	cmovll	%ebx, %ecx
	movl	%eax, %ebx
	btsl	%ecx, %ebx
	btrl	%ecx, %eax
	testl	%r14d, %r14d
	cmovel	%eax, %ebx
	movq	_CTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dma_writel
	movq	%r12, %rdi
	callq	_chan2dev
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL2,4,2                       ## @CTL2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pdc_enable_irq: chan %d -> %x\n"

	.no_dead_strip	_pdc_enable_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_enable_irq
_pdc_enable_irq:                        ; @pdc_enable_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_pd
	mov	x21, x0
	ldr	w8, [x20]
	add	w9, w8, #8
	cmp	w8, #8
	csel	w22, w8, w9, lt
Lloh0:
	adrp	x23, _CTL2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CTL2@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_dma_readl
	mov	w8, #1
	lsl	w8, w8, w22
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w19, w8, w9, eq
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x19
	bl	_dma_writel
	mov	x0, x20
	bl	_chan2dev
	ldr	w2, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL2,4,2                       ; @CTL2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pdc_enable_irq: chan %d -> %x\n"

	.no_dead_strip	_pdc_enable_irq
.subsections_via_symbols
