	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_irq_wakeup_video
_bttv_irq_wakeup_video:                 ## @bttv_irq_wakeup_video
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	%rax, %r15
	leaq	8(%rbx), %r14
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	cmpq	%rax, %rdx
	je	LBB0_1
## %bb.6:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.7:
	cmpq	%rdx, 8(%r13)
	je	LBB0_11
## %bb.8:
	movq	_irq_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_10
## %bb.9:
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	(%r14), %rdx
LBB0_10:
	movq	%r15, 16(%rdx)
	movl	(%r12), %eax
	movl	%eax, 8(%rdx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movq	%rdx, %rdi
	callq	_wake_up
	movq	(%rbx), %rax
LBB0_11:
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	cmpq	%rax, (%r13)
	je	LBB0_17
## %bb.13:
	movq	_irq_debug@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	jl	LBB0_16
## %bb.14:
	movl	4(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rdx
	callq	_pr_debug
	movq	%rbx, %r14
	jmp	LBB0_15
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.2:
	cmpq	%rdx, 8(%r13)
	je	LBB0_17
## %bb.3:
	movq	_irq_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.5:
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_15:
	movq	(%r14), %rax
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rdx, %rax
LBB0_16:
	movq	%r15, 16(%rax)
	movl	(%r12), %ecx
	movl	%ecx, 8(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	addq	$4, %rax
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_irq_debug,4,2                  ## @irq_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: wakeup: both=%p\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d: wakeup: top=%p\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d: wakeup: bottom=%p\n"

	.no_dead_strip	_bttv_irq_wakeup_video
.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_video
_bttv_irq_wakeup_video:                 ; @bttv_irq_wakeup_video
	.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, x3
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
	bl	_ktime_get_ns
	mov	x21, x0
	mov	x24, x22
	ldr	x2, [x24, #8]!
	ldr	x8, [x22]
	cmp	x2, x8
	b.eq	LBB0_10
; %bb.1:
	cbz	x2, LBB0_6
; %bb.2:
	ldr	x9, [x23, #8]
	cmp	x9, x2
	b.eq	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _irq_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _irq_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
	ldr	w1, [x20, #4]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x2, [x24]
LBB0_5:
	str	x21, [x2, #16]
	ldr	w8, [x20]
	str	w8, [x2, #8]
	str	w19, [x2]
	add	x0, x2, #4
	bl	_wake_up
	ldr	x8, [x22]
LBB0_6:
	cbz	x8, LBB0_15
; %bb.7:
	ldr	x9, [x23]
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.8:
Lloh5:
	adrp	x9, _irq_debug@GOTPAGE
Lloh6:
	ldr	x9, [x9, _irq_debug@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, #2
	b.lt	LBB0_17
; %bb.9:
	ldr	w1, [x20, #4]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x8
	bl	_pr_debug
	mov	x24, x22
	b	LBB0_14
LBB0_10:
	cbz	x2, LBB0_15
; %bb.11:
	ldr	x8, [x23, #8]
	cmp	x8, x2
	b.eq	LBB0_15
; %bb.12:
Lloh10:
	adrp	x8, _irq_debug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _irq_debug@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.13:
	ldr	w1, [x20, #4]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_14:
	ldr	x8, [x24]
	b	LBB0_17
LBB0_15:
	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
LBB0_16:
	mov	x8, x2
LBB0_17:
	str	x21, [x8, #16]
	ldr	w9, [x20]
	str	w9, [x8, #8]
	str	w19, [x8]
	add	x0, x8, #4
	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	_wake_up
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_irq_debug,4,2                  ; @irq_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: wakeup: both=%p\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d: wakeup: top=%p\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d: wakeup: bottom=%p\n"

	.no_dead_strip	_bttv_irq_wakeup_video
.subsections_via_symbols
