	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_connect_hostname_event_cb
_be_connect_hostname_event_cb:          ## @be_connect_hostname_event_cb
	.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
	cmpw	$0, (%rdx)
	movslq	%esi, %rbx
	je	LBB0_1
## %bb.8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TT_FAIL                        ## TAILCALL
LBB0_1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_TT_BLATHER
	movw	%bx, (%r15)
	movq	_BEV_EVENT_CONNECTED@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	callq	_bufferevent_socket_get_dns_error
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_evutil_gai_strerror
	movslq	%eax, %rdi
	callq	_TT_BLATHER
LBB0_5:
	movq	_total_connected_or_failed@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rdi
	incq	%rdi
	movl	%edi, (%rbx)
	callq	_TT_BLATHER
	movq	_total_n_accepted@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_9
## %bb.6:
	cmpl	$5, (%rbx)
	jl	LBB0_9
## %bb.7:
	movq	_be_connect_hostname_base@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_event_base_loopexit            ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ## @BEV_EVENT_CONNECTED
	.comm	_BEV_EVENT_ERROR,2,1            ## @BEV_EVENT_ERROR
	.comm	_total_connected_or_failed,4,2  ## @total_connected_or_failed
	.comm	_total_n_accepted,4,2           ## @total_n_accepted
	.comm	_be_connect_hostname_base,4,2   ## @be_connect_hostname_base
	.no_dead_strip	_be_connect_hostname_event_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_connect_hostname_event_cb
_be_connect_hostname_event_cb:          ; @be_connect_hostname_event_cb
	.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	x21, x1
	mov	x20, x0
	ldrh	w8, [x2]
	sxtw	x0, w21
	cbz	w8, LBB0_2
; %bb.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
	b	_TT_FAIL
LBB0_2:
	mov	x19, x2
	bl	_TT_BLATHER
	strh	w21, [x19]
Lloh0:
	adrp	x8, _BEV_EVENT_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_CONNECTED@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w8, w8, w21
	tst	w8, #0xffff
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _BEV_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BEV_EVENT_ERROR@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_bufferevent_socket_get_dns_error
	cbz	w0, LBB0_6
; %bb.5:
	str	w0, [x19, #4]
	bl	_evutil_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_TT_BLATHER
LBB0_6:
Lloh4:
	adrp	x19, _total_connected_or_failed@GOTPAGE
Lloh5:
	ldr	x19, [x19, _total_connected_or_failed@GOTPAGEOFF]
	ldrsw	x8, [x19]
	add	x0, x8, #1
	str	w0, [x19]
	bl	_TT_BLATHER
Lloh6:
	adrp	x8, _total_n_accepted@GOTPAGE
Lloh7:
	ldr	x8, [x8, _total_n_accepted@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	cmp	w8, #3
	ccmp	w9, #5, #8, ge
	b.ge	LBB0_8
LBB0_7:
	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_8:
Lloh9:
	adrp	x8, _be_connect_hostname_base@GOTPAGE
Lloh10:
	ldr	x8, [x8, _be_connect_hostname_base@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	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	_event_base_loopexit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_CONNECTED,2,1        ; @BEV_EVENT_CONNECTED
	.comm	_BEV_EVENT_ERROR,2,1            ; @BEV_EVENT_ERROR
	.comm	_total_connected_or_failed,4,2  ; @total_connected_or_failed
	.comm	_total_n_accepted,4,2           ; @total_n_accepted
	.comm	_be_connect_hostname_base,4,2   ; @be_connect_hostname_base
	.no_dead_strip	_be_connect_hostname_event_cb
.subsections_via_symbols
