	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_addrport
_decode_addrport:                       ## @decode_addrport
	.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
	movl	%r9d, %ebx
	movl	%r8d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_bzero
	testl	%r13d, %r13d
	jne	LBB0_1
## %bb.2:
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PF_INET@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	%ebx, %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movl	%eax, -72(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	$-1, %r14d
	testl	%ebx, %ebx
	jne	LBB0_11
## %bb.7:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_11
LBB0_8:
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rdx
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	jle	LBB0_10
## %bb.9:
	callq	_freeaddrinfo
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rdx
LBB0_10:
	movl	8(%rdi), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getaddrinfo(\"%.64s\", \"%.64s\"): %s"

L_.str.1:                               ## @.str.1
	.asciz	"internal error: addrlen < res->ai_addrlen"

	.no_dead_strip	_decode_addrport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_addrport
_decode_addrport:                       ; @decode_addrport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x5
	mov	x24, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #24
	bl	_bzero
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PF_UNSPEC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PF_UNSPEC@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [sp, #60]
Lloh4:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w23, #0
	csel	w8, wzr, w8, eq
Lloh7:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #52]
	add	x2, sp, #40
	add	x3, sp, #32
	mov	x0, x20
	mov	x1, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_4
; %bb.1:
	cbnz	w23, LBB0_3
; %bb.2:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #8]
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	ldr	x0, [sp, #32]
	ldr	x2, [x0]
	cmp	x2, x22
	b.le	LBB0_6
; %bb.5:
	bl	_freeaddrinfo
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x0, [sp, #32]
	ldr	x2, [x0]
LBB0_6:
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	_memcpy
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getaddrinfo(\"%.64s\", \"%.64s\"): %s"

l_.str.1:                               ; @.str.1
	.asciz	"internal error: addrlen < res->ai_addrlen"

	.no_dead_strip	_decode_addrport
.subsections_via_symbols
