	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_copy_resume
_sctp_copy_resume:                      ## @sctp_copy_resume
	.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	%r9, %r15
	movq	%r8, %r12
	movq	%rcx, %r14
	movl	%edx, %r8d
	movl	%esi, %edx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_PKTHDR@GOTPCREL(%rip), %rax
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_M_EOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_2:
	orl	(%rax), %r8d
	xorl	%ecx, %ecx
	callq	_m_uiotombuf
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_m_length
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_m_last
	movq	%rax, (%r15)
	jmp	LBB0_5
LBB0_3:
	movq	_SCTP_FROM_SCTP_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ENOBUFS@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%r15), %eax
	movl	%eax, (%r14)
LBB0_5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_PKTHDR,4,2                   ## @M_PKTHDR
	.comm	_M_EOR,4,2                      ## @M_EOR
	.comm	_SCTP_FROM_SCTP_OUTPUT,4,2      ## @SCTP_FROM_SCTP_OUTPUT
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_sctp_copy_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_copy_resume
_sctp_copy_resume:                      ; @sctp_copy_resume
	.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	x19, x5
	mov	x22, x4
	mov	x20, x3
	mov	x8, x1
Lloh0:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _M_PKTHDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_PKTHDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _M_EOR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M_EOR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w2, #0
	csel	w10, wzr, w10, eq
	orr	w4, w10, w9
	mov	x2, x8
	mov	w3, #0
	bl	_m_uiotombuf
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	bl	_m_length
	str	w0, [x22]
	mov	x0, x21
	bl	_m_last
	str	x0, [x19]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _SCTP_FROM_SCTP_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCTP_FROM_SCTP_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x19, _ENOBUFS@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ENOBUFS@GOTPAGEOFF]
	ldr	w4, [x19]
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w8, [x19]
	str	w8, [x20]
LBB0_3:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_PKTHDR,4,2                   ; @M_PKTHDR
	.comm	_M_EOR,4,2                      ; @M_EOR
	.comm	_SCTP_FROM_SCTP_OUTPUT,4,2      ; @SCTP_FROM_SCTP_OUTPUT
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_sctp_copy_resume
.subsections_via_symbols
