	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intr_lookup
_intr_lookup:                           ## @intr_lookup
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_nvectors@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	_powerpc_intrs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %r13
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, (%r13)
	jne	LBB0_5
## %bb.4:
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	jmp	LBB0_23
LBB0_6:
	movq	_M_INTR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$88, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	$0, 24(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rax)
	movq	_INTR_TRIGGER_CONFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movq	_INTR_POLARITY_CONFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	%r14, (%r13)
	movq	$0, 56(%r13)
	movl	$-1, 8(%r13)
	movq	%r13, %rsi
	addq	$32, %rsi
	movups	%xmm0, 40(%r13)
	xorl	%edi, %edi
	callq	_CPU_SETOF
	movq	_num_io_irqs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_18
## %bb.9:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	js	LBB0_18
## %bb.10:
	movq	_powerpc_intrs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r14, (%rbx)
	jne	LBB0_16
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$-1, 8(%r13)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%esi, 8(%r13)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%rsi), %rdi
	cmpq	%rax, %rdi
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rcx, %rsi
	movq	%rdi, %rsi
	jb	LBB0_11
LBB0_18:
	movslq	8(%r13), %rax
	cmpq	$-1, %rax
	je	LBB0_20
## %bb.19:
	movq	_powerpc_intrs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r13, (%rcx,%rax,8)
	movq	_intrcnt_index@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_fetchadd_int
	movq	%rax, 16(%r13)
	movq	_intrcnt@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, 24(%r13)
	movq	(%r13), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	movq	16(%r13), %rsi
	movq	%r14, %rdi
	callq	_intrcnt_setname
	incl	(%r15)
LBB0_20:
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	cmpl	$-1, 8(%r13)
	jne	LBB0_23
## %bb.21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_7:
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_13:
	movq	_intr_table_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
LBB0_22:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_free
	movq	%rbx, %r13
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_intr_table_lock,4,2            ## @intr_table_lock
	.comm	_nvectors,4,2                   ## @nvectors
	.comm	_powerpc_intrs,8,3              ## @powerpc_intrs
	.comm	_M_INTR,4,2                     ## @M_INTR
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_INTR_TRIGGER_CONFORM,4,2       ## @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,4,2      ## @INTR_POLARITY_CONFORM
	.comm	_num_io_irqs,4,2                ## @num_io_irqs
	.comm	_intrcnt_index,4,2              ## @intrcnt_index
	.comm	_intrcnt,8,3                    ## @intrcnt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq%u:"

	.comm	_all_cpus,4,2                   ## @all_cpus
	.no_dead_strip	_intr_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intr_lookup
_intr_lookup:                           ; @intr_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh5:
	adrp	x21, _nvectors@GOTPAGE
Lloh6:
	ldr	x21, [x21, _nvectors@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh7:
	adrp	x23, _powerpc_intrs@GOTPAGE
Lloh8:
	ldr	x23, [x23, _powerpc_intrs@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x23]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x9]
	cbz	x19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x19]
	cmp	x10, x20
	b.ne	LBB0_2
	b	LBB0_19
LBB0_5:
Lloh9:
	adrp	x22, _M_INTR@GOTPAGE
Lloh10:
	ldr	x22, [x22, _M_INTR@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w0, #88
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_19
; %bb.6:
	str	xzr, [x19, #24]
	stp	xzr, xzr, [x19, #72]
Lloh14:
	adrp	x8, _INTR_TRIGGER_CONFORM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTR_TRIGGER_CONFORM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _INTR_POLARITY_CONFORM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INTR_POLARITY_CONFORM@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
	str	x20, [x19]
	stp	xzr, xzr, [x19, #48]
	mov	w8, #-1
	str	w8, [x19, #8]
	add	x1, x19, #32
	str	xzr, [x19, #40]
	mov	w0, #0
	bl	_CPU_SETOF
Lloh20:
	adrp	x8, _num_io_irqs@GOTPAGE
Lloh21:
	ldr	x8, [x8, _num_io_irqs@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:
	ldr	w9, [x21]
	tbnz	w9, #31, LBB0_15
; %bb.8:
	mov	x10, #0
	ldr	x11, [x23]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x11, x10, lsl #3]
	cbz	x24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x12, [x24]
	cmp	x12, x20
	b.ne	LBB0_13
	b	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x19, #8]
	cmn	w12, #1
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	str	w10, [x19, #8]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x12, x10, #1
	cmp	x12, x8
	b.hs	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x10, x9
	mov	x10, x12
	b.lo	LBB0_9
LBB0_15:
	ldrsw	x8, [x19, #8]
	cmn	w8, #1
	b.eq	LBB0_17
; %bb.16:
	ldr	x9, [x23]
	str	x19, [x9, x8, lsl #3]
Lloh23:
	adrp	x0, _intrcnt_index@GOTPAGE
Lloh24:
	ldr	x0, [x0, _intrcnt_index@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_fetchadd_int
Lloh25:
	adrp	x8, _intrcnt@GOTPAGE
Lloh26:
	ldr	x8, [x8, _intrcnt@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x8, x8, x0, lsl #2
	stp	x0, x8, [x19, #16]
	ldr	x2, [x19]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_sprintf
	ldr	x1, [x19, #16]
	add	x0, sp, #8
	bl	_intrcnt_setname
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
LBB0_17:
Lloh30:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	ldr	w8, [x19, #8]
	cmn	w8, #1
	b.ne	LBB0_22
; %bb.18:
	mov	x24, #0
	b	LBB0_21
LBB0_19:
Lloh32:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh33:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	b	LBB0_22
LBB0_20:
Lloh34:
	adrp	x0, _intr_table_lock@GOTPAGE
Lloh35:
	ldr	x0, [x0, _intr_table_lock@GOTPAGEOFF]
	bl	_mtx_unlock
LBB0_21:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_free
	mov	x19, x24
LBB0_22:
	ldr	x8, [sp, #24]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_intr_table_lock,4,2            ; @intr_table_lock
	.comm	_nvectors,4,2                   ; @nvectors
	.comm	_powerpc_intrs,8,3              ; @powerpc_intrs
	.comm	_M_INTR,4,2                     ; @M_INTR
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_INTR_TRIGGER_CONFORM,4,2       ; @INTR_TRIGGER_CONFORM
	.comm	_INTR_POLARITY_CONFORM,4,2      ; @INTR_POLARITY_CONFORM
	.comm	_num_io_irqs,4,2                ; @num_io_irqs
	.comm	_intrcnt_index,4,2              ; @intrcnt_index
	.comm	_intrcnt,8,3                    ; @intrcnt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq%u:"

	.comm	_all_cpus,4,2                   ; @all_cpus
	.no_dead_strip	_intr_lookup
.subsections_via_symbols
