	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function servent_test_getservbyport
_servent_test_getservbyport:            ## @servent_test_getservbyport
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_dump_servent
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_getservbyport
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_servent_test_correctness
	movl	$-1, %r15d
	leaq	L_str.4(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_compare_servent
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_servent_check_ambiguity
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	leaq	L_str.3(%rip), %r12
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r12, %rdi
	callq	_puts
	movl	%r15d, %eax
	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	"testing getservbyport() with the following data..."

L_str.3:                                ## @str.3
	.asciz	"ok"

L_str.4:                                ## @str.4
	.asciz	"not ok"

	.no_dead_strip	_servent_test_getservbyport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function servent_test_getservbyport
_servent_test_getservbyport:            ; @servent_test_getservbyport
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x20
	bl	_dump_servent
	ldp	w1, w0, [x20]
	bl	_getservbyport
	mov	x21, x0
	mov	x1, #0
	bl	_servent_test_correctness
	cbz	x0, LBB0_2
LBB0_1:
	mov	w19, #-1
Lloh2:
	adrp	x0, l_str.4@PAGE
Lloh3:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_compare_servent
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_servent_check_ambiguity
	cbnz	x0, LBB0_1
LBB0_4:
	mov	w19, #0
Lloh4:
	adrp	x0, l_str.3@PAGE
Lloh5:
	add	x0, x0, l_str.3@PAGEOFF
LBB0_5:
	bl	_puts
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"testing getservbyport() with the following data..."

l_str.3:                                ; @str.3
	.asciz	"ok"

l_str.4:                                ; @str.4
	.asciz	"not ok"

	.no_dead_strip	_servent_test_getservbyport
.subsections_via_symbols
