	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_attach
_send_attach:                           ## @send_attach
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_SEND_LOCK
	movq	_V_send_so@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_SEND_UNLOCK
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	_PRIV_NETINET_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_priv_check
	testl	%eax, %eax
	je	LBB0_4
LBB0_3:
	movl	%eax, %ebx
LBB0_8:
	xorl	%eax, %eax
	callq	_SEND_UNLOCK
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IPPROTO_SEND@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_send_sendspace@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_send_recvspace@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_soreserve
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
	callq	_SEND_UNLOCK
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_V_send_so,8,3                  ## @V_send_so
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_PRIV_NETINET_RAW,4,2           ## @PRIV_NETINET_RAW
	.comm	_IPPROTO_SEND,4,2               ## @IPPROTO_SEND
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_send_sendspace,4,2             ## @send_sendspace
	.comm	_send_recvspace,4,2             ## @send_recvspace
	.no_dead_strip	_send_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_attach
_send_attach:                           ; @send_attach
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_SEND_LOCK
Lloh0:
	adrp	x22, _V_send_so@GOTPAGE
Lloh1:
	ldr	x22, [x22, _V_send_so@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_SEND_UNLOCK
Lloh2:
	adrp	x8, _EEXIST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _PRIV_NETINET_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PRIV_NETINET_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_priv_check
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
LBB0_4:
	bl	_SEND_UNLOCK
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
Lloh8:
	adrp	x8, _IPPROTO_SEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPPROTO_SEND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.7:
Lloh11:
	adrp	x8, _send_sendspace@GOTPAGE
Lloh12:
	ldr	x8, [x8, _send_sendspace@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _send_recvspace@GOTPAGE
Lloh15:
	ldr	x8, [x8, _send_recvspace@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_soreserve
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.8:
	str	x19, [x22]
	b	LBB0_4
LBB0_9:
	bl	_SEND_UNLOCK
Lloh17:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V_send_so,8,3                  ; @V_send_so
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_PRIV_NETINET_RAW,4,2           ; @PRIV_NETINET_RAW
	.comm	_IPPROTO_SEND,4,2               ; @IPPROTO_SEND
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_send_sendspace,4,2             ; @send_sendspace
	.comm	_send_recvspace,4,2             ; @send_recvspace
	.no_dead_strip	_send_attach
.subsections_via_symbols
