	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehea_create_busmap             ## -- Begin function ehea_create_busmap
	.p2align	4, 0x90
_ehea_create_busmap:                    ## @ehea_create_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ehea_busmap_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_MAX_PHYSMEM_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	movq	_ehea_mr_len@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_ehea_create_busmap_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_walk_system_ram_range
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ehea_busmap_mutex,4,2          ## @ehea_busmap_mutex
	.comm	_ehea_mr_len,8,3                ## @ehea_mr_len
	.comm	_MAX_PHYSMEM_BITS,8,3           ## @MAX_PHYSMEM_BITS
	.comm	_ehea_create_busmap_callback,4,2 ## @ehea_create_busmap_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehea_create_busmap             ; -- Begin function ehea_create_busmap
	.p2align	2
_ehea_create_busmap:                    ; @ehea_create_busmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _ehea_busmap_mutex@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ehea_busmap_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ehea_mr_len@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ehea_mr_len@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _MAX_PHYSMEM_BITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_PHYSMEM_BITS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	w9, #1
	lsl	x1, x9, x8
Lloh8:
	adrp	x8, _ehea_create_busmap_callback@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ehea_create_busmap_callback@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	w0, #0
	mov	x2, #0
	bl	_walk_system_ram_range
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ehea_busmap_mutex,4,2          ; @ehea_busmap_mutex
	.comm	_ehea_mr_len,8,3                ; @ehea_mr_len
	.comm	_MAX_PHYSMEM_BITS,8,3           ; @MAX_PHYSMEM_BITS
	.comm	_ehea_create_busmap_callback,4,2 ; @ehea_create_busmap_callback
.subsections_via_symbols
