	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function protoent_test_getprotobyname
_protoent_test_getprotobyname:          ## @protoent_test_getprotobyname
	.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, %r15
	movq	%rdi, %r13
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%r13, %rdi
	callq	_dump_protoent
	movq	(%r13), %rdi
	callq	_getprotobyname
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_protoent_test_correctness
	movl	$-1, %r14d
	leaq	L_str.4(%rip), %r12
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	movq	%r12, %rdi
	callq	_puts
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_compare_protoent
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_protoent_check_ambiguity
	testq	%rax, %rax
	jne	LBB0_11
LBB0_3:
	movq	8(%r13), %r14
	movq	(%r14), %rdi
	leaq	L_str.3(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.4:
	addq	$8, %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rdi
	addq	$8, %r14
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_getprotobyname
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_protoent_test_correctness
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_compare_protoent
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_protoent_check_ambiguity
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	leaq	L_str.4(%rip), %r12
	movl	$-1, %r14d
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"testing getprotobyname() with the following data:"

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

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

	.no_dead_strip	_protoent_test_getprotobyname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function protoent_test_getprotobyname
_protoent_test_getprotobyname:          ; @protoent_test_getprotobyname
	.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	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_protoent
	ldr	x0, [x20]
	bl	_getprotobyname
	mov	x21, x0
	mov	x1, #0
	bl	_protoent_test_correctness
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #-1
Lloh2:
	adrp	x21, l_str.4@PAGE
Lloh3:
	add	x21, x21, l_str.4@PAGEOFF
LBB0_2:
	mov	x0, x21
	bl	_puts
	mov	x0, x19
	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
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, #0
	bl	_compare_protoent
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_protoent_check_ambiguity
	cbnz	x0, LBB0_1
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_12
; %bb.6:
	add	x24, x8, #8
Lloh4:
	adrp	x21, l_str.4@PAGE
Lloh5:
	add	x21, x21, l_str.4@PAGEOFF
Lloh6:
	adrp	x23, l_str.3@PAGE
Lloh7:
	add	x23, x23, l_str.3@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x24], #8
	cbz	x0, LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getprotobyname
	mov	x22, x0
	mov	x1, #0
	bl	_protoent_test_correctness
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, #0
	bl	_compare_protoent
	cbz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_protoent_check_ambiguity
	cbz	x0, LBB0_7
LBB0_11:
	mov	w19, #-1
	b	LBB0_2
LBB0_12:
	mov	w19, #0
Lloh8:
	adrp	x21, l_str.3@PAGE
Lloh9:
	add	x21, x21, l_str.3@PAGEOFF
	b	LBB0_2
LBB0_13:
	mov	w19, #0
	mov	x21, x23
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"testing getprotobyname() with the following data:"

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

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

	.no_dead_strip	_protoent_test_getprotobyname
.subsections_via_symbols
