	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_append
_sdp_append:                            ## @sdp_append
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_SOCKBUF_LOCK_ASSERT
	movq	%r14, %rdi
	callq	_SBLASTRECORDCHK
	movq	_M_PKTHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	movq	%r13, %rsi
	callq	_KASSERT
	movq	16(%r14), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	decl	%ebx
	movq	%r15, %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	incl	%ebx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_M_WRITABLE
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_SDP_MAX_SEND_SGES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_9
## %bb.5:
	movq	24(%r13), %rax
	addq	24(%r15), %rax
	movq	_SDP_HEAD_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	subq	%rsi, %rax
	cmpq	(%r12), %rax
	jge	LBB0_9
## %bb.6:
	movq	%r13, %rdi
	callq	_m_adj
	movq	24(%r13), %rax
	addq	%rax, 24(%r15)
	movq	_M_PUSH@GOTPCREL(%rip), %rax
	movq	_M_URG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	(%r13), %ecx
	orl	%ecx, (%r15)
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_m_demote
	movq	(%r14), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sbcompress                     ## TAILCALL
LBB0_9:
	movq	_M_PUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r14), %rcx
	orl	%eax, (%rcx)
	movq	%r13, 16(%rcx)
	movq	%r13, 16(%r14)
	cmpq	$0, 8(%r14)
	jne	LBB0_12
## %bb.10:
	movq	%r13, 8(%r14)
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, (%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sballoc
	movq	8(%r13), %r13
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	jne	LBB0_11
	jmp	LBB0_13
LBB0_7:
	movq	%r13, 8(%r14)
	movq	%r13, 24(%r14)
	movq	%r13, 16(%r14)
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, (%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_sballoc
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_8
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PKTHDR,4,2                   ## @M_PKTHDR
	.comm	_SDP_MAX_SEND_SGES,4,2          ## @SDP_MAX_SEND_SGES
	.comm	_SDP_HEAD_SIZE,8,3              ## @SDP_HEAD_SIZE
	.comm	_M_PUSH,4,2                     ## @M_PUSH
	.comm	_M_URG,4,2                      ## @M_URG
	.no_dead_strip	_sdp_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_append
_sdp_append:                            ; @sdp_append
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_SOCKBUF_LOCK_ASSERT
	mov	x0, x20
	bl	_SBLASTRECORDCHK
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _M_PKTHDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M_PKTHDR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	mov	x1, x19
	bl	_KASSERT
	ldr	x21, [x20, #16]
	cbz	x21, LBB0_11
; %bb.1:
	sub	w23, w23, #1
	mov	x8, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	add	w23, w23, #1
	cbnz	x8, LBB0_2
; %bb.3:
	mov	x0, x21
	bl	_M_WRITABLE
	cbz	x0, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _SDP_MAX_SEND_SGES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDP_MAX_SEND_SGES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ge	LBB0_7
; %bb.5:
	ldr	x8, [x21, #24]
Lloh6:
	adrp	x9, _SDP_HEAD_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDP_HEAD_SIZE@GOTPAGEOFF]
	ldr	x10, [x19, #24]
Lloh8:
	ldr	x1, [x9]
	add	x8, x10, x8
	sub	x8, x8, x1
	ldr	x9, [x22]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_m_adj
	ldr	x8, [x19, #24]
	ldr	x9, [x21, #24]
	add	x8, x9, x8
	str	x8, [x21, #24]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _M_PUSH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_PUSH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _M_URG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _M_URG@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_m_demote
	ldr	x2, [x20]
	mov	x0, x20
	mov	x1, x19
	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
	b	_sbcompress
LBB0_7:
Lloh15:
	adrp	x8, _M_PUSH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_PUSH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldp	x10, x9, [x20, #8]
	ldr	w11, [x9]
	orr	w8, w11, w8
	str	w8, [x9]
	str	x19, [x9, #16]
	str	x19, [x20, #16]
	cbnz	x10, LBB0_9
; %bb.8:
	str	x19, [x20, #8]
LBB0_9:
	cbz	x19, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	x19, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_sballoc
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_10
	b	LBB0_13
LBB0_11:
	stp	x19, x19, [x20, #16]
	str	x19, [x20, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	str	x19, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_sballoc
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_12
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PKTHDR,4,2                   ; @M_PKTHDR
	.comm	_SDP_MAX_SEND_SGES,4,2          ; @SDP_MAX_SEND_SGES
	.comm	_SDP_HEAD_SIZE,8,3              ; @SDP_HEAD_SIZE
	.comm	_M_PUSH,4,2                     ; @M_PUSH
	.comm	_M_URG,4,2                      ; @M_URG
	.no_dead_strip	_sdp_append
.subsections_via_symbols
