	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evdns_add_server_port_with_base ## -- Begin function evdns_add_server_port_with_base
	.p2align	4, 0x90
_evdns_add_server_port_with_base:       ## @evdns_add_server_port_with_base
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r8, %r12
	movl	%ecx, %r13d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	$64, %edi
	callq	_mm_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movl	%r14d, 12(%rbx)
	movl	$1, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	%r13d, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%rbx, %r12
	addq	$8, %r12
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_server_port_ready_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	_event_assign
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_event_add
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movl	4(%rbx), %edi
	movq	_EVTHREAD_LOCKTYPE_RECURSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVTHREAD_ALLOC_LOCK
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	callq	_mm_free
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ## @server_port_ready_callback
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ## @EVTHREAD_LOCKTYPE_RECURSIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evdns_add_server_port_with_base ; -- Begin function evdns_add_server_port_with_base
	.p2align	2
_evdns_add_server_port_with_base:       ; @evdns_add_server_port_with_base
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w2, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x4
	mov	x23, x3
	mov	x20, x1
	mov	x21, x0
	mov	w0, #64
	bl	_mm_malloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	str	w20, [x19, #12]
	mov	w8, #1
	str	w8, [x19]
	stp	xzr, xzr, [x19, #48]
	str	w23, [x19, #40]
	stp	xzr, x22, [x19, #24]
	str	x21, [x19, #16]
	add	x22, x19, #8
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _EV_PERSIST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EV_PERSIST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh6:
	adrp	x8, _server_port_ready_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _server_port_ready_callback@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x5, x19
	bl	_event_assign
	mov	x0, x22
	mov	x1, #0
	bl	_event_add
	tbnz	x0, #63, LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVTHREAD_LOCKTYPE_RECURSIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_EVTHREAD_ALLOC_LOCK
	b	LBB0_2
LBB0_6:
	mov	x0, x19
	bl	_mm_free
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_server_port_ready_callback,4,2 ; @server_port_ready_callback
	.comm	_EVTHREAD_LOCKTYPE_RECURSIVE,4,2 ; @EVTHREAD_LOCKTYPE_RECURSIVE
.subsections_via_symbols
