	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psycho_find_intrmap
_psycho_find_intrmap:                   ## @psycho_find_intrmap
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_PSYCHO_MAX_INO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_device_printf
	xorl	%eax, %eax
	jmp	LBB0_30
LBB0_2:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	_PSR_OBIO_INT_DIAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_PSYCHO_READ8
	movl	%eax, %r13d
	movq	_PSR_SCSI_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PSR_PWRMGT_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jle	LBB0_3
LBB0_12:
	movq	_PSR_PCI_INT_DIAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_PSYCHO_READ8
	movl	%eax, %r13d
	movq	_PSR_PCIA0_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PSR_PCIA0_INT_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_PSR_PCIB3_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jg	LBB0_21
## %bb.13:
	negq	%r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$8, %rbx
	sarl	$8, %r13d
	addq	$-32, %r12
	cmpq	%rax, %rbx
	jg	LBB0_20
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	_PSYCHO_MODE_PSYCHO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_PSR_PCIA2_INT_MAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_PSR_PCIA3_INT_MAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_PSYCHO_READ8
	xorl	%r14d, %eax
	testb	$60, %al
	je	LBB0_31
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_PSR_PCIB3_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_19
LBB0_3:
	movq	_PSR_SCSI_INT_CLR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %rbx
	addq	$8, %r12
	sarl	$2, %r13d
	cmpq	%rax, %rbx
	jg	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	_PSYCHO_MODE_SABRE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PSR_TIMER0_INT_MAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PSR_TIMER1_INT_MAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PSR_PCIBERR_INT_MAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %rbx
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_PSYCHO_READ8
	movl	%eax, %edi
	callq	_INTINO
	cmpl	%r14d, %eax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PSR_PWRMGT_INT_MAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_20:
	negq	%r12
LBB0_21:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_26
LBB0_25:
	movq	%rbx, (%rcx)
LBB0_26:
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	%r12, (%rdx)
LBB0_28:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.29:
	movslq	%r13d, %rdx
	movq	%rdx, (%rcx)
LBB0_30:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	andl	$2, %r13d
	movl	$1, %eax
	jmp	LBB0_23
LBB0_31:
	andl	$3, %r14d
	leaq	(,%r14,8), %rdx
	addl	%r14d, %r14d
	movl	%r14d, %ecx
	sarl	%cl, %r13d
	subq	%r12, %rdx
	andl	$2, %r13d
	movl	$1, %eax
	movq	%rdx, %r12
LBB0_23:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	jne	LBB0_25
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_PSYCHO_MAX_INO,4,2             ## @PSYCHO_MAX_INO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of range INO %d requested\n"

	.comm	_PSR_OBIO_INT_DIAG,8,3          ## @PSR_OBIO_INT_DIAG
	.comm	_PSR_SCSI_INT_MAP,8,3           ## @PSR_SCSI_INT_MAP
	.comm	_PSR_SCSI_INT_CLR,8,3           ## @PSR_SCSI_INT_CLR
	.comm	_PSR_PWRMGT_INT_MAP,8,3         ## @PSR_PWRMGT_INT_MAP
	.comm	_PSYCHO_MODE_SABRE,8,3          ## @PSYCHO_MODE_SABRE
	.comm	_PSR_TIMER0_INT_MAP,8,3         ## @PSR_TIMER0_INT_MAP
	.comm	_PSR_TIMER1_INT_MAP,8,3         ## @PSR_TIMER1_INT_MAP
	.comm	_PSR_PCIBERR_INT_MAP,8,3        ## @PSR_PCIBERR_INT_MAP
	.comm	_PSR_PCI_INT_DIAG,8,3           ## @PSR_PCI_INT_DIAG
	.comm	_PSR_PCIA0_INT_MAP,8,3          ## @PSR_PCIA0_INT_MAP
	.comm	_PSR_PCIA0_INT_CLR,8,3          ## @PSR_PCIA0_INT_CLR
	.comm	_PSR_PCIB3_INT_MAP,8,3          ## @PSR_PCIB3_INT_MAP
	.comm	_PSYCHO_MODE_PSYCHO,8,3         ## @PSYCHO_MODE_PSYCHO
	.comm	_PSR_PCIA2_INT_MAP,8,3          ## @PSR_PCIA2_INT_MAP
	.comm	_PSR_PCIA3_INT_MAP,8,3          ## @PSR_PCIA3_INT_MAP
	.no_dead_strip	_psycho_find_intrmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psycho_find_intrmap
