	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_can_peel_off              ## -- Begin function sctp_can_peel_off
	.p2align	4, 0x90
_sctp_can_peel_off:                     ## @sctp_can_peel_off
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %eax
	movq	_SCTP_PCB_FLAGS_TCPTYPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_7:
	movq	_SCTP_FROM_SCTP_PEELOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %r8d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%r14), %eax
	jmp	LBB0_14
LBB0_1:
	movq	_SCTP_FROM_SCTP_PEELOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EBADF@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
LBB0_4:
	movq	_SCTP_FROM_SCTP_PEELOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EFAULT@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	(%rbx), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%rbx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_sctp_findassociation_ep_asocid
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_SCTP_GET_STATE
	movq	%rax, %r15
	movq	_SCTP_STATE_EMPTY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_SCTP_STATE_INUSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	callq	_SCTP_TCB_UNLOCK
	cmpq	%r13, %r15
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	cmpq	%r12, %r15
	jne	LBB0_14
LBB0_13:
	movq	_SCTP_FROM_SCTP_PEELOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ENOTCONN@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%r15), %eax
	jmp	LBB0_14
LBB0_10:
	movq	_SCTP_FROM_SCTP_PEELOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ENOENT@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_FROM_SCTP_PEELOFF,4,2     ## @SCTP_FROM_SCTP_PEELOFF
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_SCTP_PCB_FLAGS_TCPTYPE,4,2     ## @SCTP_PCB_FLAGS_TCPTYPE
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ## @SCTP_PCB_FLAGS_IN_TCPPOOL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SCTP_STATE_EMPTY,8,3           ## @SCTP_STATE_EMPTY
	.comm	_SCTP_STATE_INUSE,8,3           ## @SCTP_STATE_INUSE
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_can_peel_off              ; -- Begin function sctp_can_peel_off
	.p2align	2
_sctp_can_peel_off:                     ; @sctp_can_peel_off
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x19, [x0]
	cbz	x19, LBB0_7
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SCTP_PCB_FLAGS_TCPTYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_TCPTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_4:
Lloh6:
	adrp	x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x20, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x20, [x20, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x20]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
Lloh14:
	adrp	x19, _EBADF@GOTPAGE
Lloh15:
	ldr	x19, [x19, _EBADF@GOTPAGEOFF]
	ldr	w4, [x19]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x19, _EFAULT@GOTPAGE
Lloh20:
	ldr	x19, [x19, _EFAULT@GOTPAGEOFF]
	ldr	w4, [x19]
	mov	x0, #0
LBB0_8:
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	mov	w2, #1
	bl	_sctp_findassociation_ep_asocid
	cbz	x0, LBB0_13
; %bb.11:
	mov	x20, x0
	bl	_SCTP_GET_STATE
	mov	x21, x0
Lloh21:
	adrp	x8, _SCTP_STATE_EMPTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCTP_STATE_EMPTY@GOTPAGEOFF]
Lloh23:
	ldr	x22, [x8]
Lloh24:
	adrp	x8, _SCTP_STATE_INUSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCTP_STATE_INUSE@GOTPAGEOFF]
Lloh26:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_SCTP_TCB_UNLOCK
	cmp	x21, x22
	ccmp	x21, x23, #4, ne
	b.ne	LBB0_14
; %bb.12:
Lloh27:
	adrp	x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	adrp	x21, _ENOTCONN@GOTPAGE
Lloh31:
	ldr	x21, [x21, _ENOTCONN@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x21]
	b	LBB0_9
LBB0_13:
Lloh32:
	adrp	x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCTP_FROM_SCTP_PEELOFF@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
Lloh35:
	adrp	x20, _ENOENT@GOTPAGE
Lloh36:
	ldr	x20, [x20, _ENOENT@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_FROM_SCTP_PEELOFF,4,2     ; @SCTP_FROM_SCTP_PEELOFF
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_SCTP_PCB_FLAGS_TCPTYPE,4,2     ; @SCTP_PCB_FLAGS_TCPTYPE
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ; @SCTP_PCB_FLAGS_IN_TCPPOOL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SCTP_STATE_EMPTY,8,3           ; @SCTP_STATE_EMPTY
	.comm	_SCTP_STATE_INUSE,8,3           ; @SCTP_STATE_INUSE
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
.subsections_via_symbols
