	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_isa_range_map              ## -- Begin function ofw_isa_range_map
	.p2align	4, 0x90
_ofw_isa_range_map:                     ## @ofw_isa_range_map
	.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, %r12
	testl	%esi, %esi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%esi, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	addq	$8, %rbx
	cmpq	%r14, %r15
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ISA_RANGE_CHILD
	movq	(%r12), %rsi
	cmpq	%rax, %rsi
	jl	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	(%rbx), %rcx
	addq	%rax, %rcx
	cmpq	%rcx, %rsi
	jge	LBB0_11
## %bb.5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rsi
	cmpq	%r13, %rsi
	jl	LBB0_7
## %bb.6:
	cmpq	%rcx, %rsi
	jl	LBB0_8
LBB0_7:
	decq	%rcx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_panic
LBB0_8:
	movq	%rbx, %rdi
	callq	_ISA_RANGE_PHYS
	subq	%r13, %rax
	addq	%rax, (%r12)
	addq	%rax, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r14d, (%rax)
LBB0_10:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ofw_isa_range_restype          ## TAILCALL
LBB0_1:
	movq	(%r12), %rsi
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_panic                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ofw_isa_map_iorange: iorange crosses PCI ranges (%#lx not in %#lx - %#lx)"

L_.str.1:                               ## @.str.1
	.asciz	"ofw_isa_map_iorange: could not map range %#lx - %#lx"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ofw_isa_range_map              ; -- Begin function ofw_isa_range_map
	.p2align	2
_ofw_isa_range_map:                     ; @ofw_isa_range_map
	.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, x3
	mov	x22, x2
	cmp	w1, #0
	b.le	LBB0_4
; %bb.1:
	mov	x20, x4
	mov	x21, x0
	mov	x24, #0
	mov	w25, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ISA_RANGE_CHILD
	ldr	x8, [x21]
	add	x8, x8, x0
	ldr	x1, [x22]
	cmp	x1, x0
	ccmp	x1, x8, #0, ge
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #1
	add	x21, x21, #8
	cmp	x25, x24
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	ldr	x1, [x22]
LBB0_5:
	ldr	x2, [x19]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_panic
LBB0_6:
	mov	x23, x0
	ldr	x1, [x19]
	cmp	x1, x0
	ccmp	x1, x8, #0, ge
	b.lt	LBB0_8
; %bb.7:
	sub	x8, x8, #1
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x23
	bl	_panic
LBB0_8:
	mov	x0, x21
	bl	_ISA_RANGE_PHYS
	ldr	x8, [x22]
	sub	x9, x0, x23
	add	x8, x9, x8
	str	x8, [x22]
	ldr	x8, [x19]
	add	x8, x9, x8
	str	x8, [x19]
	cbz	x20, LBB0_10
; %bb.9:
	str	w24, [x20]
LBB0_10:
	mov	x0, x21
	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
	b	_ofw_isa_range_restype
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ofw_isa_map_iorange: iorange crosses PCI ranges (%#lx not in %#lx - %#lx)"

l_.str.1:                               ; @.str.1
	.asciz	"ofw_isa_map_iorange: could not map range %#lx - %#lx"

.subsections_via_symbols
