	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_pci_ranges_decode
_mv_pci_ranges_decode:                  ## @mv_pci_ranges_decode
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FDT_RANGES_CELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-60(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%r13d, %edi
	callq	_fdt_addrsize_cells
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	cmpl	$3, -60(%rbp)
	jne	LBB0_5
## %bb.3:
	cmpl	$2, -52(%rbp)
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %edi
	callq	_fdt_parent_addr_cells
	cmpl	$4, %eax
	jl	LBB0_9
LBB0_5:
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	callq	_OF_getproplen
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_11
## %bb.10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_OF_getprop
	testq	%rax, %rax
	jle	LBB0_1
## %bb.12:
	movl	-60(%rbp), %ecx
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %ecx
	addl	-52(%rbp), %ecx
	shll	$2, %ecx
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bzero
	movq	%r12, %rdi
	movl	$12, %esi
	callq	_bzero
	testl	%r13d, %r13d
	jle	LBB0_21
## %bb.13:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	cmpl	$3, %ebx
	sete	%al
	addq	%rax, %rax
	addq	$3, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	leaq	(%rbx,%rcx,4), %r15
	xorl	%eax, %eax
	decl	%r13d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_7
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_fdt_data_get
	movq	%rax, %rbx
	leaq	4(%r15), %rdi
	movl	$1, %esi
	callq	_fdt_data_get
	leaq	8(%r15), %rdi
	movl	$1, %esi
	callq	_fdt_data_get
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%r15), %rdi
	movl	$1, %esi
	callq	_fdt_data_get
	movq	%rax, %rcx
	movl	$0, %edx
	testl	$33554432, %ebx                 ## imm = 0x2000000
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	$1, %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testl	$16777216, %ebx                 ## imm = 0x1000000
	je	LBB0_5
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	$3, %ebx
	movl	$2, %eax
	cmovel	%eax, %r14d
	subl	%r14d, %ebx
	cmpl	$3, %ebx
	jge	LBB0_5
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	%rcx, %r14
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%r15,%rax,4), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fdt_data_get
	movl	%eax, (%r12)
	movl	-52(%rbp), %esi
	cmpl	$3, %esi
	jge	LBB0_5
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rbx
	movq	%rbx, %rdi
	callq	_fdt_data_get
	movl	%eax, 4(%r12)
	movslq	-52(%rbp), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, 8(%r12)
	testl	%eax, %eax
	jne	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_PCI_SPACE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	leal	(%rdx,%r14,2), %edx
	imull	%eax, %edx
	movq	_fdt_immr_va@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	movl	%edx, (%r12)
	jmp	LBB0_14
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_RANGES_CELLS,4,2           ## @FDT_RANGES_CELLS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERANGE,4,2                     ## @ERANGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ranges"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_SPACE_LEN,4,2              ## @PCI_SPACE_LEN
	.comm	_fdt_immr_va,4,2                ## @fdt_immr_va
	.no_dead_strip	_mv_pci_ranges_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_pci_ranges_decode
_mv_pci_ranges_decode:                  ; @mv_pci_ranges_decode
	.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
	sub	sp, sp, #32
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _FDT_RANGES_CELLS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_RANGES_CELLS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x24, x8, #2
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x7fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	sub	x1, x29, #92
	sub	x2, x29, #96
	bl	_fdt_addrsize_cells
	cbz	x0, LBB0_2
LBB0_1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldp	w9, w8, [x29, #-96]
	cmp	w8, #3
	ccmp	w9, #2, #0, eq
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_fdt_parent_addr_cells
	cmp	w0, #4
	b.lt	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _ERANGE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.7:
	sub	sp, x29, #80
	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
LBB0_8:
	mov	x19, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_OF_getproplen
	cmp	x24, w0, sxtw
	b.hs	LBB0_10
; %bb.9:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	mov	x25, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	mov	x3, x24
	bl	_OF_getprop
	cmp	x0, #0
	b.le	LBB0_1
; %bb.11:
	ldp	w9, w8, [x29, #-96]
	add	w8, w8, w19
	add	w8, w8, w9
	lsl	w8, w8, #2
	sdiv	w26, w25, w8
	mov	x0, x20
	mov	w1, #12
	bl	_bzero
	mov	x0, x21
	mov	w1, #12
	bl	_bzero
	cmp	w26, #1
	b.lt	LBB0_22
; %bb.12:
	mov	w27, #0
	stur	w19, [x29, #-100]               ; 4-byte Folded Spill
	cmp	w19, #3
	mov	w8, #3
	mov	w9, #5
	csel	x8, x9, x8, eq
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #0
	add	x22, x22, x8, lsl #2
	subs	w26, w26, #1
	b.eq	LBB0_6
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #1
	bl	_fdt_data_get
	mov	x25, x0
	add	x0, x22, #4
	mov	w1, #1
	bl	_fdt_data_get
	add	x0, x22, #8
	mov	w1, #1
	bl	_fdt_data_get
	mov	x24, x0
	add	x0, x22, #16
	mov	w1, #1
	bl	_fdt_data_get
	mov	x23, x0
	tbnz	w25, #25, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	tbz	w25, #24, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w28, #1
	mov	x19, x20
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w28, #0
	mov	x19, x21
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	cmp	w8, #3
	mov	w9, #2
	csel	w27, w9, w27, eq
	sub	w25, w8, w27
	cmp	w25, #3
	b.ge	LBB0_4
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	add	x22, x22, x8, lsl #2
	mov	x0, x22
	mov	x1, x25
	bl	_fdt_data_get
	str	w0, [x19]
	ldur	w1, [x29, #-96]
	cmp	w1, #3
	b.ge	LBB0_4
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x22, x22, w25, sxtw #2
	mov	x0, x22
	bl	_fdt_data_get
	ldursw	x8, [x29, #-96]
	stp	w0, w24, [x19, #4]
	cbnz	w0, LBB0_13
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh21:
	adrp	x9, _PCI_SPACE_LEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCI_SPACE_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _fdt_immr_va@GOTPAGE
Lloh25:
	ldr	x10, [x10, _fdt_immr_va@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	bfi	w28, w23, #1, #31
	madd	w10, w9, w28, w10
	stp	w10, w9, [x19]
	b	LBB0_13
LBB0_22:
	mov	w0, #0
	b	LBB0_6
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_RANGES_CELLS,4,2           ; @FDT_RANGES_CELLS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERANGE,4,2                     ; @ERANGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ranges"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_SPACE_LEN,4,2              ; @PCI_SPACE_LEN
	.comm	_fdt_immr_va,4,2                ; @fdt_immr_va
	.no_dead_strip	_mv_pci_ranges_decode
.subsections_via_symbols
