	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmalloc                        ## -- Begin function kmalloc
	.p2align	4, 0x90
_kmalloc:                               ## @kmalloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.1:
	movq	_free_mem_addr@GOTPCREL(%rip), %rax
	movl	$-4096, %ecx                    ## imm = 0xF000
	andl	(%rax), %ecx
	je	LBB0_3
## %bb.2:
	addl	$4096, %ecx                     ## imm = 0x1000
	movl	%ecx, (%rax)
LBB0_3:
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	_free_mem_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
LBB0_5:
	movq	_free_mem_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	addl	%eax, %edi
	movl	%edi, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_free_mem_addr,4,2              ## @free_mem_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmalloc                        ; -- Begin function kmalloc
	.p2align	2
_kmalloc:                               ; @kmalloc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _free_mem_addr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _free_mem_addr@GOTPAGEOFF]
	cmp	w1, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x9]
	ands	w8, w8, #0xfffff000
	b.eq	LBB0_3
; %bb.2:
	add	w8, w8, #1, lsl #12             ; =4096
	str	w8, [x9]
LBB0_3:
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w8, [x9]
	str	w8, [x2]
LBB0_5:
	ldr	w8, [x9]
	add	w10, w8, w0
	str	w10, [x9]
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_free_mem_addr,4,2              ; @free_mem_addr
.subsections_via_symbols