_psycho_find_intrmap:                   ; @psycho_find_intrmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _PSYCHO_MAX_INO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSYCHO_MAX_INO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x24, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_device_printf
	mov	w0, #0
	b	LBB0_27
LBB0_2:
	stp	x2, x3, [sp, #8]                ; 16-byte Folded Spill
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
Lloh5:
	adrp	x8, _PSR_OBIO_INT_DIAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSR_OBIO_INT_DIAG@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x24
	bl	_PSYCHO_READ8
Lloh8:
	adrp	x8, _PSR_SCSI_INT_MAP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PSR_SCSI_INT_MAP@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
Lloh11:
	adrp	x27, _PSR_PWRMGT_INT_MAP@GOTPAGE
Lloh12:
	ldr	x27, [x27, _PSR_PWRMGT_INT_MAP@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x22, x8
	b.le	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _PSR_PCI_INT_DIAG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PSR_PCI_INT_DIAG@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x24
	bl	_PSYCHO_READ8
	mov	x25, x0
Lloh16:
	adrp	x8, _PSR_PCIA0_INT_MAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PSR_PCIA0_INT_MAP@GOTPAGEOFF]
Lloh18:
	adrp	x9, _PSR_PCIA0_INT_CLR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PSR_PCIA0_INT_CLR@GOTPAGEOFF]
Lloh20:
	ldr	x22, [x8]
Lloh21:
	ldr	x26, [x9]
Lloh22:
	adrp	x27, _PSR_PCIB3_INT_MAP@GOTPAGE
Lloh23:
	ldr	x27, [x27, _PSR_PCIB3_INT_MAP@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x22, x8
	b.le	LBB0_11
; %bb.4:
	mov	w0, #0
	b	LBB0_21
LBB0_5:
	mov	x25, x0
Lloh24:
	adrp	x9, _PSR_SCSI_INT_CLR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PSR_SCSI_INT_CLR@GOTPAGEOFF]
Lloh26:
	ldr	x26, [x9]
Lloh27:
	adrp	x28, _PSYCHO_MODE_SABRE@GOTPAGE
Lloh28:
	ldr	x28, [x28, _PSYCHO_MODE_SABRE@GOTPAGEOFF]
Lloh29:
	adrp	x19, _PSR_TIMER0_INT_MAP@GOTPAGE
Lloh30:
	ldr	x19, [x19, _PSR_TIMER0_INT_MAP@GOTPAGEOFF]
Lloh31:
	adrp	x20, _PSR_TIMER1_INT_MAP@GOTPAGE
Lloh32:
	ldr	x20, [x20, _PSR_TIMER1_INT_MAP@GOTPAGEOFF]
Lloh33:
	adrp	x21, _PSR_PCIBERR_INT_MAP@GOTPAGE
Lloh34:
	ldr	x21, [x21, _PSR_PCIBERR_INT_MAP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #8
	add	x26, x26, #8
	asr	w25, w25, #2
	cmp	x22, x8
	b.gt	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x10, [x28]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x19]
	ldr	x10, [x20]
	ldr	x11, [x21]
	cmp	x22, x9
	ccmp	x22, x10, #4, ne
	ccmp	x22, x11, #4, ne
	ccmp	x22, x8, #4, ne
	b.eq	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_PSYCHO_READ8
	bl	_INTINO
	cmp	w0, w23
	b.eq	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x27]
	b	LBB0_6
