	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_init                       ## -- Begin function isa_init
	.p2align	4, 0x90
_isa_init:                              ## @isa_init
	.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
	movl	%edi, %r14d
	callq	_device_get_parent
	movl	%eax, %edi
	callq	_ofw_bus_get_node
	movq	_isab_node@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	_isab_ranges@GOTPCREL(%rip), %rcx
	movl	%eax, %edi
	movl	$4, %edx
	callq	_OF_getprop_alloc_multi
	movq	_isab_nrange@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
LBB0_2:
	movl	(%rbx), %edi
	movq	_isa_iinfo@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_ofw_bus_setup_iinfo
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_isa_setup_children
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.3:
	incq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_isab_ranges@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ISAB_RANGE_PHYS
	movq	%rax, (%r15)
	movq	_isab_ranges@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, (%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r12d
	leaq	(,%r12,4), %r14
	movq	_isab_ranges@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r14, %rdi
	callq	_ISAB_RANGE_SPACE
	movq	_isa_io_base@GOTPCREL(%rip), %r15
	movq	_isa_io_limit@GOTPCREL(%rip), %r13
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_isa_mem_base@GOTPCREL(%rip), %r15
	movq	_isa_mem_limit@GOTPCREL(%rip), %r13
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isab_node,4,2                  ## @isab_node
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ranges"

	.comm	_isab_ranges,8,3                ## @isab_ranges
	.comm	_isab_nrange,4,2                ## @isab_nrange
L_.str.1:                               ## @.str.1
	.asciz	"isa_init: cannot get bridge range property"

	.comm	_isa_iinfo,4,2                  ## @isa_iinfo
	.comm	_isa_io_base,8,3                ## @isa_io_base
	.comm	_isa_io_limit,4,2               ## @isa_io_limit
	.comm	_isa_mem_base,8,3               ## @isa_mem_base
	.comm	_isa_mem_limit,4,2              ## @isa_mem_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_init                       ; -- Begin function isa_init
	.p2align	2
_isa_init:                              ; @isa_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_device_get_parent
	bl	_ofw_bus_get_node
Lloh0:
	adrp	x21, _isab_node@GOTPAGE
Lloh1:
	ldr	x21, [x21, _isab_node@GOTPAGEOFF]
	str	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x19, _isab_ranges@GOTPAGE
Lloh5:
	ldr	x19, [x19, _isab_ranges@GOTPAGEOFF]
	mov	w2, #4
	mov	x3, x19
	bl	_OF_getprop_alloc_multi
Lloh6:
	adrp	x22, _isab_nrange@GOTPAGE
Lloh7:
	ldr	x22, [x22, _isab_nrange@GOTPAGEOFF]
	str	w0, [x22]
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_2:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, _isa_iinfo@GOTPAGE
Lloh11:
	ldr	x1, [x1, _isa_iinfo@GOTPAGEOFF]
	mov	w2, #4
	bl	_ofw_bus_setup_iinfo
	ldr	w1, [x21]
	mov	x0, x20
	bl	_isa_setup_children
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	add	x20, x8, #1
Lloh12:
	adrp	x21, _isa_io_limit@GOTPAGE
Lloh13:
	ldr	x21, [x21, _isa_io_limit@GOTPAGEOFF]
Lloh14:
	adrp	x22, _isa_io_base@GOTPAGE
Lloh15:
	ldr	x22, [x22, _isa_io_base@GOTPAGEOFF]
Lloh16:
	adrp	x23, _isa_mem_limit@GOTPAGE
Lloh17:
	ldr	x23, [x23, _isa_mem_limit@GOTPAGEOFF]
Lloh18:
	adrp	x24, _isa_mem_base@GOTPAGE
Lloh19:
	ldr	x24, [x24, _isa_mem_base@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x22
	mov	x26, x21
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	lsl	x25, x25, #2
	add	x0, x8, x25
	bl	_ISAB_RANGE_PHYS
	str	x0, [x27]
	ldr	x8, [x19]
	ldr	w8, [x8, x25]
	str	w8, [x26]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x20, x20, #1
	cmp	x20, #1
	b.ls	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w20, #2
	ldr	x8, [x19]
	add	x0, x8, w25, uxtw #2
	bl	_ISAB_RANGE_SPACE
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #128
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x24
	mov	x26, x23
	b	LBB0_5
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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_isab_node,4,2                  ; @isab_node
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ranges"

	.comm	_isab_ranges,8,3                ; @isab_ranges
	.comm	_isab_nrange,4,2                ; @isab_nrange
l_.str.1:                               ; @.str.1
	.asciz	"isa_init: cannot get bridge range property"

	.comm	_isa_iinfo,4,2                  ; @isa_iinfo
	.comm	_isa_io_base,8,3                ; @isa_io_base
	.comm	_isa_io_limit,4,2               ; @isa_io_limit
	.comm	_isa_mem_base,8,3               ; @isa_mem_base
	.comm	_isa_mem_limit,4,2              ; @isa_mem_limit
.subsections_via_symbols
