	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_adjust_ranges             ## -- Begin function prom_adjust_ranges
	.p2align	4, 0x90
_prom_adjust_ranges:                    ## @prom_adjust_ranges
	.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
	testl	%esi, %esi
	jle	LBB0_13
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	%esi, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r12d
	leaq	32(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %ebx
	callq	_prom_printf
	movl	%ebx, %ecx
	leaq	(,%r13,4), %rax
	addq	%r13, %rax
	movq	16(%r14,%rax,8), %rbx
	movq	%r12, %rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rax,%rax,4), %rax
	movq	(%r15,%rax,8), %rdx
	leaq	(,%r13,4), %rsi
	addq	%r13, %rsi
	movq	%rdx, (%r14,%rsi,8)
	addq	16(%r15,%rax,8), %rbx
	movq	%rbx, 16(%r14,%rsi,8)
	incq	%r13
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$0, %eax
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r13,4), %rax
	addq	%r13, %rax
	movq	(%r14,%rax,8), %r9
	leaq	(%r14,%rax,8), %r8
	addq	$16, %r8
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rax
	addq	$40, %rsi
	cmpq	%rax, %r12
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	-24(%rsi), %r9
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r8), %rdi
	movq	-8(%rsi), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rsi), %edx
	addq	%rdx, %rbx
	cmpq	%rdi, %rbx
	jle	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r13,4), %r8
	addq	%r13, %r8
	movq	16(%r14,%r8,8), %rbx
	movl	32(%r14,%r8,8), %edi
	addq	%rbx, %rdi
	movl	%eax, %eax
	leaq	(%rax,%rax,4), %rdx
	movl	32(%r15,%rdx,8), %esi
	addq	24(%r15,%rdx,8), %rsi
	cmpq	%rsi, %rdi
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r8,8), %rdx
	addq	$32, %rdx
	subl	%ebx, %esi
	movl	%esi, (%rdx)
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adjust_ranges: Could not find matching bus type...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prom_adjust_ranges             ; -- Begin function prom_adjust_ranges
	.p2align	2
_prom_adjust_ranges:                    ; @prom_adjust_ranges
	.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
	cmp	w1, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x23, #0
	mov	w24, w1
	add	x25, x2, #32
	mov	w26, #40
	mov	w27, w3
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_prom_printf
	madd	x8, x23, x26, x21
	ldr	x9, [x8, #16]
	mov	x10, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x10, x26, x20
	ldr	x10, [x8]
	madd	x11, x23, x26, x21
	str	x10, [x11]
	ldr	x8, [x8, #16]
	add	x8, x9, x8
	str	x8, [x11, #16]
	add	x23, x23, #1
	cmp	x23, x24
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w19, #1
	b.lt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	madd	x9, x23, x26, x21
	ldr	x10, [x9], #16
	mov	x11, x25
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x8, #1
	add	x11, x11, #40
	cmp	x27, x8
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x12, [x11, #-24]
	cmp	x10, x12
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x12, [x9]
	ldur	x13, [x11, #-8]
	cmp	x12, x13
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w14, [x11]
	add	x13, x13, x14
	cmp	x13, x12
	b.le	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w19
	b.eq	LBB0_2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	cmp	w8, w19
	b.eq	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x11, x23, x26, x21
	ldr	w10, [x11, #32]!
	ldur	x9, [x11, #-16]
	add	x12, x9, x10
	mov	w10, w8
	umaddl	x8, w8, w26, x20
	ldr	x13, [x8, #24]
	ldr	w8, [x8, #32]
	add	x8, x13, x8
	cmp	x12, x8
	b.le	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, w9
	str	w8, [x11]
	b	LBB0_3
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adjust_ranges: Could not find matching bus type...\n"

.subsections_via_symbols
