	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schizo_get_intrmap
_schizo_get_intrmap:                    ## @schizo_get_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
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_STX_MAX_INO@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_8
LBB0_2:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_STX_PCI_IMAP_BASE@GOTPCREL(%rip), %rax
	leal	(,%rbx,8), %ecx
	movslq	%ecx, %r14
	movq	(%rax), %r13
	addq	%r14, %r13
	movq	_STX_PCI_ICLR_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_SCHIZO_PCI_READ_8
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_INTINO
	cmpl	%ebx, %eax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, (%rax)
LBB0_6:
	movl	$1, %r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, (%rax)
	jmp	LBB0_8
LBB0_3:
	movl	(%r12), %r12d
	movl	%r15d, %edi
	callq	_INTINO
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STX_MAX_INO,4,2                ## @STX_MAX_INO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of range INO %d requested\n"

	.comm	_STX_PCI_IMAP_BASE,8,3          ## @STX_PCI_IMAP_BASE
	.comm	_STX_PCI_ICLR_BASE,8,3          ## @STX_PCI_ICLR_BASE
L_.str.1:                               ## @.str.1
	.asciz	"interrupt map entry does not match INO (%d != %d)\n"

	.no_dead_strip	_schizo_get_intrmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schizo_get_intrmap
_schizo_get_intrmap:                    ; @schizo_get_intrmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _STX_MAX_INO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STX_MAX_INO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x22]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	b	LBB0_9
LBB0_2:
	mov	x20, x3
	mov	x21, x2
Lloh5:
	adrp	x8, _STX_PCI_IMAP_BASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STX_PCI_IMAP_BASE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	lsl	w9, w19, #3
	sxtw	x25, w9
	add	x23, x8, x25
Lloh8:
	adrp	x8, _STX_PCI_ICLR_BASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STX_PCI_ICLR_BASE@GOTPAGEOFF]
Lloh10:
	ldr	x26, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_SCHIZO_PCI_READ_8
	mov	x24, x0
	bl	_INTINO
	cmp	w0, w19
	b.ne	LBB0_8
; %bb.3:
	cbz	x21, LBB0_5
; %bb.4:
	str	x23, [x21]
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
	add	x8, x26, x25
	str	x8, [x20]
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	ldr	w20, [x22]
	mov	x0, x24
	bl	_INTINO
	mov	x2, x0
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
LBB0_9:
	bl	_device_printf
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STX_MAX_INO,4,2                ; @STX_MAX_INO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of range INO %d requested\n"

	.comm	_STX_PCI_IMAP_BASE,8,3          ; @STX_PCI_IMAP_BASE
	.comm	_STX_PCI_ICLR_BASE,8,3          ; @STX_PCI_ICLR_BASE
l_.str.1:                               ; @.str.1
	.asciz	"interrupt map entry does not match INO (%d != %d)\n"

	.no_dead_strip	_schizo_get_intrmap
.subsections_via_symbols
