	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writer_register
_writer_register:                       ## @writer_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	_writer_register.next_registered_writer_idx(%rip), %rax
	movq	_MAX_REGISTERED_WRITERS_NB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_1:
	movq	_registered_writers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leal	1(%rax), %edx
	movl	%edx, _writer_register.next_registered_writer_idx(%rip)
	movq	%rdi, (%rcx,%rax,8)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_writer_register.next_registered_writer_idx,4,2 ## @writer_register.next_registered_writer_idx
	.comm	_MAX_REGISTERED_WRITERS_NB,4,2  ## @MAX_REGISTERED_WRITERS_NB
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_registered_writers,8,3         ## @registered_writers
	.no_dead_strip	_writer_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writer_register
_writer_register:                       ; @writer_register
	.cfi_startproc
; %bb.0:
	adrp	x8, _writer_register.next_registered_writer_idx@PAGE
	ldrsw	x9, [x8, _writer_register.next_registered_writer_idx@PAGEOFF]
Lloh0:
	adrp	x10, _MAX_REGISTERED_WRITERS_NB@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAX_REGISTERED_WRITERS_NB@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	_AVERROR
LBB0_2:
Lloh6:
	adrp	x10, _registered_writers@GOTPAGE
Lloh7:
	ldr	x10, [x10, _registered_writers@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	w11, w9, #1
	str	w11, [x8, _writer_register.next_registered_writer_idx@PAGEOFF]
	str	x0, [x10, x9, lsl #3]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_writer_register.next_registered_writer_idx,4,2 ; @writer_register.next_registered_writer_idx
	.comm	_MAX_REGISTERED_WRITERS_NB,4,2  ; @MAX_REGISTERED_WRITERS_NB
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_registered_writers,8,3         ; @registered_writers
	.no_dead_strip	_writer_register
.subsections_via_symbols
