	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_port_new_pp                    ## -- Begin function port_new_pp
	.p2align	4, 0x90
_port_new_pp:                           ## @port_new_pp
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	4(%rdx), %edx
	movl	4(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_asprintf
	testl	%eax, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_2:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_port_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_log_warnx
	movq	-40(%rbp), %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_6:
	movq	%r12, 24(%rbx)
	movq	-40(%rbp), %rax
	movq	%rax, (%rbx)
	movq	_p_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	_p_ts@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r15, 16(%rbx)
	movq	_p_pps@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, 8(%rbx)
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s"

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

L_.str.2:                               ## @.str.2
	.asciz	"duplicate port \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"calloc"

	.comm	_p_next,4,2                     ## @p_next
	.comm	_p_ts,4,2                       ## @p_ts
	.comm	_p_pps,4,2                      ## @p_pps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_port_new_pp                    ; -- Begin function port_new_pp
	.p2align	2
_port_new_pp:                           ; @port_new_pp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w2, [x2, #4]
	ldr	w3, [x1, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	cmp	w0, #0
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_2:
	ldr	x1, [sp, #8]
	mov	x0, x21
	bl	_port_find
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_warnx
	ldr	x0, [sp, #8]
	bl	_free
	mov	x22, #0
	b	LBB0_7
LBB0_4:
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x22, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_6:
	str	x21, [x22, #24]
	ldr	x8, [sp, #8]
	str	x8, [x22]
Lloh8:
	adrp	x8, _p_next@GOTPAGE
Lloh9:
	ldr	x8, [x8, _p_next@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
Lloh11:
	adrp	x8, _p_ts@GOTPAGE
Lloh12:
	ldr	x8, [x8, _p_ts@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	str	x20, [x22, #16]
Lloh14:
	adrp	x8, _p_pps@GOTPAGE
Lloh15:
	ldr	x8, [x8, _p_pps@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	str	x19, [x22, #8]
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s"

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

l_.str.2:                               ; @.str.2
	.asciz	"duplicate port \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"calloc"

	.comm	_p_next,4,2                     ; @p_next
	.comm	_p_ts,4,2                       ; @p_ts
	.comm	_p_pps,4,2                      ; @p_pps
.subsections_via_symbols
