	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bufferevent_pair_elt_new
_bufferevent_pair_elt_new:              ## @bufferevent_pair_elt_new
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$4, %esi
	callq	_mm_calloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_bufferevent_ops_pair@GOTPCREL(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_bufferevent_init_common_
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_mm_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edi
	movq	_be_pair_outbuf_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_evbuffer_add_cb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_bufferevent_init_generic_timeout_cbs_
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_downcast
	movl	%eax, %edi
	callq	_bufferevent_free
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_bufferevent_ops_pair,4,2       ## @bufferevent_ops_pair
	.comm	_be_pair_outbuf_cb,4,2          ## @be_pair_outbuf_cb
	.no_dead_strip	_bufferevent_pair_elt_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bufferevent_pair_elt_new
_bufferevent_pair_elt_new:              ; @bufferevent_pair_elt_new
	.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	x21, x0
	mov	w0, #1
	mov	w1, #4
	bl	_mm_calloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x2, _bufferevent_ops_pair@GOTPAGE
Lloh1:
	ldr	x2, [x2, _bufferevent_ops_pair@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_bufferevent_init_common_
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_mm_free
LBB0_3:
	mov	x19, #0
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _be_pair_outbuf_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _be_pair_outbuf_cb@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_evbuffer_add_cb
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_bufferevent_init_generic_timeout_cbs_
LBB0_6:
	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
LBB0_7:
	mov	x0, x19
	bl	_downcast
	bl	_bufferevent_free
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_bufferevent_ops_pair,4,2       ; @bufferevent_ops_pair
	.comm	_be_pair_outbuf_cb,4,2          ; @be_pair_outbuf_cb
	.no_dead_strip	_bufferevent_pair_elt_new
.subsections_via_symbols
