	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_preresolve                  ## -- Begin function do_preresolve
	.p2align	4, 0x90
_do_preresolve:                         ## @do_preresolve
	.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
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.1:
	movq	%rdi, %r15
	movq	_GETADDR_RESOLVE@GOTPCREL(%rip), %rax
	movq	_GETADDR_UPDATE_MANAGEMENT_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	movq	_GETADDR_MENTION_RESOLVE_RETRY@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_GETADDR_FATAL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$1, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	-8(%rax,%r13,8), %r12
	movl	60(%r12), %edi
	callq	_proto_is_dgram
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GETADDR_DATAGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SF_HOST_RANDOMIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GETADDR_RANDOMIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%r14d, %ebx
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %ebx
	movq	48(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %ecx
	movl	56(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_do_preresolve_host
	testl	%eax, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	48(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	movl	24(%r12), %ecx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	callq	_do_preresolve_host
	testl	%eax, %eax
	jne	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %ecx
	movl	40(%r12), %edx
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_do_preresolve_host
	testl	%eax, %eax
	jne	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r12)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_GETADDR_PASSIVE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_GETADDR_RANDOMIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	notl	%r8d
	andl	%ebx, %r8d
	movq	16(%r12), %rsi
	movl	28(%r12), %edx
	movl	24(%r12), %ecx
	movq	%r15, %rdi
	callq	_do_preresolve_host
	testl	%eax, %eax
	jne	LBB0_18
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	incq	%r13
	jmp	LBB0_2
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_signal_soft              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GETADDR_RESOLVE,4,2            ## @GETADDR_RESOLVE
	.comm	_GETADDR_UPDATE_MANAGEMENT_STATE,4,2 ## @GETADDR_UPDATE_MANAGEMENT_STATE
	.comm	_GETADDR_MENTION_RESOLVE_RETRY,4,2 ## @GETADDR_MENTION_RESOLVE_RETRY
	.comm	_GETADDR_FATAL,4,2              ## @GETADDR_FATAL
	.comm	_GETADDR_DATAGRAM,4,2           ## @GETADDR_DATAGRAM
	.comm	_SF_HOST_RANDOMIZE,4,2          ## @SF_HOST_RANDOMIZE
	.comm	_GETADDR_RANDOMIZE,4,2          ## @GETADDR_RANDOMIZE
	.comm	_GETADDR_PASSIVE,4,2            ## @GETADDR_PASSIVE
	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Preresolving failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_preresolve                  ; -- Begin function do_preresolve
	.p2align	2
_do_preresolve:                         ; @do_preresolve
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x22, [x0, #16]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x0
	mov	x23, #0
Lloh0:
	adrp	x8, _GETADDR_RESOLVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GETADDR_RESOLVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _GETADDR_UPDATE_MANAGEMENT_STATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GETADDR_UPDATE_MANAGEMENT_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _GETADDR_MENTION_RESOLVE_RETRY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GETADDR_MENTION_RESOLVE_RETRY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _GETADDR_FATAL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GETADDR_FATAL@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
Lloh12:
	adrp	x24, _GETADDR_DATAGRAM@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GETADDR_DATAGRAM@GOTPAGEOFF]
Lloh14:
	adrp	x25, _SF_HOST_RANDOMIZE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _SF_HOST_RANDOMIZE@GOTPAGEOFF]
	orr	w20, w8, w9
Lloh16:
	adrp	x26, _GETADDR_RANDOMIZE@GOTPAGE
Lloh17:
	ldr	x26, [x26, _GETADDR_RANDOMIZE@GOTPAGEOFF]
Lloh18:
	adrp	x27, _GETADDR_PASSIVE@GOTPAGE
Lloh19:
	ldr	x27, [x27, _GETADDR_PASSIVE@GOTPAGEOFF]
	mov	x8, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x28, [x8, x23, lsl #3]
	ldr	w0, [x28, #60]
	bl	_proto_is_dgram
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	ldr	w9, [x19]
	ldr	w10, [x25]
	ldr	w11, [x26]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	orr	w8, w8, w20
	orr	w21, w8, w9
	ldr	x8, [x28, #48]
	cbnz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x28, #56]
	ldr	w3, [x28, #24]
	mov	x0, x19
	mov	x4, x21
	bl	_do_preresolve_host
	cbnz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28, #48]
	cbz	x8, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	ldr	w3, [x28, #24]
	mov	x0, x19
	mov	x4, x20
	bl	_do_preresolve_host
	cbnz	w0, LBB0_15
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x28, #8]
	cbz	x1, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x28, #40]
	ldr	w3, [x28, #24]
	mov	x0, x19
	mov	x4, x21
	bl	_do_preresolve_host
	cbnz	w0, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x28, #32]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x27]
	orr	w8, w8, w21
	ldr	w9, [x26]
	bic	w4, w8, w9
	ldr	x1, [x28, #16]
	ldp	w3, w2, [x28, #24]
	mov	x0, x19
	bl	_do_preresolve_host
	cbnz	w0, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	b	LBB0_2
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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh20:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_throw_signal_soft
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GETADDR_RESOLVE,4,2            ; @GETADDR_RESOLVE
	.comm	_GETADDR_UPDATE_MANAGEMENT_STATE,4,2 ; @GETADDR_UPDATE_MANAGEMENT_STATE
	.comm	_GETADDR_MENTION_RESOLVE_RETRY,4,2 ; @GETADDR_MENTION_RESOLVE_RETRY
	.comm	_GETADDR_FATAL,4,2              ; @GETADDR_FATAL
	.comm	_GETADDR_DATAGRAM,4,2           ; @GETADDR_DATAGRAM
	.comm	_SF_HOST_RANDOMIZE,4,2          ; @SF_HOST_RANDOMIZE
	.comm	_GETADDR_RANDOMIZE,4,2          ; @GETADDR_RANDOMIZE
	.comm	_GETADDR_PASSIVE,4,2            ; @GETADDR_PASSIVE
	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Preresolving failed"

.subsections_via_symbols
