	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_alloc                   ## -- Begin function module_alloc
	.p2align	4, 0x90
_module_alloc:                          ## @module_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	callq	_PAGE_ALIGN
	movq	_MODULES_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	ja	LBB0_3
## %bb.2:
	movq	_VM_ALLOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MODULES_VADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_MODULES_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	___get_vm_area
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movq	___GFP_HIGHMEM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_PAGE_KERNEL_EXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	popq	%rbp
	jmp	___vmalloc_area                 ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODULES_LEN,8,3                ## @MODULES_LEN
	.comm	_VM_ALLOC,4,2                   ## @VM_ALLOC
	.comm	_MODULES_VADDR,4,2              ## @MODULES_VADDR
	.comm	_MODULES_END,4,2                ## @MODULES_END
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_HIGHMEM,4,2              ## @__GFP_HIGHMEM
	.comm	_PAGE_KERNEL_EXEC,4,2           ## @PAGE_KERNEL_EXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_module_alloc                   ; -- Begin function module_alloc
	.p2align	2
_module_alloc:                          ; @module_alloc
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	bl	_PAGE_ALIGN
Lloh0:
	adrp	x8, _MODULES_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODULES_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _VM_ALLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_ALLOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MODULES_VADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODULES_VADDR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _MODULES_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODULES_END@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	___get_vm_area
	cbz	x0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, ___GFP_HIGHMEM@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___GFP_HIGHMEM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh18:
	adrp	x8, _PAGE_KERNEL_EXEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_KERNEL_EXEC@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___vmalloc_area
LBB0_4:
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MODULES_LEN,8,3                ; @MODULES_LEN
	.comm	_VM_ALLOC,4,2                   ; @VM_ALLOC
	.comm	_MODULES_VADDR,4,2              ; @MODULES_VADDR
	.comm	_MODULES_END,4,2                ; @MODULES_END
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_HIGHMEM,4,2              ; @__GFP_HIGHMEM
	.comm	_PAGE_KERNEL_EXEC,4,2           ; @PAGE_KERNEL_EXEC
.subsections_via_symbols
