	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_hsa_lifespan
_alloc_hsa_lifespan:                    ## @alloc_hsa_lifespan
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%rax)
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movq	_S_IRUGO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%edx, 8(%rax)
	movq	_show_stats_lifespan@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rax)
	movq	_set_stats_lifespan@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rax)
	movq	$0, 24(%rax)
	movl	%r14d, 16(%rax)
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_show_stats_lifespan,4,2        ## @show_stats_lifespan
	.comm	_set_stats_lifespan,4,2         ## @set_stats_lifespan
	.no_dead_strip	_alloc_hsa_lifespan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_hsa_lifespan
_alloc_hsa_lifespan:                    ; @alloc_hsa_lifespan
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	str	x20, [x0]
Lloh3:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _S_IRUGO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IRUGO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #8]
Lloh9:
	adrp	x8, _show_stats_lifespan@GOTPAGE
Lloh10:
	ldr	x8, [x8, _show_stats_lifespan@GOTPAGEOFF]
Lloh11:
	adrp	x9, _set_stats_lifespan@GOTPAGE
Lloh12:
	ldr	x9, [x9, _set_stats_lifespan@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	str	xzr, [x0, #24]
	str	w19, [x0, #16]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_show_stats_lifespan,4,2        ; @show_stats_lifespan
	.comm	_set_stats_lifespan,4,2         ; @set_stats_lifespan
	.no_dead_strip	_alloc_hsa_lifespan
.subsections_via_symbols
