	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_rebuild_busmap
_ehea_rebuild_busmap:                   ## @ehea_rebuild_busmap
	.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
	movq	_EHEA_MAP_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.1:
	movq	_EHEA_BUSMAP_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movq	_ehea_bmap@GOTPCREL(%rip), %r12
	movq	_EHEA_SECTSIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	$0, (%rax,%r14,8)
	movq	%r15, %rdi
	callq	_kfree
	movq	_EHEA_MAP_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%r8d, %rax
	cmpq	%rax, %r14
	jge	LBB0_24
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %r15
	testq	%r15, %r15
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	$0, (%r10,%r14,8)
	callq	_kfree
	movq	_EHEA_MAP_ENTRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movslq	%r8d, %rax
	cmpq	%rax, %r14
	jge	LBB0_21
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movq	(%r15), %r10
	movq	(%r10,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	%r12d
	testl	%r8d, %r8d
	jle	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rdi), %rdx
	movl	%r8d, %r9d
	cmpl	$1, %r8d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%eax, %eax
	xorl	%esi, %esi
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	testb	$1, %r9b
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=2
	incl	%esi
	movq	%rbx, (%rdx,%rax,8)
	addq	(%r13), %rbx
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%esi, %esi
	jne	LBB0_20
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	%r9d, %ecx
	andl	$-2, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=3
	addq	$2, %rax
	cmpq	%rax, %rcx
	je	LBB0_15
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=3
	incl	%esi
	movq	%rbx, (%rdx,%rax,8)
	addq	(%r13), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=3
	cmpq	$0, 8(%rdx,%rax,8)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=3
	incl	%esi
	movq	%rbx, 8(%rdx,%rax,8)
	addq	(%r13), %rbx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r12d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_ehea_bmap@GOTPCREL(%rip), %r12
	jne	LBB0_23
	jmp	LBB0_22
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_BUSMAP_START,8,3          ## @EHEA_BUSMAP_START
	.comm	_EHEA_MAP_ENTRIES,4,2           ## @EHEA_MAP_ENTRIES
	.comm	_ehea_bmap,8,3                  ## @ehea_bmap
	.comm	_EHEA_SECTSIZE,8,3              ## @EHEA_SECTSIZE
	.no_dead_strip	_ehea_rebuild_busmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_rebuild_busmap
_ehea_rebuild_busmap:                   ; @ehea_rebuild_busmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x20, _EHEA_MAP_ENTRIES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EHEA_MAP_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x9, _EHEA_BUSMAP_START@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EHEA_BUSMAP_START@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x9]
Lloh5:
	adrp	x23, _ehea_bmap@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ehea_bmap@GOTPAGEOFF]
Lloh7:
	adrp	x24, _EHEA_SECTSIZE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _EHEA_SECTSIZE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	str	xzr, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_kfree
	ldr	w8, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_17
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x9, [x23]
	ldr	x9, [x9]
	ldr	x19, [x9, x21, lsl #3]
	cbz	x19, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	w25, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	xzr, [x9, x26, lsl #3]
	bl	_kfree
	ldr	w8, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_16
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	ldr	x9, [x19]
	ldr	x0, [x9, x26, lsl #3]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	add	w25, w25, #1
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w10, #0
	ldr	x11, [x0, #8]
	mov	w12, w8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x11, x11, #8
	subs	x12, x12, #1
	b.eq	LBB0_15
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x13, [x11]
	cbz	x13, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	add	w10, w10, #1
	str	x22, [x11]
	ldr	x13, [x24]
	add	x22, x13, x22
	b	LBB0_12
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=2
	cbnz	w10, LBB0_8
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w25, LBB0_3
	b	LBB0_2
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_BUSMAP_START,8,3          ; @EHEA_BUSMAP_START
	.comm	_EHEA_MAP_ENTRIES,4,2           ; @EHEA_MAP_ENTRIES
	.comm	_ehea_bmap,8,3                  ; @ehea_bmap
	.comm	_EHEA_SECTSIZE,8,3              ; @EHEA_SECTSIZE
	.no_dead_strip	_ehea_rebuild_busmap
.subsections_via_symbols
