	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addrinfo_from_hostent
_addrinfo_from_hostent:                 ## @addrinfo_from_hostent
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_PF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, -64(%rbp)
	cmpl	$4, 8(%r12)
	jne	LBB0_8
## %bb.2:
	leaq	-68(%rbp), %r13
	jmp	LBB0_3
LBB0_6:
	movq	_PF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.7:
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, -80(%rbp)
	cmpl	$4, 8(%r12)
	movq	%r15, %r13
	jne	LBB0_8
LBB0_3:
	movq	24(%r12), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.4:
	movq	%r13, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movl	$40, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_evutil_new_addrinfo_
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_evutil_addrinfo_append_
	movq	%rax, %rbx
	movq	24(%r12), %rax
	movq	(%rax,%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	8(%r12), %edx
	movq	%r13, %rdi
	callq	_memcpy
	movq	%r15, %rdi
	movl	$40, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_evutil_new_addrinfo_
	addq	$8, %r14
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_event_warnx
	jmp	LBB0_17
LBB0_5:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%rbx, %rdi
	callq	_evutil_freeaddrinfo
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.13:
	movq	_EVUTIL_AI_CANONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.14:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.15:
	callq	_mm_strdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_AF_INET,4,2                    ## @AF_INET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Weird h_length from gethostbyname"

	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_EVUTIL_AI_CANONNAME,4,2        ## @EVUTIL_AI_CANONNAME
	.no_dead_strip	_addrinfo_from_hostent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addrinfo_from_hostent
_addrinfo_from_hostent:                 ; @addrinfo_from_hostent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	mov	x0, x22
	bl	_htons
	str	x0, [sp, #32]
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.ne	LBB0_11
; %bb.2:
	add	x23, x21, #20
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x9, _PF_INET6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.4:
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh9:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x22
	bl	_htons
	str	x0, [sp, #16]
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.ne	LBB0_11
; %bb.5:
	add	x23, sp, #8
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	x1, [x8]
	cbz	x1, LBB0_14
; %bb.7:
	mov	x0, x23
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	mov	w1, #40
	mov	x2, x20
	bl	_evutil_new_addrinfo_
	cbz	x0, LBB0_12
; %bb.8:
	mov	x1, x0
	mov	x22, #0
	mov	w24, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_evutil_addrinfo_append_
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	x1, [x8, x24]
	cbz	x1, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x19, #8]
	mov	x0, x23
	bl	_memcpy
	mov	x0, x21
	mov	w1, #40
	mov	x2, x20
	bl	_evutil_new_addrinfo_
	mov	x1, x0
	add	x24, x24, #8
	cbnz	x0, LBB0_9
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_event_warnx
	b	LBB0_14
LBB0_12:
	mov	x22, #0
LBB0_13:
	mov	x0, x22
	bl	_evutil_freeaddrinfo
LBB0_14:
	mov	x22, #0
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	cbz	x22, LBB0_15
; %bb.17:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _EVUTIL_AI_CANONNAME@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EVUTIL_AI_CANONNAME@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.18:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.19:
	bl	_mm_strdup
	str	x0, [x22, #8]
	cbnz	x0, LBB0_15
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_AF_INET,4,2                    ; @AF_INET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Weird h_length from gethostbyname"

	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_EVUTIL_AI_CANONNAME,4,2        ; @EVUTIL_AI_CANONNAME
	.no_dead_strip	_addrinfo_from_hostent
.subsections_via_symbols
