	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doit
_doit:                                  ## @doit
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_verbose_counter@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rbx, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_printf
LBB0_2:
	leaq	-360(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -320(%rbp)
	movq	_family@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -360(%rbp)
	movq	_socktype@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -356(%rbp)
	leaq	-312(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_4:
	movq	_verbose_counter@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	$10, %edi
	callq	_putchar
LBB0_6:
	movq	-312(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.8:
	leaq	-304(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$10, %edi
	callq	_putchar
	movq	_verbose_counter@GOTPCREL(%rip), %r14
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r15), %r15
	testq	%r15, %r15
	je	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	movl	24(%r15), %edi
	callq	_socket_get_address
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r13, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_inet_ntop
	movq	(%r14), %rcx
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r15), %ebx
	movl	4(%r15), %r14d
	movl	8(%r15), %r12d
	movl	24(%r15), %edi
	callq	_socket_get_port
	movl	%eax, %edi
	callq	_ntohs
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movq	%r13, %r8
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_printf
	movq	16(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_16
LBB0_17:
	movq	-312(%rbp), %rdi
	jmp	LBB0_18
LBB0_7:
	xorl	%edi, %edi
LBB0_18:
	callq	_freeaddrinfo
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose_counter,8,3            ## @verbose_counter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%s,%s)... "

L_.str.1:                               ## @.str.1
	.asciz	"null"

	.comm	_flags,4,2                      ## @flags
	.comm	_family,4,2                     ## @family
	.comm	_socktype,4,2                   ## @socktype
L_.str.2:                               ## @.str.2
	.asciz	"error: %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"\tfamily = %d, socktype = %d, protocol = %d, address = \"%s\", port = %d"

L_.str.6:                               ## @.str.6
	.asciz	", canonname = \"%s\""

L_str:                                  ## @str
	.asciz	"\tbad address?"

	.no_dead_strip	_doit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doit
_doit:                                  ; @doit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x28, x27, [sp, #368]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #384]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #400]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _verbose_counter@GOTPAGE
Lloh4:
	ldr	x23, [x23, _verbose_counter@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x20, #0
	csel	x8, x8, x20, eq
	stp	x8, x19, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_2:
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh9:
	adrp	x8, _flags@GOTPAGE
Lloh10:
	ldr	x8, [x8, _flags@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #96]
Lloh12:
	adrp	x8, _family@GOTPAGE
Lloh13:
	ldr	x8, [x8, _family@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _socktype@GOTPAGE
Lloh16:
	ldr	x9, [x9, _socktype@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #56]
	add	x2, sp, #56
	add	x3, sp, #48
	mov	x0, x20
	mov	x1, x19
	bl	_getaddrinfo
	cbz	w0, LBB0_4
; %bb.3:
	bl	_gai_strerror
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #10
	bl	_putchar
LBB0_6:
	ldr	x24, [sp, #48]
	cbz	x24, LBB0_17
; %bb.7:
	add	x25, sp, #104
Lloh20:
	adrp	x19, l_str@PAGE
Lloh21:
	add	x19, x19, l_str@PAGEOFF
Lloh22:
	adrp	x20, l_.str.5@PAGE
Lloh23:
	add	x20, x20, l_.str.5@PAGEOFF
Lloh24:
	adrp	x21, l_.str.6@PAGE
Lloh25:
	add	x21, x21, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x24, [x24, #32]
	cbz	x24, LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x24]
	ldr	w0, [x24, #24]
	bl	_socket_get_address
	mov	x1, x0
	add	x2, sp, #104
	mov	x0, x22
	mov	w3, #256
	bl	_inet_ntop
	ldr	x8, [x23]
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x24, #24]
	ldp	w22, w26, [x24]
	ldr	w27, [x24, #8]
	bl	_socket_get_port
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #24]
	stp	x26, x27, [sp, #8]
	str	x22, [sp]
	mov	x0, x20
	bl	_printf
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	x8, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_puts
	b	LBB0_9
LBB0_16:
	ldr	x0, [sp, #48]
	b	LBB0_18
LBB0_17:
	mov	x0, #0
LBB0_18:
	bl	_freeaddrinfo
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #400]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #384]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #368]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose_counter,8,3            ; @verbose_counter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%s,%s)... "

l_.str.1:                               ; @.str.1
	.asciz	"null"

	.comm	_flags,4,2                      ; @flags
	.comm	_family,4,2                     ; @family
	.comm	_socktype,4,2                   ; @socktype
l_.str.2:                               ; @.str.2
	.asciz	"error: %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"\tfamily = %d, socktype = %d, protocol = %d, address = \"%s\", port = %d"

l_.str.6:                               ; @.str.6
	.asciz	", canonname = \"%s\""

l_str:                                  ; @str
	.asciz	"\tbad address?"

	.no_dead_strip	_doit
.subsections_via_symbols
