	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_irq
_do_irq:                                ## @do_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	96(%rbx), %r14
	leaq	40(%r14), %rdi
	callq	_lockdep_assert_held
	movl	40(%rbx), %edi
	callq	_ipu_rot_mode_is_irt
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	24(%r14,%rcx,8), %r15
	cmpq	$0, 32(%rbx)
	je	LBB0_4
## %bb.1:
	cmpl	$0, 28(%rbx)
	je	LBB0_2
LBB0_4:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_convert_stop
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_6:
	cmpl	$0, 28(%rbx)
	je	LBB0_7
## %bb.14:
	decq	%rcx
	cmpq	%rcx, %rax
	jae	LBB0_16
## %bb.15:
	movq	80(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	4(%rdx,%rax,4), %r12d
	incq	%rax
	movq	56(%rbx), %r13
	movq	16(%r14), %rdi
	movl	24(%rbx), %esi
	shlq	$4, %rax
	movq	(%rcx,%rax), %rdx
	addq	72(%rbx), %rdx
	callq	_ipu_cpmem_set_buffer
	movl	24(%rbx), %esi
	shlq	$4, %r12
	movq	(%r13,%r12), %rdx
	addq	48(%rbx), %rdx
	movq	%r15, %rdi
	callq	_ipu_cpmem_set_buffer
	movq	16(%r14), %rdi
	movl	24(%rbx), %esi
	callq	_ipu_idmac_select_buffer
	movl	24(%rbx), %esi
	movq	%r15, %rdi
	callq	_ipu_idmac_select_buffer
	xorb	$1, 24(%rbx)
	jmp	LBB0_16
LBB0_2:
	movq	%r12, %rdi
	callq	_convert_stop
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_3:
	movq	%rax, 8(%r12)
	leaq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_list_add_tail
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_run_next
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	%rbx, %rdi
	callq	_ic_settings_changed
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_convert_stop
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_convert_start
	jmp	LBB0_16
LBB0_9:
	movq	80(%rbx), %rcx
	movq	(%rbx), %r13
	movq	16(%rbx), %rax
	movl	(%rax,%r13,4), %r12d
	movq	56(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rdi
	shlq	$4, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rcx,%r13), %rdx
	addq	72(%rbx), %rdx
	xorl	%esi, %esi
	callq	_ipu_cpmem_set_buffer
	shlq	$4, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12), %rdx
	addq	48(%rbx), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ipu_cpmem_set_buffer
	movq	88(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	movq	16(%r14), %rdi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13), %edx
	movl	12(%rax,%r13), %esi
	callq	_ipu_cpmem_set_uv_offset
LBB0_11:
	movq	64(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r12), %edx
	movl	12(%rax,%r12), %esi
	movq	%r15, %rdi
	callq	_ipu_cpmem_set_uv_offset
LBB0_13:
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_ipu_idmac_select_buffer
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ipu_idmac_select_buffer
LBB0_16:
	incq	(%rbx)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_do_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_irq
_do_irq:                                ; @do_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x0
	ldr	x19, [x0, #16]
	ldr	x20, [x19, #96]
	add	x0, x20, #40
	bl	_lockdep_assert_held
	ldr	w0, [x19, #40]
	bl	_ipu_rot_mode_is_irt
	mov	w8, #32
	mov	w9, #24
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x21, [x20, x8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_7
LBB0_2:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_convert_stop
	mov	x8, #0
	b	LBB0_8
LBB0_4:
	ldr	w10, [x19, #28]
	cbz	w10, LBB0_9
; %bb.5:
	sub	x9, x9, #1
	cmp	x8, x9
	b.hs	LBB0_16
; %bb.6:
	add	x8, x8, #1
	ldr	x9, [x19, #16]
	ldr	w22, [x9, x8, lsl #2]
	ldr	x23, [x19, #56]
	ldr	x0, [x20, #16]
	ldr	w1, [x19, #24]
	ldp	x10, x9, [x19, #72]
	lsl	x8, x8, #4
	ldr	x8, [x9, x8]
	add	x2, x8, x10
	bl	_ipu_cpmem_set_buffer
	ldr	w1, [x19, #24]
	ldr	x8, [x19, #48]
	lsl	x9, x22, #4
	ldr	x9, [x23, x9]
	add	x2, x9, x8
	mov	x0, x21
	bl	_ipu_cpmem_set_buffer
	ldr	x0, [x20, #16]
	ldr	w1, [x19, #24]
	bl	_ipu_idmac_select_buffer
	ldr	w1, [x19, #24]
	mov	x0, x21
	bl	_ipu_idmac_select_buffer
	ldr	w8, [x19, #24]
	eor	w8, w8, #0x1
	str	w8, [x19, #24]
	b	LBB0_16
LBB0_7:
	mov	x0, x22
	bl	_convert_stop
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x8, x8
LBB0_8:
	str	x8, [x22, #8]
	add	x1, x20, #8
	mov	x0, x22
	bl	_list_add_tail
	str	xzr, [x20]
	mov	x0, x20
	bl	_run_next
Lloh3:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	mov	x0, x19
	bl	_ic_settings_changed
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x22
	bl	_convert_stop
	ldr	x1, [x19]
	mov	x0, x22
	bl	_convert_start
	b	LBB0_16
LBB0_11:
	ldr	x24, [x19]
	ldr	x8, [x19, #16]
	ldr	w22, [x8, x24, lsl #2]
	ldr	x23, [x19, #56]
	ldr	x0, [x20, #16]
	ldp	x8, x25, [x19, #72]
	lsl	x9, x24, #4
	ldr	x9, [x25, x9]
	add	x2, x9, x8
	mov	w1, #0
	bl	_ipu_cpmem_set_buffer
	ldr	x8, [x19, #48]
	lsl	x9, x22, #4
	ldr	x9, [x23, x9]
	add	x2, x9, x8
	mov	x0, x21
	mov	w1, #0
	bl	_ipu_cpmem_set_buffer
	ldr	x8, [x19, #88]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x0, [x20, #16]
	add	x8, x25, x24, lsl #4
	ldp	w2, w1, [x8, #8]
	bl	_ipu_cpmem_set_uv_offset
LBB0_13:
	ldr	x8, [x19, #64]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	add	x8, x23, x22, lsl #4
	ldp	w2, w1, [x8, #8]
	mov	x0, x21
	bl	_ipu_cpmem_set_uv_offset
LBB0_15:
	ldr	x0, [x20, #16]
	mov	w1, #0
	bl	_ipu_idmac_select_buffer
	mov	x0, x21
	mov	w1, #0
	bl	_ipu_idmac_select_buffer
LBB0_16:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_do_irq
.subsections_via_symbols
