	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subscribe_event_xa_alloc
_subscribe_event_xa_alloc:              ## @subscribe_event_xa_alloc
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_xa_load
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.6:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_xa_load
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	%rax, %r15
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_xa_insert
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_xa_init
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_xa_insert
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_subscribe_event_xa_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subscribe_event_xa_alloc
_subscribe_event_xa_alloc:              ; @subscribe_event_xa_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_xa_load
	mov	x21, x0
	cbz	x0, LBB0_4
LBB0_1:
	cbz	w20, LBB0_3
; %bb.2:
	add	x20, x21, #4
	mov	x0, x20
	mov	x1, x19
	bl	_xa_load
	cbz	x0, LBB0_7
LBB0_3:
	mov	w22, #0
	b	LBB0_11
LBB0_4:
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	add	x0, x0, #8
	bl	_INIT_LIST_HEAD
	add	x0, x21, #4
	bl	_xa_init
	ldr	w3, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_xa_insert
	cbz	w0, LBB0_1
; %bb.6:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_xa_insert
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	b	LBB0_11
LBB0_10:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_subscribe_event_xa_alloc
.subsections_via_symbols
