	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert_table                   ## -- Begin function insert_table
	.p2align	4, 0x90
_insert_table:                          ## @insert_table
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CLOCK_MONOTONIC_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ts@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_clock_gettime
	movl	(%rbx), %ebx
	xorl	%eax, %eax
	callq	_new_id
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, (%r14)
	movl	$24, %edi
	callq	_malloc
	movq	_NIL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	%rax, %rcx
	je	LBB0_4
## %bb.1:
	movl	%ebx, 20(%rax)
	movl	(%r15), %esi
	movl	%esi, 16(%rax)
	movq	_table@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%rdi, 8(%rax)
	cmpq	%rcx, %rdi
	je	LBB0_3
## %bb.2:
	movq	%rax, (%rdi)
	movq	(%rdx), %rcx
LBB0_3:
	movq	%rcx, (%rax)
	movq	%rax, (%rsi)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movl	$1, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_MONOTONIC_FAST,4,2       ## @CLOCK_MONOTONIC_FAST
	.comm	_ts,4,2                         ## @ts
	.comm	_NIL,8,3                        ## @NIL
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"insert_table: Out of memory"

	.comm	_table,8,3                      ## @table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert_table                   ; -- Begin function insert_table
	.p2align	2
_insert_table:                          ; @insert_table
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CLOCK_MONOTONIC_FAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_MONOTONIC_FAST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _ts@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ts@GOTPAGEOFF]
	mov	x1, x21
	bl	_clock_gettime
	ldr	w21, [x21]
	bl	_new_id
	str	w0, [x19]
	bl	_htonl
	str	w0, [x20]
	mov	w0, #24
	bl	_malloc
Lloh5:
	adrp	x9, _NIL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
	ldr	x8, [x9]
	cmp	x8, x0
	b.eq	LBB0_4
; %bb.1:
	str	w21, [x0, #20]
	ldr	w10, [x19]
	str	w10, [x0, #16]
Lloh7:
	adrp	x10, _table@GOTPAGE
Lloh8:
	ldr	x10, [x10, _table@GOTPAGEOFF]
	ldr	x11, [x10]
	str	x11, [x0, #8]
	cmp	x11, x8
	b.eq	LBB0_3
; %bb.2:
	str	x0, [x11]
	ldr	x8, [x9]
LBB0_3:
	str	x8, [x0]
	str	x0, [x10]
	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
LBB0_4:
Lloh9:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	mov	w0, #1
	bl	__exit
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_MONOTONIC_FAST,4,2       ; @CLOCK_MONOTONIC_FAST
	.comm	_ts,4,2                         ; @ts
	.comm	_NIL,8,3                        ; @NIL
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insert_table: Out of memory"

	.comm	_table,8,3                      ; @table
.subsections_via_symbols
