	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syswake_irq_set_type
_syswake_irq_set_type:                  ## @syswake_irq_set_type
	.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
	callq	_irqd_to_priv
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_hwirq_to_syswake
	movl	%eax, %ebx
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.syswake_irq_set_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r13d
	movq	%r15, %rdi
	callq	_raw_spin_lock
	movq	_PDC_SYS_WAKE_BASE@GOTPCREL(%rip), %rax
	movq	_PDC_SYS_WAKE_STRIDE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pdc_read
	movq	_PDC_SYS_WAKE_INT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_PDC_SYS_WAKE_INT_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	orl	%edx, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	callq	_pdc_write
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_irq_setup_alt_chip
	movq	%r15, %rdi
	callq	_raw_spin_unlock
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDC_SYS_WAKE_INT_CHANGE,4,2    ## @PDC_SYS_WAKE_INT_CHANGE
	.comm	_PDC_SYS_WAKE_INT_UP,4,2        ## @PDC_SYS_WAKE_INT_UP
	.comm	_PDC_SYS_WAKE_INT_DOWN,4,2      ## @PDC_SYS_WAKE_INT_DOWN
	.comm	_PDC_SYS_WAKE_INT_HIGH,4,2      ## @PDC_SYS_WAKE_INT_HIGH
	.comm	_PDC_SYS_WAKE_INT_LOW,4,2       ## @PDC_SYS_WAKE_INT_LOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PDC_SYS_WAKE_BASE,4,2          ## @PDC_SYS_WAKE_BASE
	.comm	_PDC_SYS_WAKE_STRIDE,4,2        ## @PDC_SYS_WAKE_STRIDE
	.comm	_PDC_SYS_WAKE_INT_MODE,4,2      ## @PDC_SYS_WAKE_INT_MODE
	.comm	_PDC_SYS_WAKE_INT_MODE_SHIFT,4,2 ## @PDC_SYS_WAKE_INT_MODE_SHIFT
	.no_dead_strip	_syswake_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.syswake_irq_set_type
l_switch.table.syswake_irq_set_type:
	.quad	_PDC_SYS_WAKE_INT_LOW
	.quad	_PDC_SYS_WAKE_INT_HIGH
	.quad	_PDC_SYS_WAKE_INT_UP
	.quad	_PDC_SYS_WAKE_INT_DOWN
	.quad	_PDC_SYS_WAKE_INT_CHANGE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syswake_irq_set_type
_syswake_irq_set_type:                  ; @syswake_irq_set_type
	.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
	bl	_irqd_to_priv
	mov	x21, x0
	ldr	w0, [x20]
	bl	_hwirq_to_syswake
	sub	w8, w19, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x9, l_switch.table.syswake_irq_set_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.syswake_irq_set_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w23, [x8]
	mov	x0, x21
	bl	_raw_spin_lock
Lloh2:
	adrp	x8, _PDC_SYS_WAKE_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDC_SYS_WAKE_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PDC_SYS_WAKE_STRIDE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PDC_SYS_WAKE_STRIDE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	madd	w22, w9, w22, w8
	mov	x0, x21
	mov	x1, x22
	bl	_pdc_read
Lloh8:
	adrp	x8, _PDC_SYS_WAKE_INT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PDC_SYS_WAKE_INT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh11:
	adrp	x9, _PDC_SYS_WAKE_INT_MODE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PDC_SYS_WAKE_INT_MODE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x22
	bl	_pdc_write
	mov	x0, x20
	mov	x1, x19
	bl	_irq_setup_alt_chip
	mov	x0, x21
	bl	_raw_spin_unlock
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PDC_SYS_WAKE_INT_CHANGE,4,2    ; @PDC_SYS_WAKE_INT_CHANGE
	.comm	_PDC_SYS_WAKE_INT_UP,4,2        ; @PDC_SYS_WAKE_INT_UP
	.comm	_PDC_SYS_WAKE_INT_DOWN,4,2      ; @PDC_SYS_WAKE_INT_DOWN
	.comm	_PDC_SYS_WAKE_INT_HIGH,4,2      ; @PDC_SYS_WAKE_INT_HIGH
	.comm	_PDC_SYS_WAKE_INT_LOW,4,2       ; @PDC_SYS_WAKE_INT_LOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PDC_SYS_WAKE_BASE,4,2          ; @PDC_SYS_WAKE_BASE
	.comm	_PDC_SYS_WAKE_STRIDE,4,2        ; @PDC_SYS_WAKE_STRIDE
	.comm	_PDC_SYS_WAKE_INT_MODE,4,2      ; @PDC_SYS_WAKE_INT_MODE
	.comm	_PDC_SYS_WAKE_INT_MODE_SHIFT,4,2 ; @PDC_SYS_WAKE_INT_MODE_SHIFT
	.no_dead_strip	_syswake_irq_set_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.syswake_irq_set_type
l_switch.table.syswake_irq_set_type:
	.quad	_PDC_SYS_WAKE_INT_LOW
	.quad	_PDC_SYS_WAKE_INT_HIGH
	.quad	_PDC_SYS_WAKE_INT_UP
	.quad	_PDC_SYS_WAKE_INT_DOWN
	.quad	_PDC_SYS_WAKE_INT_CHANGE

.subsections_via_symbols
