	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_timeout                  ## -- Begin function proto_timeout
	.p2align	4, 0x90
_proto_timeout:                         ## @proto_timeout
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	(%rbx), %rax
	movq	_PROTO_CONN_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_PJDLOG_ASSERT
	movq	%rbx, %rdi
	callq	_proto_descriptor
	movl	$-1, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	%eax, %r15d
	movl	%r14d, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_SO_SNDTIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movl	%r15d, %edi
	movl	$16, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	movq	_SO_RCVTIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movl	%r15d, %edi
	movl	$16, %r8d
	callq	_setsockopt
	movq	%rax, %rbx
	sarq	$63, %rbx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PROTO_CONN_MAGIC,8,3           ## @PROTO_CONN_MAGIC
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proto_timeout                  ; -- Begin function proto_timeout
	.p2align	2
_proto_timeout:                         ; @proto_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PROTO_CONN_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PROTO_CONN_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	mov	x0, x19
	bl	_proto_descriptor
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	str	w20, [sp]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x20, _SOL_SOCKET@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _SO_SNDTIMEO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SO_SNDTIMEO@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, sp
	mov	w4, #16
	bl	_setsockopt
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _SO_RCVTIMEO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SO_RCVTIMEO@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w4, #16
	bl	_setsockopt
	asr	x0, x0, #63
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PROTO_CONN_MAGIC,8,3           ; @PROTO_CONN_MAGIC
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
.subsections_via_symbols
