	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipsec_prepend
_ipsec_prepend:                         ## @ipsec_prepend
	.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, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_M_ASSERTPKTHDR
	movq	_MHLEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setg	%dil
	leaq	L_.str(%rip), %rsi
	callq	_IPSEC_ASSERT
	movq	%rbx, %rdi
	callq	_M_LEADINGSPACE
	cmpl	%r14d, %eax
	jge	LBB0_1
## %bb.2:
	movl	24(%rbx), %esi
	movl	%r15d, %edi
	callq	_m_gethdr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_m_move_pkthdr
	movq	%rbx, 16(%r15)
	movslq	%r14d, %r13
	movq	_IPSEC_TRAILINGSPACE@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	addq	%r13, %rbx
	movq	%r15, %rdi
	callq	_M_SIZE
	cmpq	%rax, %rbx
	jge	LBB0_6
## %bb.5:
	addq	(%r12), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_m_align
LBB0_6:
	movl	%r14d, 4(%r15)
	addl	%r14d, 8(%r15)
	jmp	LBB0_7
LBB0_1:
	subl	%r14d, (%rbx)
	addl	%r14d, 4(%rbx)
	addl	%r14d, 8(%rbx)
	movq	%rbx, %r15
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_m_freem
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MHLEN,4,2                      ## @MHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong length"

	.comm	_IPSEC_TRAILINGSPACE,8,3        ## @IPSEC_TRAILINGSPACE
	.no_dead_strip	_ipsec_prepend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipsec_prepend
_ipsec_prepend:                         ; @ipsec_prepend
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_M_ASSERTPKTHDR
Lloh0:
	adrp	x8, _MHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MHLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, gt
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IPSEC_ASSERT
	mov	x0, x20
	bl	_M_LEADINGSPACE
	cmp	w0, w19
	b.ge	LBB0_5
; %bb.1:
	ldr	w1, [x20, #24]
	mov	x0, x21
	bl	_m_gethdr
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	bl	_m_move_pkthdr
	str	x20, [x21, #16]
	sxtw	x20, w19
Lloh5:
	adrp	x22, _IPSEC_TRAILINGSPACE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _IPSEC_TRAILINGSPACE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x23, x8, x20
	mov	x0, x21
	bl	_M_SIZE
	cmp	x23, x0
	b.ge	LBB0_4
; %bb.3:
	ldr	x8, [x22]
	add	x1, x8, x20
	mov	x0, x21
	bl	_m_align
LBB0_4:
	ldr	w8, [x21, #8]
	add	w8, w8, w19
	stp	w19, w8, [x21, #4]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20]
	sub	w8, w8, w19
	str	w8, [x20]
	ldur	d0, [x20, #4]
	dup.2s	v1, w19
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	mov	x21, x20
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_m_freem
LBB0_7:
	mov	x0, x21
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MHLEN,4,2                      ; @MHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong length"

	.comm	_IPSEC_TRAILINGSPACE,8,3        ; @IPSEC_TRAILINGSPACE
	.no_dead_strip	_ipsec_prepend
.subsections_via_symbols
