	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cfg_append_tlv            ## -- Begin function tipc_cfg_append_tlv
	.p2align	4, 0x90
_tipc_cfg_append_tlv:                   ## @tipc_cfg_append_tlv
	.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, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_skb_tail_pointer
	movq	%rax, %r15
	movl	%r13d, %edi
	callq	_TLV_SPACE
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_skb_tailroom
	cmpl	%r14d, %eax
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, 8(%r15)
	movl	%r13d, %edi
	callq	_TLV_LENGTH
	movl	%eax, %edi
	callq	_htons
	movq	%rax, (%r15)
	movl	$1, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_TLV_DATA
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tipc_cfg_append_tlv unable to append TLV\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cfg_append_tlv            ; -- Begin function tipc_cfg_append_tlv
	.p2align	2
_tipc_cfg_append_tlv:                   ; @tipc_cfg_append_tlv
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_skb_tail_pointer
	mov	x21, x0
	mov	x0, x19
	bl	_TLV_SPACE
	mov	x24, x0
	mov	x0, x23
	bl	_skb_tailroom
	cmp	w0, w24
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x0, x23
	mov	x1, x24
	bl	_skb_put
	mov	x0, x22
	bl	_htons
	str	x0, [x21, #8]
	mov	x0, x19
	bl	_TLV_LENGTH
	bl	_htons
	str	x0, [x21]
	mov	w0, #1
	cbz	x20, LBB0_5
; %bb.3:
	cbz	w19, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_TLV_DATA
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #1
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tipc_cfg_append_tlv unable to append TLV\n"

.subsections_via_symbols
