	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_wspace
_sctp_wspace:                           ## @sctp_wspace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %ecx
	jmp	LBB0_3
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_sk_wmem_alloc_get
	movl	%eax, %ecx
LBB0_3:
	movq	8(%rbx), %rdi
	movl	(%rdi), %eax
	subl	%ecx, %eax
	jg	LBB0_6
## %bb.4:
	movq	_SOCK_SNDBUF_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, 4(%rdi)
	jne	LBB0_6
## %bb.5:
	callq	_sk_stream_wspace
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovlel	%ecx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_SNDBUF_LOCK,4,2           ## @SOCK_SNDBUF_LOCK
	.no_dead_strip	_sctp_wspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_wspace
_sctp_wspace:                           ; @sctp_wspace
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_sk_wmem_alloc_get
	mov	x8, x0
LBB0_3:
	ldr	x0, [x19, #8]
	ldr	w9, [x0]
	subs	w8, w9, w8
	b.gt	LBB0_6
; %bb.4:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _SOCK_SNDBUF_LOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCK_SNDBUF_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #0
LBB0_6:
	mov	x0, x8
	b	LBB0_8
LBB0_7:
	bl	_sk_stream_wspace
	cmp	w0, #0
	csel	w0, w0, wzr, gt
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_SNDBUF_LOCK,4,2           ; @SOCK_SNDBUF_LOCK
	.no_dead_strip	_sctp_wspace
.subsections_via_symbols
