	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_openssl_adj_timeouts
_be_openssl_adj_timeouts:               ## @be_openssl_adj_timeouts
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_upcast
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_generic_adj_timeouts_ ## TAILCALL
LBB0_1:
	leaq	8(%rbx), %r15
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_event_pending
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_evutil_timerisset
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rsi
	callq	_bufferevent_add_event_
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_4:
	callq	_event_remove_timer
LBB0_5:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_event_pending
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_evutil_timerisset
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rsi
	callq	_bufferevent_add_event_
	movl	%eax, %r15d
	shrl	$31, %r15d
	jmp	LBB0_9
LBB0_8:
	callq	_event_remove_timer
	xorl	%r15d, %r15d
LBB0_9:
	testl	%r14d, %r14d
	sets	%al
	orb	%r15b, %al
	movzbl	%al, %eax
	negl	%eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.no_dead_strip	_be_openssl_adj_timeouts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_openssl_adj_timeouts
_be_openssl_adj_timeouts:               ; @be_openssl_adj_timeouts
	.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	x19, x0
	bl	_upcast
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	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
	b	_bufferevent_generic_adj_timeouts_
LBB0_2:
	add	x20, x19, #8
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_event_pending
	cbz	x0, LBB0_6
; %bb.3:
	add	x21, x19, #12
	mov	x0, x21
	bl	_evutil_timerisset
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_bufferevent_add_event_
	mov	x20, x0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_event_remove_timer
LBB0_6:
	mov	w20, #0
LBB0_7:
Lloh3:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_event_pending
	cbz	x0, LBB0_11
; %bb.8:
	add	x21, x19, #4
	mov	x0, x21
	bl	_evutil_timerisset
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_bufferevent_add_event_
	lsr	w8, w0, #31
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_event_remove_timer
LBB0_11:
	mov	w8, #0
LBB0_12:
	cmp	w20, #0
	cset	w9, lt
	orr	w8, w9, w8
	sbfx	w0, w8, #0, #1
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.no_dead_strip	_be_openssl_adj_timeouts
.subsections_via_symbols
