	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdc_irq_set_wake
_pdc_irq_set_wake:                      ## @pdc_irq_set_wake
	.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, %rbx
	callq	_irqd_to_priv
	movq	%rax, %r12
	movslq	(%rbx), %r15
	movl	$65536, %ebx                    ## imm = 0x10000
	movl	%r15d, %ecx
	shll	%cl, %ebx
	leaq	16(%rax), %r13
	movq	%r13, %rdi
	callq	_raw_spin_lock
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	(%r12), %ebx
	jmp	LBB0_3
LBB0_2:
	notl	%ebx
	andl	(%r12), %ebx
LBB0_3:
	movl	%ebx, (%r12)
	movq	_PDC_IRQ_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_pdc_write
	movq	%r13, %rdi
	callq	_raw_spin_unlock
	movl	%r15d, %edi
	callq	_hwirq_is_syswake
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	addq	$4, %r12
	jmp	LBB0_6
LBB0_5:
	shlq	$2, %r15
	addq	8(%r12), %r15
	movq	%r15, %r12
LBB0_6:
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_irq_set_irq_wake
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_IRQ_ROUTE,4,2              ## @PDC_IRQ_ROUTE
	.no_dead_strip	_pdc_irq_set_wake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdc_irq_set_wake
_pdc_irq_set_wake:                      ; @pdc_irq_set_wake
	.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	x21, x0
	bl	_irqd_to_priv
	mov	x20, x0
	ldr	w8, [x21]
	sxtw	x21, w8
	mov	w8, #65536
	lsl	w23, w8, w21
	add	x22, x0, #16
	mov	x0, x22
	bl	_raw_spin_lock
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	orr	w2, w8, w23
	b	LBB0_3
LBB0_2:
	ldr	w8, [x20]
	bic	w2, w8, w23
LBB0_3:
	str	w2, [x20]
Lloh0:
	adrp	x8, _PDC_IRQ_ROUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PDC_IRQ_ROUTE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pdc_write
	mov	x0, x22
	bl	_raw_spin_unlock
	mov	x0, x21
	bl	_hwirq_is_syswake
	cbz	x0, LBB0_5
; %bb.4:
	add	x8, x20, #4
	b	LBB0_6
LBB0_5:
	ldr	x8, [x20, #8]
	add	x8, x8, x21, lsl #2
LBB0_6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_irq_set_irq_wake
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_IRQ_ROUTE,4,2              ; @PDC_IRQ_ROUTE
	.no_dead_strip	_pdc_irq_set_wake
.subsections_via_symbols
