	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyapa_irq
_cyapa_irq:                             ## @cyapa_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	32(%rsi), %r14
	movq	%r14, %rdi
	callq	_device_may_wakeup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pm_wakeup_event
LBB0_2:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*16(%rax)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	cmpl	$0, 24(%rbx)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.6:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync_autosuspend
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_mutex_trylock
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movq	%rbx, %rdi
	callq	_cyapa_reinitialize
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_10
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*8(%rax)
LBB0_10:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cyapa_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyapa_irq
_cyapa_irq:                             ; @cyapa_irq
	.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
	ldr	x20, [x1, #32]
	mov	x0, x20
	bl	_device_may_wakeup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_pm_wakeup_event
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_pm_runtime_get_sync
	mov	x0, x20
	bl	_pm_runtime_mark_last_busy
	mov	x0, x20
	bl	_pm_runtime_put_sync_autosuspend
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	cbz	w21, LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_mutex_trylock
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_cyapa_reinitialize
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	blr	x8
LBB0_10:
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cyapa_irq
.subsections_via_symbols
