	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_create_busmap_callback
_ehea_create_busmap_callback:           ## @ehea_create_busmap_callback
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	imulq	%rsi, %rax
	movq	_EHEA_HUGEPAGE_SIZE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jae	LBB0_3
## %bb.1:
	movq	_EHEA_BUSMAP_ADD_SECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	jmp	LBB0_2
LBB0_3:
	addq	%r15, %r14
	movq	%r15, %rbx
	cmpq	%r15, %r14
	ja	LBB0_4
LBB0_15:
	subq	%r15, %rbx
	movq	_EHEA_BUSMAP_ADD_SECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ehea_update_busmap             ## TAILCALL
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rbx
	movq	%rbx, %r15
	cmpq	%r14, %rbx
	jae	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ehea_is_hugepage
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	subq	%r15, %rsi
	movq	_EHEA_BUSMAP_ADD_SECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ehea_update_busmap
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EHEA_SECTSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_4
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_EHEA_HUGEPAGE_SIZE,8,3         ## @EHEA_HUGEPAGE_SIZE
	.comm	_EHEA_BUSMAP_ADD_SECT,4,2       ## @EHEA_BUSMAP_ADD_SECT
	.comm	_EHEA_SECTSIZE,8,3              ## @EHEA_SECTSIZE
	.no_dead_strip	_ehea_create_busmap_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_create_busmap_callback
_ehea_create_busmap_callback:           ; @ehea_create_busmap_callback
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	mul	x8, x8, x1
Lloh2:
	adrp	x23, _EHEA_HUGEPAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EHEA_HUGEPAGE_SIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EHEA_BUSMAP_ADD_SECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EHEA_BUSMAP_ADD_SECT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	b	LBB0_10
LBB0_2:
	add	x24, x1, x19
	cmp	x24, x19
Lloh7:
	adrp	x22, _EHEA_BUSMAP_ADD_SECT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _EHEA_BUSMAP_ADD_SECT@GOTPAGEOFF]
	b.ls	LBB0_8
; %bb.3:
Lloh9:
	adrp	x25, _EHEA_SECTSIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EHEA_SECTSIZE@GOTPAGEOFF]
	mov	x20, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x21]
	udiv	x8, x8, x9
	add	x20, x8, x20
	cmp	x20, x24
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ehea_is_hugepage
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x1, x20, x19
	ldr	w2, [x22]
	mov	x0, x19
	bl	_ehea_update_busmap
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	x9, [x21]
	udiv	x8, x8, x9
	add	x20, x8, x20
	mov	x19, x20
	cmp	x20, x24
	b.lo	LBB0_5
	b	LBB0_9
LBB0_8:
	mov	x20, x19
LBB0_9:
	sub	x1, x20, x19
	ldr	w2, [x22]
LBB0_10:
	mov	x0, x19
	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
	b	_ehea_update_busmap
LBB0_11:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_EHEA_HUGEPAGE_SIZE,8,3         ; @EHEA_HUGEPAGE_SIZE
	.comm	_EHEA_BUSMAP_ADD_SECT,4,2       ; @EHEA_BUSMAP_ADD_SECT
	.comm	_EHEA_SECTSIZE,8,3              ; @EHEA_SECTSIZE
	.no_dead_strip	_ehea_create_busmap_callback
.subsections_via_symbols
