	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_socket_enable
_be_socket_enable:                      ## @be_socket_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_EV_READ@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rdi
	leaq	8(%rbx), %rsi
	callq	_be_socket_add
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_2:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_be_socket_add
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.no_dead_strip	_be_socket_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_socket_enable
_be_socket_enable:                      ; @be_socket_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w1
	tst	w8, #0xffff
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #12
	add	x1, x19, #8
	bl	_be_socket_add
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_2:
	and	w8, w20, #0xffff
Lloh2:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, x19, #4
	mov	x1, x19
	bl	_be_socket_add
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.no_dead_strip	_be_socket_enable
.subsections_via_symbols
