	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmnet_map_add_map_header       ## -- Begin function rmnet_map_add_map_header
	.p2align	4, 0x90
_rmnet_map_add_map_header:              ## @rmnet_map_add_map_header
	.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	%edx, %r12d
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	subl	%esi, %ebx
	movl	$16, %esi
	callq	_skb_push
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_RMNET_MAP_NO_PAD_BYTES@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_htons
	movq	%rax, 8(%r14)
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_ALIGN
	movl	%eax, %r13d
	movl	%eax, %r12d
	subl	%ebx, %r12d
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_skb_tailroom
	cmpl	%r12d, %eax
	jge	LBB0_5
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_skb_put
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
LBB0_6:
	movl	%r13d, %edi
	callq	_htons
	movq	%rax, 8(%r14)
	andl	$63, %r12d
	movl	%r12d, (%r14)
LBB0_7:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMNET_MAP_NO_PAD_BYTES,4,2     ## @RMNET_MAP_NO_PAD_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmnet_map_add_map_header       ; -- Begin function rmnet_map_add_map_header
	.p2align	2
_rmnet_map_add_map_header:              ; @rmnet_map_add_map_header
	.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	x22, x2
	mov	x20, x0
	ldr	w8, [x0]
	sub	w21, w8, w1
	mov	w1, #16
	bl	_skb_push
	mov	x19, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _RMNET_MAP_NO_PAD_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RMNET_MAP_NO_PAD_BYTES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_htons
	str	x0, [x19, #8]
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	mov	w1, #4
	bl	_ALIGN
	mov	x22, x0
	subs	w21, w0, w21
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_skb_tailroom
	cmp	w0, w21
	b.ge	LBB0_5
; %bb.4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_skb_put
	mov	w1, #0
	mov	x2, x21
	bl	_memset
LBB0_6:
	mov	x0, x22
	bl	_htons
	str	x0, [x19, #8]
	and	w8, w21, #0x3f
	str	w8, [x19]
LBB0_7:
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RMNET_MAP_NO_PAD_BYTES,4,2     ; @RMNET_MAP_NO_PAD_BYTES
.subsections_via_symbols