LBB0_11:
	neg	x26, x26
Lloh35:
	adrp	x19, _PSYCHO_MODE_PSYCHO@GOTPAGE
Lloh36:
	ldr	x19, [x19, _PSYCHO_MODE_PSYCHO@GOTPAGEOFF]
Lloh37:
	adrp	x20, _PSR_PCIA2_INT_MAP@GOTPAGE
Lloh38:
	ldr	x20, [x20, _PSR_PCIA2_INT_MAP@GOTPAGEOFF]
Lloh39:
	adrp	x21, _PSR_PCIA3_INT_MAP@GOTPAGE
Lloh40:
	ldr	x21, [x21, _PSR_PCIA3_INT_MAP@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #8
	asr	w25, w25, #8
	sub	x26, x26, #32
	cmp	x22, x8
	b.gt	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x20]
	ldr	x10, [x21]
	cmp	x22, x9
	ccmp	x22, x10, #4, ne
	b.eq	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_PSYCHO_READ8
	eor	w8, w0, w23
	tst	w8, #0x3c
	b.eq	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x27]
	b	LBB0_12
LBB0_17:
	and	w25, w25, #0x2
	b	LBB0_20
LBB0_18:
	mov	w0, #0
	neg	x26, x26
	b	LBB0_21
LBB0_19:
	and	w8, w23, #0x3
	lsl	w9, w8, #3
	sub	x26, x9, x26
	lsl	w8, w8, #1
	asr	w8, w25, w8
	and	w25, w8, #0x2
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldp	x8, x9, [sp, #16]               ; 16-byte Folded Reload
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x10, LBB0_23
; %bb.22:
	str	x22, [x10]
LBB0_23:
	cbz	x8, LBB0_25
; %bb.24:
	str	x26, [x8]
LBB0_25:
	cbz	x9, LBB0_27
; %bb.26:
	sxtw	x8, w25
	str	x8, [x9]
LBB0_27:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PSYCHO_MAX_INO,4,2             ; @PSYCHO_MAX_INO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of range INO %d requested\n"

	.comm	_PSR_OBIO_INT_DIAG,8,3          ; @PSR_OBIO_INT_DIAG
	.comm	_PSR_SCSI_INT_MAP,8,3           ; @PSR_SCSI_INT_MAP
	.comm	_PSR_SCSI_INT_CLR,8,3           ; @PSR_SCSI_INT_CLR
	.comm	_PSR_PWRMGT_INT_MAP,8,3         ; @PSR_PWRMGT_INT_MAP
	.comm	_PSYCHO_MODE_SABRE,8,3          ; @PSYCHO_MODE_SABRE
	.comm	_PSR_TIMER0_INT_MAP,8,3         ; @PSR_TIMER0_INT_MAP
	.comm	_PSR_TIMER1_INT_MAP,8,3         ; @PSR_TIMER1_INT_MAP
	.comm	_PSR_PCIBERR_INT_MAP,8,3        ; @PSR_PCIBERR_INT_MAP
	.comm	_PSR_PCI_INT_DIAG,8,3           ; @PSR_PCI_INT_DIAG
	.comm	_PSR_PCIA0_INT_MAP,8,3          ; @PSR_PCIA0_INT_MAP
	.comm	_PSR_PCIA0_INT_CLR,8,3          ; @PSR_PCIA0_INT_CLR
	.comm	_PSR_PCIB3_INT_MAP,8,3          ; @PSR_PCIB3_INT_MAP
	.comm	_PSYCHO_MODE_PSYCHO,8,3         ; @PSYCHO_MODE_PSYCHO
	.comm	_PSR_PCIA2_INT_MAP,8,3          ; @PSR_PCIA2_INT_MAP
	.comm	_PSR_PCIA3_INT_MAP,8,3          ; @PSR_PCIA3_INT_MAP
	.no_dead_strip	_psycho_find_intrmap
.subsections_via_symbols
