	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carp_alloc
_carp_alloc:                            ## @carp_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
	movq	%rdi, %r15
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_carp_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	movq	(%r15), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_carp_alloc_if
	movq	%rax, %r14
LBB0_2:
	movq	_M_CARP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	movl	$56, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	_CARP_DFLTINTV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, (%rbx)
	movq	_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movl	$8, 8(%rbx)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	%rbx, %rdi
	callq	_CARP_LOCK_INIT
	leaq	16(%rbx), %rdi
	leaq	12(%rbx), %rsi
	movq	_CALLOUT_RETURNUNLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_callout_init_mtx
	movq	%r14, %rdi
	callq	_CIF_LOCK
	movq	_sc_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, %rdi
	callq	_CIF_UNLOCK
	movq	_carp_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_sc_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_carp_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_carp_sx,4,2                    ## @carp_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_M_CARP,4,2                     ## @M_CARP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_CARP_DFLTINTV,4,2              ## @CARP_DFLTINTV
	.comm	_INIT,4,2                       ## @INIT
	.comm	_CALLOUT_RETURNUNLOCKED,4,2     ## @CALLOUT_RETURNUNLOCKED
	.comm	_sc_list,4,2                    ## @sc_list
	.comm	_carp_mtx,4,2                   ## @carp_mtx
	.comm	_carp_list,4,2                  ## @carp_list
	.comm	_sc_next,4,2                    ## @sc_next
	.no_dead_strip	_carp_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function carp_alloc
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_carp_alloc:                            ; @carp_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	x21, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _carp_sx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _carp_sx@GOTPAGEOFF]
	bl	_sx_assert
	ldr	x19, [x21]
	cbnz	x19, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_carp_alloc_if
	mov	x19, x0
LBB0_2:
Lloh5:
	adrp	x22, _M_CARP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _M_CARP@GOTPAGEOFF]
Lloh7:
	adrp	x23, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x23, [x23, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w8, [x23]
Lloh9:
	adrp	x24, _M_ZERO@GOTPAGE
Lloh10:
	ldr	x24, [x24, _M_ZERO@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	w0, #56
	bl	_malloc
	mov	x20, x0
Lloh11:
	adrp	x8, _CARP_DFLTINTV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CARP_DFLTINTV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh16:
	adrp	x9, _INIT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INIT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	mov	w8, #8
	str	w8, [x0, #8]
	ldr	w1, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	stp	x21, x0, [x20, #32]
	mov	x0, x20
	bl	_CARP_LOCK_INIT
	add	x0, x20, #16
	add	x1, x20, #12
Lloh19:
	adrp	x8, _CALLOUT_RETURNUNLOCKED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CALLOUT_RETURNUNLOCKED@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_callout_init_mtx
	mov	x0, x19
	bl	_CIF_LOCK
Lloh22:
	adrp	x8, _sc_list@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sc_list@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	mov	x0, x19
	bl	_CIF_UNLOCK
Lloh25:
	adrp	x19, _carp_mtx@GOTPAGE
Lloh26:
	ldr	x19, [x19, _carp_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_mtx_lock
Lloh27:
	adrp	x8, _sc_next@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sc_next@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x0, _carp_list@GOTPAGE
Lloh31:
	ldr	x0, [x0, _carp_list@GOTPAGEOFF]
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
	mov	x0, x19
	bl	_mtx_unlock
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_carp_sx,4,2                    ; @carp_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_M_CARP,4,2                     ; @M_CARP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_CARP_DFLTINTV,4,2              ; @CARP_DFLTINTV
	.comm	_INIT,4,2                       ; @INIT
	.comm	_CALLOUT_RETURNUNLOCKED,4,2     ; @CALLOUT_RETURNUNLOCKED
	.comm	_sc_list,4,2                    ; @sc_list
	.comm	_carp_mtx,4,2                   ; @carp_mtx
	.comm	_carp_list,4,2                  ; @carp_list
	.comm	_sc_next,4,2                    ; @sc_next
	.no_dead_strip	_carp_alloc
.subsections_via_symbols
