	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_irq_wakeup_top
_bttv_irq_wakeup_top:                   ## @bttv_irq_wakeup_top
	.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	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	callq	_spin_lock
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	_RISC_SLOT_O_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_bttv_risc_hook
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movl	%eax, 12(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	_VIDEOBUF_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_wake_up
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RISC_SLOT_O_FIELD,4,2          ## @RISC_SLOT_O_FIELD
	.comm	_VIDEOBUF_DONE,4,2              ## @VIDEOBUF_DONE
	.no_dead_strip	_bttv_irq_wakeup_top
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_irq_wakeup_top
_bttv_irq_wakeup_top:                   ; @bttv_irq_wakeup_top
	.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	x21, x0
	ldr	x20, [x21, #8]!
	cbz	x20, LBB0_2
; %bb.1:
	mov	x19, x0
	bl	_spin_lock
	stp	xzr, xzr, [x21]
Lloh0:
	adrp	x8, _RISC_SLOT_O_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RISC_SLOT_O_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_bttv_risc_hook
	bl	_ktime_get_ns
	str	w0, [x20, #12]
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _VIDEOBUF_DONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEOBUF_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	mov	x0, x20
	bl	_wake_up
	mov	x0, x19
	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	_spin_unlock
LBB0_2:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RISC_SLOT_O_FIELD,4,2          ; @RISC_SLOT_O_FIELD
	.comm	_VIDEOBUF_DONE,4,2              ; @VIDEOBUF_DONE
	.no_dead_strip	_bttv_irq_wakeup_top
.subsections_via_symbols
