	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_gic_fill_ranges
_arm_gic_fill_ranges:                   ## @arm_gic_fill_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movl	$1, -44(%rbp)
	callq	_OF_parent
	leaq	L_.str(%rip), %rbx
	leaq	-44(%rbp), %rdx
	movl	%eax, %edi
	movq	%rbx, %rsi
	movl	$4, %ecx
	callq	_OF_getencprop
	movl	$2, (%r14)
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$4, %ecx
	callq	_OF_getencprop
	leaq	4(%r14), %rdx
	movl	$2, 4(%r14)
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	callq	_OF_getproplen
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	shrl	$2, %eax
	movslq	(%r14), %rcx
	movslq	-44(%rbp), %rdx
	addq	%rcx, %rdx
	movslq	4(%r14), %rsi
	addq	%rdx, %rsi
	xorl	%ecx, %ecx
	cmpq	%rsi, %rax
	jb	LBB0_3
## %bb.4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ecx
	jmp	LBB0_28
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movl	%eax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_28
## %bb.6:
	leal	(,%rax,4), %eax
	leal	(%rax,%rax,2), %edi
	movq	_M_DEVBUF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_malloc
	movq	%rax, 16(%r14)
	movl	(%rbx), %esi
	movl	(%r13), %edx
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	callq	_OF_getencprop
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_27
## %bb.7:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r11
	movl	(%rax), %r12d
	movl	4(%rax), %r8d
	leal	-1(%r12), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	-1(%r8), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r9d
	andl	$3, %r9d
	movl	%r12d, %eax
	andl	$-4, %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	andl	$3, %r14d
	movl	%r8d, %eax
	andl	$-4, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdx
	cmpq	-80(%rbp), %rdx                 ## 8-byte Folded Reload
	je	LBB0_27
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	leaq	(%rdx,%rdx,2), %r10
	movl	$0, (%r11,%r10,4)
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r11,%r10,4), %r15
	xorl	%esi, %esi
	movslq	%r13d, %r13
	cmpl	$3, -60(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%esi, %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	orl	(%rbx,%r13,4), %esi
	movl	%esi, (%r15)
	orl	4(%rbx,%r13,4), %esi
	movl	%esi, (%r15)
	orl	8(%rbx,%r13,4), %esi
	movl	%esi, (%r15)
	orl	12(%rbx,%r13,4), %esi
	addq	$4, %r13
	movl	%esi, (%r15)
	addl	$-4, %edi
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r9d, %eax
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	orl	(%rbx,%r13,4), %esi
	incq	%r13
	movl	%esi, (%r15)
	decl	%eax
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 4(%r11,%r10,4)
	cmpl	$0, -44(%rbp)
	jle	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r11,%r10,4), %rsi
	addq	$4, %rsi
	movslq	%r13d, %rax
	leaq	(%rbx,%rax,4), %rdi
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	orl	(%rdi,%rax,4), %ecx
	movl	%ecx, (%rsi)
	incq	%rax
	cmpl	-44(%rbp), %eax
	jl	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 8(%r11,%r10,4)
	testl	%r8d, %r8d
	jle	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%r11,%r10,4), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	movslq	%r13d, %r13
	cmpl	$3, -56(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	orl	(%rbx,%r13,4), %edi
	movl	%edi, (%rsi)
	orl	4(%rbx,%r13,4), %edi
	movl	%edi, (%rsi)
	orl	8(%rbx,%r13,4), %edi
	movl	%edi, (%rsi)
	orl	12(%rbx,%r13,4), %edi
	addq	$4, %r13
	movl	%edi, (%rsi)
	addl	$-4, %eax
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r14d, %r14d
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %eax
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	orl	(%rbx,%r13,4), %edi
	incq	%r13
	movl	%edi, (%rsi)
	decl	%eax
	jne	LBB0_25
	jmp	LBB0_26
LBB0_27:
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
LBB0_28:
	movl	%ecx, %eax
	addq	$40, %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	"#address-cells"

L_.str.1:                               ## @.str.1
	.asciz	"#size-cells"

L_.str.2:                               ## @.str.2
	.asciz	"ranges"

	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_arm_gic_fill_ranges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_gic_fill_ranges
_arm_gic_fill_ranges:                   ; @arm_gic_fill_ranges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w8, #1
	str	w8, [sp, #12]
	bl	_OF_parent
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x1, x20
	mov	w3, #4
	bl	_OF_getencprop
	mov	w22, #2
	str	w22, [x19]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #4
	bl	_OF_getencprop
	mov	x2, x19
	str	w22, [x2, #4]!
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w3, #4
	bl	_OF_getencprop
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_OF_getproplen
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x22, x0
	lsr	w8, w0, #2
	ldrsw	x9, [sp, #12]
	ldpsw	x10, x11, [x19]
	add	x9, x9, x10
	add	x9, x9, x11
	udiv	x8, x8, x9
	str	w8, [x19, #8]
	cbz	w8, LBB0_17
; %bb.2:
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #2
Lloh6:
	adrp	x23, _M_DEVBUF@GOTPAGE
Lloh7:
	ldr	x23, [x23, _M_DEVBUF@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh8:
	adrp	x20, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _M_WAITOK@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_malloc
	str	x0, [x19, #16]
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x0, x22
	bl	_malloc
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x22
	bl	_OF_getencprop
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.3:
	mov	x9, #0
	mov	w10, #0
	ldr	x11, [x19, #16]
	mov	w12, #12
	ldp	w13, w14, [x19]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	madd	x15, x9, x12, x11
	str	wzr, [x15]
	cmp	w13, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w16, #0
	add	x17, x20, w10, sxtw #2
	mov	x0, x13
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x17], #4
	orr	w16, w16, w1
	str	w16, [x15]
	add	w10, w10, #1
	subs	w0, w0, #1
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x15, x9, x12, x11
	str	wzr, [x15, #4]!
	ldr	w16, [sp, #12]
	cmp	w16, #1
	b.lt	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x16, #0
	mov	w17, #0
	add	x0, x20, w10, sxtw #2
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x0, x16, lsl #2]
	orr	w17, w17, w1
	str	w17, [x15]
	ldr	w1, [sp, #12]
	add	x16, x16, #1
	cmp	w16, w1
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w10, w10, w16
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x15, x9, x12, x11
	str	wzr, [x15, #8]!
	cmp	w14, #1
	b.lt	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w16, #0
	add	x17, x20, w10, sxtw #2
	mov	x0, x14
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x17], #4
	orr	w16, w16, w1
	str	w16, [x15]
	add	w10, w10, #1
	subs	w0, w0, #1
	b.ne	LBB0_14
	b	LBB0_4
LBB0_15:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_free
	ldr	w0, [x19, #8]
	b	LBB0_18
LBB0_16:
	mov	w0, #-1
	b	LBB0_18
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#address-cells"

l_.str.1:                               ; @.str.1
	.asciz	"#size-cells"

l_.str.2:                               ; @.str.2
	.asciz	"ranges"

	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_arm_gic_fill_ranges
.subsections_via_symbols
