	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StCreateListener               ## -- Begin function StCreateListener
	.p2align	4, 0x90
_StCreateListener:                      ## @StCreateListener
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jge	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_LockList
	movq	(%r15), %rdi
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	callq	_SiAddListener
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ALog
	movq	(%r15), %rdi
	callq	_IncrementServerConfigRevision
	jmp	LBB0_6
LBB0_2:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_ERR_LISTENER_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_UnlockList
	movl	$250, %edi
	callq	_SleepThread
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_NO_ERROR,4,2               ## @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ## @SERVER_ADMIN_ONLY
	.comm	_ERR_LISTENER_ALREADY_EXISTS,4,2 ## @ERR_LISTENER_ALREADY_EXISTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LA_CREATE_LISTENER"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StCreateListener               ; -- Begin function StCreateListener
	.p2align	2
_StCreateListener:                      ; @StCreateListener
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #16, lsl #12                ; =65536
	b.ge	LBB0_4
; %bb.2:
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_LockList
	ldr	x0, [x20]
	ldp	w1, w2, [x21]
	bl	_SiAddListener
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w3, [x21]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	bl	_ALog
	ldr	x0, [x20]
	bl	_IncrementServerConfigRevision
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x8, _ERR_LISTENER_ALREADY_EXISTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_LISTENER_ALREADY_EXISTS@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_6:
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_UnlockList
	mov	w0, #250
	bl	_SleepThread
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_NO_ERROR,4,2               ; @ERR_NO_ERROR
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.comm	_SERVER_ADMIN_ONLY,4,2          ; @SERVER_ADMIN_ONLY
	.comm	_ERR_LISTENER_ALREADY_EXISTS,4,2 ; @ERR_LISTENER_ALREADY_EXISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LA_CREATE_LISTENER"

.subsections_via_symbols
