	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_target                     ## -- Begin function get_target
	.p2align	4, 0x90
_get_target:                            ## @get_target
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	cmpl	$65536, %esi                    ## imm = 0x10000
	jae	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	callq	_kdb_gethostbyname
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rcx
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.4:
	cmpl	$4, 8(%rax)
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 24(%rax)
	je	LBB0_7
## %bb.6:
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_get_target_impl                ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_8:
	movl	$-1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad port %d\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"can't resolve host\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_target                     ; -- Begin function get_target
	.p2align	2
_get_target:                            ; @get_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	cmp	w1, #16, lsl #12                ; =65536
	b.hs	LBB0_7
; %bb.1:
	mov	x20, x2
	bl	_kdb_gethostbyname
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x0, #8]
	cmp	w8, #4
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_8
; %bb.5:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x8]
	stp	w19, w8, [x20]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_get_target_impl
LBB0_7:
	str	x19, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	w0, #0
	bl	_vkprintf
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad port %d\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"can't resolve host\n"

.subsections_via_symbols
