	.file	"extr_evutil.c_evutil_getaddrinfo_infer_protocols.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	evutil_getaddrinfo_infer_protocols, @function
evutil_getaddrinfo_infer_protocols:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rdi]
	test	rdx, rdx
	jne	.L2
	test	rax, rax
	je	.L1
	cmp	QWORD PTR SOCK_DGRAM[rip], rax
	je	.L12
	cmp	QWORD PTR SOCK_STREAM[rip], rax
	jne	.L1
	mov	rax, QWORD PTR IPPROTO_TCP[rip]
	mov	QWORD PTR [rdi], rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	test	rax, rax
	je	.L7
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	rdx, QWORD PTR IPPROTO_UDP[rip]
	je	.L13
	cmp	rdx, QWORD PTR IPPROTO_TCP[rip]
	jne	.L1
	mov	rax, QWORD PTR SOCK_STREAM[rip]
	mov	QWORD PTR 8[rdi], rax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR IPPROTO_UDP[rip]
	mov	QWORD PTR [rdi], rax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR SOCK_DGRAM[rip]
	mov	QWORD PTR 8[rdi], rax
	ret
	.cfi_endproc
.LFE0:
	.size	evutil_getaddrinfo_infer_protocols, .-evutil_getaddrinfo_infer_protocols
	.comm	SOCK_STREAM,8,8
	.comm	SOCK_DGRAM,8,8
	.comm	IPPROTO_UDP,8,8
	.comm	IPPROTO_TCP,8,8
	.comm	IPPROTO_SCTP,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_evutil.c_evutil_getaddrinfo_infer_protocols.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	evutil_getaddrinfo_infer_protocols, %function
evutil_getaddrinfo_infer_protocols:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldm	r0, {r2, r3}
	cmp	r2, #0
	bne	.L2
	cmp	r3, #0
	bxeq	lr
	ldr	r2, .L14
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L12
	ldr	r2, .L14+4
	ldr	r2, [r2]
	cmp	r2, r3
	ldreq	r3, .L14+8
	ldreq	r3, [r3]
	streq	r3, [r0]
	bx	lr
.L2:
	cmp	r3, #0
	bxne	lr
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L13
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L14+4
	ldreq	r3, [r3]
	streq	r3, [r0, #4]
	bx	lr
.L12:
	ldr	r3, .L14+12
	ldr	r3, [r3]
	str	r3, [r0]
	bx	lr
.L13:
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [r0, #4]
	bx	lr
.L15:
	.align	2
.L14:
	.word	SOCK_DGRAM
	.word	SOCK_STREAM
	.word	IPPROTO_TCP
	.word	IPPROTO_UDP
	.size	evutil_getaddrinfo_infer_protocols, .-evutil_getaddrinfo_infer_protocols
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	IPPROTO_UDP,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	IPPROTO_SCTP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
