	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_port
_add_port:                              ## @add_port
	.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	%rcx, %rbx
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	movq	_num_ports@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_ports@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	8(%rdi), %rcx
	movq	%rax, %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$12, %rcx
	decq	%rdx
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, -8(%rcx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r12d, -4(%rcx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, (%rcx)
	jne	LBB0_9
	jmp	LBB0_13
LBB0_10:
	leaq	(%rax,%rax,2), %rax
	leaq	12(,%rax,4), %rsi
	callq	_realloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$1, %esi
	callq	_krb5_err
	movq	(%r15), %rax
LBB0_12:
	movq	(%r13), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movl	%r14d, 8(%rax,%rdx,4)
	movl	%ebx, (%rax,%rdx,4)
	movl	%r12d, 4(%rax,%rdx,4)
	incq	%rcx
	movq	%rcx, (%r13)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"tcp"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_num_ports,8,3                  ## @num_ports
	.comm	_ports,8,3                      ## @ports
	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"realloc"

	.no_dead_strip	_add_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_port
_add_port:                              ; @add_port
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x3
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.2:
Lloh4:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
LBB0_4:
	ldr	w23, [x8]
Lloh8:
	adrp	x22, _num_ports@GOTPAGE
Lloh9:
	ldr	x22, [x22, _num_ports@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh10:
	adrp	x24, _ports@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ports@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x8, LBB0_10
; %bb.5:
	add	x9, x0, #4
	mov	x10, x8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #12
	subs	x10, x10, #1
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	cmp	w11, w23
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x9]
	cmp	w11, w19
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x9, #4]
	cmp	w11, w20
	b.ne	LBB0_6
	b	LBB0_13
LBB0_10:
	mov	w9, #12
	orr	x10, xzr, #0xc
	madd	x1, x8, x9, x10
	bl	_realloc
	str	x0, [x24]
	cbnz	x0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x3, l_.str.2@PAGE
Lloh16:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w1, #1
	bl	_krb5_err
	ldr	x0, [x24]
LBB0_12:
	ldr	x8, [x22]
	mov	w9, #12
	madd	x9, x8, x9, x0
	stp	w19, w20, [x9, #4]
	str	w23, [x9]
	add	x8, x8, #1
	str	x8, [x22]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"tcp"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_num_ports,8,3                  ; @num_ports
	.comm	_ports,8,3                      ; @ports
	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"realloc"

	.no_dead_strip	_add_port
.subsections_via_symbols
