	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_update_busmap
_ehea_update_busmap:                    ## @ehea_update_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ehea_bmap@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	imulq	%rcx, %rbx
	movq	_EHEA_SECTSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_6:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_8:
	imulq	%r15, %rcx
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r12
	jmp	LBB0_11
LBB0_9:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r12d
LBB0_11:
	addq	%rbx, %r12
	cmpq	%r12, %rbx
	jae	LBB0_22
## %bb.12:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, (%rdi)
	movq	(%rcx), %rax
	movslq	%esi, %rcx
	movl	%edx, (%rax,%rcx,4)
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	je	LBB0_22
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_EHEA_TOP_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ehea_calc_index
	movl	%eax, %r15d
	movq	_EHEA_DIR_INDEX_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ehea_calc_index
	movl	%eax, %edx
	movq	_EHEA_INDEX_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	andq	%rbx, %rsi
	movq	(%r14), %rdi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r13d
	movl	%r15d, %esi
	movl	%edx, %r15d
	callq	_ehea_init_bmap
	testl	%eax, %eax
	jne	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_ehea_mr_len@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rax
	movq	_EHEA_SECTSIZE@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movslq	%r13d, %rdx
	movslq	%r15d, %rsi
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rsi,8), %rcx
	movl	$1, %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rdi), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	movq	_ehea_mr_len@GOTPCREL(%rip), %rdi
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rdi), %rax
	movq	_EHEA_SECTSIZE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rax
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_22:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_ehea_rebuild_busmap
	jmp	LBB0_23
LBB0_15:
	movl	%eax, %r12d
	jmp	LBB0_23
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehea_bmap,8,3                  ## @ehea_bmap
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EHEA_SECTSIZE,8,3              ## @EHEA_SECTSIZE
	.comm	_EHEA_TOP_INDEX_SHIFT,4,2       ## @EHEA_TOP_INDEX_SHIFT
	.comm	_EHEA_DIR_INDEX_SHIFT,4,2       ## @EHEA_DIR_INDEX_SHIFT
	.comm	_EHEA_INDEX_MASK,8,3            ## @EHEA_INDEX_MASK
	.comm	_ehea_mr_len,8,3                ## @ehea_mr_len
	.no_dead_strip	_ehea_update_busmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_update_busmap
_ehea_update_busmap:                    ; @ehea_update_busmap
	.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
	cbz	x1, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _ehea_bmap@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ehea_bmap@GOTPAGEOFF]
	ldr	x8, [x23]
	cbnz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	str	x0, [x23]
	cbz	x0, LBB0_16
LBB0_3:
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mul	x9, x8, x20
Lloh8:
	adrp	x10, _EHEA_SECTSIZE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EHEA_SECTSIZE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	udiv	x20, x9, x10
	mul	x8, x8, x21
	udiv	x8, x8, x10
	add	x25, x8, x20
	cmp	x20, x25
	b.hs	LBB0_13
; %bb.4:
Lloh11:
	adrp	x27, _EHEA_DIR_INDEX_SHIFT@GOTPAGE
Lloh12:
	ldr	x27, [x27, _EHEA_DIR_INDEX_SHIFT@GOTPAGEOFF]
Lloh13:
	adrp	x28, _EHEA_INDEX_MASK@GOTPAGE
Lloh14:
	ldr	x28, [x28, _EHEA_INDEX_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x24, _ehea_mr_len@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ehea_mr_len@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	and	x11, x26, x20
	str	x9, [x24]
	ldr	x8, [x8]
	sbfiz	x9, x11, #2, #32
	str	w10, [x8, x9]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, x25
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
Lloh17:
	adrp	x8, _EHEA_TOP_INDEX_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EHEA_TOP_INDEX_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ehea_calc_index
	mov	x21, x0
	ldr	w1, [x27]
	mov	x0, x20
	bl	_ehea_calc_index
	mov	x22, x0
	ldr	x26, [x28]
	ldr	x0, [x23]
	cbz	w19, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x21
	mov	x2, x22
	bl	_ehea_init_bmap
	cbnz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh20:
	adrp	x8, _EHEA_SECTSIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EHEA_SECTSIZE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x24]
	add	x9, x9, x8
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8, w21, sxtw #3]
	ldr	x8, [x8]
	ldr	x8, [x8, w22, sxtw #3]
	mov	w10, #1
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	ldr	x8, [x8, w21, sxtw #3]
	cbz	x8, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8]
	ldr	x8, [x8, w22, sxtw #3]
	cbz	x8, LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w10, #0
Lloh23:
	adrp	x9, _EHEA_SECTSIZE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EHEA_SECTSIZE@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x11, [x24]
	sub	x9, x11, x9
	b	LBB0_5
LBB0_13:
	bl	_ehea_rebuild_busmap
LBB0_14:
	mov	w0, #0
LBB0_15:
	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_16:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ehea_bmap,8,3                  ; @ehea_bmap
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EHEA_SECTSIZE,8,3              ; @EHEA_SECTSIZE
	.comm	_EHEA_TOP_INDEX_SHIFT,4,2       ; @EHEA_TOP_INDEX_SHIFT
	.comm	_EHEA_DIR_INDEX_SHIFT,4,2       ; @EHEA_DIR_INDEX_SHIFT
	.comm	_EHEA_INDEX_MASK,8,3            ; @EHEA_INDEX_MASK
	.comm	_ehea_mr_len,8,3                ; @ehea_mr_len
	.no_dead_strip	_ehea_update_busmap
.subsections_via_symbols
