	.file	"extr_so_reuseport_lb_test.c_lb_listen_socket.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket() failed: %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"setsockopt(SO_REUSEPORT_LB) failed: %s"
	.text
	.p2align 4
	.type	lb_listen_socket, @function
lb_listen_socket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	or	esi, DWORD PTR SOCK_STREAM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	socket@PLT
	mov	edi, DWORD PTR errno[rip]
	mov	r12d, eax
	call	strerror@PLT
	mov	edi, r12d
	lea	rsi, .LC0[rip]
	not	edi
	mov	edx, eax
	shr	edi, 31
	call	ATF_REQUIRE_MSG@PLT
	mov	edx, DWORD PTR SO_REUSEPORT_LB[rip]
	mov	rcx, rsp
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	mov	r8d, 8
	mov	edi, r12d
	mov	QWORD PTR [rsp], 1
	call	setsockopt@PLT
	mov	edi, DWORD PTR errno[rip]
	mov	ebx, eax
	call	strerror@PLT
	xor	edi, edi
	test	ebx, ebx
	lea	rsi, .LC1[rip]
	sete	dil
	mov	edx, eax
	call	ATF_REQUIRE_MSG@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lb_listen_socket, .-lb_listen_socket
	.comm	errno,4,4
	.comm	SO_REUSEPORT_LB,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_STREAM,4,4
	.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_so_reuseport_lb_test.c_lb_listen_socket.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket() failed: %s\000"
	.align	2
.LC1:
	.ascii	"setsockopt(SO_REUSEPORT_LB) failed: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lb_listen_socket, %function
lb_listen_socket:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L6
	ldr	ip, .L6+4
	ldr	r3, [r3]
	sub	sp, sp, #16
	orr	r1, r1, r3
	mov	r2, #0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	socket
	ldr	r6, .L6+8
	mov	r4, r0
	ldr	r0, [r6]
	bl	strerror
	mov	r2, r0
	mvn	r0, r4
	ldr	r1, .L6+12
	lsr	r0, r0, #31
	bl	ATF_REQUIRE_MSG
	mov	r1, #4
	mov	ip, #1
	ldr	r3, .L6+16
	ldr	r2, .L6+20
	str	r1, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	add	r3, sp, #8
	mov	r0, r4
	str	ip, [sp, #8]
	bl	setsockopt
	mov	r5, r0
	ldr	r0, [r6]
	bl	strerror
	mov	r2, r0
	clz	r0, r5
	ldr	r1, .L6+24
	lsr	r0, r0, #5
	bl	ATF_REQUIRE_MSG
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	SOCK_STREAM
	.word	.LC2
	.word	errno
	.word	.LC0
	.word	SOL_SOCKET
	.word	SO_REUSEPORT_LB
	.word	.LC1
	.size	lb_listen_socket, .-lb_listen_socket
	.comm	errno,4,4
	.comm	SO_REUSEPORT_LB,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_STREAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
