	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___timer_create                 ## -- Begin function __timer_create
	.p2align	4, 0x90
___timer_create:                        ## @__timer_create
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movl	$16, %edi
	callq	_malloc
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rax
	movq	_SIGEV_THREAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	callq	___sigev_check_init
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_3:
	movq	%r13, %rdx
	addq	$8, %rdx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	___sys_ktimer_create
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movq	$0, (%r13)
	movq	%r13, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r13, %rdi
	callq	_free
	movl	%ebx, (%r15)
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_SI_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___sigev_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movl	12(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	___sigev_get_sigevent
	movq	%r13, %rdx
	addq	$8, %rdx
	movl	%r12d, %edi
	leaq	-48(%rbp), %rsi
	callq	___sys_ktimer_create
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %r15
	movl	(%r15), %r12d
	movq	%rbx, %rdi
	callq	___sigev_free
	movq	%r13, %rdi
	callq	_free
	movl	%r12d, (%r15)
	jmp	LBB0_14
LBB0_10:
	movq	%r13, %rdi
	callq	_free
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_13:
	movq	_SNF_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	_timer_dispatch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r13), %eax
	movl	%eax, (%rbx)
	movq	%rbx, (%r13)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	___sigev_list_lock
	movq	%rbx, %rdi
	callq	___sigev_register
	xorl	%eax, %eax
	callq	___sigev_list_unlock
	movq	%r13, (%r15)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGEV_THREAD,8,3               ## @SIGEV_THREAD
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SI_TIMER,4,2                   ## @SI_TIMER
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_SNF_SYNC,4,2                   ## @SNF_SYNC
	.comm	_timer_dispatch,4,2             ## @timer_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___timer_create                 ; -- Begin function __timer_create
	.p2align	2
___timer_create:                        ; @__timer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	cbz	x22, LBB0_6
; %bb.2:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _SIGEV_THREAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGEV_THREAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	bl	___sigev_check_init
	cbz	x0, LBB0_13
; %bb.4:
	mov	x0, x19
	bl	_free
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	b	LBB0_11
LBB0_6:
	add	x2, x19, #8
	mov	x0, x21
	mov	x1, x22
	bl	___sys_ktimer_create
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.7:
	mov	w0, #0
	str	xzr, [x19]
LBB0_8:
	str	x19, [x20]
	b	LBB0_12
LBB0_9:
Lloh8:
	adrp	x20, _errno@GOTPAGE
Lloh9:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
LBB0_10:
	mov	x0, x19
	bl	_free
	str	w21, [x20]
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	add	sp, sp, #64
	ret
LBB0_13:
Lloh10:
	adrp	x8, _SI_TIMER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SI_TIMER@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, #0
	mov	w3, #0
	bl	___sigev_alloc
	cbz	x0, LBB0_16
; %bb.14:
	mov	x22, x0
	ldr	w2, [x0, #12]
	add	x1, sp, #8
	bl	___sigev_get_sigevent
	add	x2, x19, #8
	add	x1, sp, #8
	mov	x0, x21
	bl	___sys_ktimer_create
	cbz	w0, LBB0_17
; %bb.15:
Lloh13:
	adrp	x20, _errno@GOTPAGE
Lloh14:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	w21, [x20]
	mov	x0, x22
	bl	___sigev_free
	b	LBB0_10
LBB0_16:
	mov	x0, x19
	bl	_free
Lloh15:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
Lloh17:
	adrp	x8, _SNF_SYNC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNF_SYNC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x22, #8]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _timer_dispatch@GOTPAGE
Lloh21:
	ldr	x9, [x9, _timer_dispatch@GOTPAGEOFF]
	str	w8, [x22, #8]
Lloh22:
	ldr	w8, [x9]
	ldr	w9, [x19, #8]
	stp	w9, w8, [x22]
	str	x22, [x19]
	bl	___sigev_list_lock
	mov	x0, x22
	bl	___sigev_register
	bl	___sigev_list_unlock
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGEV_THREAD,8,3               ; @SIGEV_THREAD
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SI_TIMER,4,2                   ; @SI_TIMER
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_SNF_SYNC,4,2                   ; @SNF_SYNC
	.comm	_timer_dispatch,4,2             ; @timer_dispatch
.subsections_via_symbols
