	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_drm_irq_install           ## -- Begin function omap_drm_irq_install
	.p2align	4, 0x90
_omap_drm_irq_install:                  ## @omap_drm_irq_install
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	8(%r12), %rax
	movl	(%r12), %edi
	callq	*(%rax)
	movl	%eax, %r15d
	leaq	36(%r12), %rdi
	callq	_spin_lock_init
	leaq	32(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	_DISPC_IRQ_OCP_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	24(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	movq	_omap_underflow_irqs@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	24(%r12), %rdx
	movq	(%r13), %rcx
	movl	%eax, %esi
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.2:
	xorl	%eax, %eax
LBB0_3:
	testb	$1, %sil
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_6
## %bb.5:
	movq	(%rcx,%rax,8), %rax
	orq	%rax, 16(%r12)
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	*40(%rax)
	orq	%rax, 16(%r12)
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_8
LBB0_9:
	movq	8(%r12), %rax
	movl	(%r12), %edi
	callq	*32(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movl	$-1, %esi
	callq	*24(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	callq	*16(%rax)
	movq	8(%r12), %rax
	movl	(%r12), %edi
	movq	_omap_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	$1, (%r14)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%esi, %edi
	andl	$-2, %edi
	xorl	%eax, %eax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rdi
	je	LBB0_3
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rcx,%rax,8), %rbx
	orq	%rbx, 16(%r12)
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, 8(%rdx,%rax,8)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%rcx,%rax,8), %rbx
	orq	%rbx, 16(%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_DISPC_IRQ_OCP_ERR,8,3          ## @DISPC_IRQ_OCP_ERR
	.comm	_omap_underflow_irqs,8,3        ## @omap_underflow_irqs
	.comm	_omap_irq_handler,4,2           ## @omap_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap_drm_irq_install           ; -- Begin function omap_drm_irq_install
	.p2align	2
_omap_drm_irq_install:                  ; @omap_drm_irq_install
	.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, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x22]
	blr	x8
	mov	x20, x0
	add	x0, x22, #36
	bl	_spin_lock_init
	add	x0, x22, #32
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x8, _DISPC_IRQ_OCP_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISPC_IRQ_OCP_ERR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x22, #16]
	ldr	x0, [x22, #24]
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh3:
	adrp	x23, _omap_underflow_irqs@GOTPAGE
Lloh4:
	ldr	x23, [x23, _omap_underflow_irqs@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x21
	bl	_min
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x22, #24]
	ldr	x9, [x23]
	mov	w10, w0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x9]
	ldr	x12, [x22, #16]
	orr	x11, x12, x11
	str	x11, [x22, #16]
	b	LBB0_2
LBB0_5:
	cbz	w20, LBB0_8
; %bb.6:
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #40]
	ldr	w0, [x22]
	mov	x1, x21
	blr	x8
	ldr	x8, [x22, #16]
	orr	x8, x8, x0
	str	x8, [x22, #16]
	add	w21, w21, #1
	cmp	w20, w21
	b.ne	LBB0_7
LBB0_8:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #32]
	ldr	w0, [x22]
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #24]
	ldr	w0, [x22]
	mov	w1, #-1
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #16]
	ldr	w0, [x22]
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	ldr	w0, [x22]
Lloh5:
	adrp	x9, _omap_irq_handler@GOTPAGE
Lloh6:
	ldr	x9, [x9, _omap_irq_handler@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x2, x19
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DISPC_IRQ_OCP_ERR,8,3          ; @DISPC_IRQ_OCP_ERR
	.comm	_omap_underflow_irqs,8,3        ; @omap_underflow_irqs
	.comm	_omap_irq_handler,4,2           ; @omap_irq_handler
.subsections_via_symbols
