	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evconnlistener_new_bind        ## -- Begin function evconnlistener_new_bind
	.p2align	4, 0x90
_evconnlistener_new_bind:               ## @evconnlistener_new_bind
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, -48(%rbp)
	testl	%r8d, %r8d
	je	LBB0_17
## %bb.1:
	movq	%r9, %r15
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movq	_EVUTIL_SOCK_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r9, %rcx
	testq	%r9, %r9
	jne	LBB0_3
## %bb.2:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	orl	(%rax), %esi
	movl	(%rcx), %edi
	movq	_LEV_OPT_CLOSE_ON_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_EVUTIL_SOCK_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_evutil_socket_
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.6:
	movl	%eax, %r12d
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_16
## %bb.7:
	movq	_LEV_OPT_REUSEABLE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movl	%r12d, %edi
	callq	_evutil_make_listen_socket_reuseable
	testq	%rax, %rax
	js	LBB0_16
LBB0_9:
	movq	_LEV_OPT_REUSEABLE_PORT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movl	%r12d, %edi
	callq	_evutil_make_listen_socket_reuseable_port
	testq	%rax, %rax
	js	LBB0_16
LBB0_11:
	movq	_LEV_OPT_DEFERRED_ACCEPT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movl	%r12d, %edi
	callq	_evutil_make_tcp_listen_socket_deferred
	testq	%rax, %rax
	js	LBB0_16
LBB0_13:
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movl	16(%rbp), %edx
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_bind
	testq	%rax, %rax
	js	LBB0_16
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_evconnlistener_new
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_18
LBB0_16:
	movl	%r12d, %edi
	callq	_evutil_closesocket
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ## @EVUTIL_SOCK_NONBLOCK
	.comm	_LEV_OPT_CLOSE_ON_EXEC,4,2      ## @LEV_OPT_CLOSE_ON_EXEC
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ## @EVUTIL_SOCK_CLOEXEC
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_LEV_OPT_REUSEABLE,4,2          ## @LEV_OPT_REUSEABLE
	.comm	_LEV_OPT_REUSEABLE_PORT,4,2     ## @LEV_OPT_REUSEABLE_PORT
	.comm	_LEV_OPT_DEFERRED_ACCEPT,4,2    ## @LEV_OPT_DEFERRED_ACCEPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evconnlistener_new_bind        ; -- Begin function evconnlistener_new_bind
	.p2align	2
_evconnlistener_new_bind:               ; @evconnlistener_new_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w8, #1
	str	w8, [sp, #12]
	cbz	w4, LBB0_13
; %bb.1:
	mov	x24, x6
	mov	x25, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EVUTIL_SOCK_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVUTIL_SOCK_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
	cmp	x5, #0
	csel	x9, x9, x5, eq
	ldr	w0, [x9]
Lloh8:
	adrp	x9, _LEV_OPT_CLOSE_ON_EXEC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LEV_OPT_CLOSE_ON_EXEC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _EVUTIL_SOCK_CLOEXEC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EVUTIL_SOCK_CLOEXEC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w9, w3
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
	mov	w2, #0
	bl	_evutil_socket_
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.2:
	mov	x26, x0
Lloh14:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	w4, #4
	bl	_setsockopt
	tbnz	x0, #63, LBB0_12
; %bb.3:
Lloh20:
	adrp	x8, _LEV_OPT_REUSEABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LEV_OPT_REUSEABLE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x26
	bl	_evutil_make_listen_socket_reuseable
	tbnz	x0, #63, LBB0_12
LBB0_5:
Lloh23:
	adrp	x8, _LEV_OPT_REUSEABLE_PORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LEV_OPT_REUSEABLE_PORT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x26
	bl	_evutil_make_listen_socket_reuseable_port
	tbnz	x0, #63, LBB0_12
LBB0_7:
Lloh26:
	adrp	x8, _LEV_OPT_DEFERRED_ACCEPT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LEV_OPT_DEFERRED_ACCEPT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x26
	bl	_evutil_make_tcp_listen_socket_deferred
	tbnz	x0, #63, LBB0_12
LBB0_9:
	cbz	x25, LBB0_11
; %bb.10:
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	bl	_bind
	tbnz	x0, #63, LBB0_12
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x26
	bl	_evconnlistener_new
	cbnz	x0, LBB0_14
LBB0_12:
	mov	x0, x26
	bl	_evutil_closesocket
LBB0_13:
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ; @EVUTIL_SOCK_NONBLOCK
	.comm	_LEV_OPT_CLOSE_ON_EXEC,4,2      ; @LEV_OPT_CLOSE_ON_EXEC
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ; @EVUTIL_SOCK_CLOEXEC
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_LEV_OPT_REUSEABLE,4,2          ; @LEV_OPT_REUSEABLE
	.comm	_LEV_OPT_REUSEABLE_PORT,4,2     ; @LEV_OPT_REUSEABLE_PORT
	.comm	_LEV_OPT_DEFERRED_ACCEPT,4,2    ; @LEV_OPT_DEFERRED_ACCEPT
.subsections_via_symbols
