	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_lopacket
_alloc_lopacket:                        ## @alloc_lopacket
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	88(%rsi), %r12
	movq	%r12, %rdi
	callq	_malloc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movabsq	$17179869204, %rax              ## imm = 0x400000014
	movq	%rax, (%rbx)
	movq	$0, 72(%rbx)
	addl	$80, %r15d
	movl	%r15d, %edi
	callq	_htons
	movl	%eax, 64(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movl	$1, 8(%rbx)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	$0, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, %rdi
	callq	_update_cksum
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.no_dead_strip	_alloc_lopacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function alloc_lopacket
lCPI0_0:
	.long	20                              ; 0x14
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_alloc_lopacket:                        ; @alloc_lopacket
	.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, x1
	mov	x20, x0
	add	x21, x1, #88
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22, #80]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22]
	str	xzr, [x22, #72]
	add	w0, w19, #80
	bl	_htons
	str	w0, [x22, #64]
	stp	xzr, xzr, [x22, #48]
	mov	w8, #1
Lloh5:
	adrp	x9, _IPPROTO_IP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_IP@GOTPAGEOFF]
	str	w8, [x22, #8]
Lloh7:
	ldr	w8, [x9]
	str	w8, [x22, #40]
	stp	x20, xzr, [x22, #24]
	str	x20, [x22, #16]
	mov	x0, x22
	bl	_update_cksum
	mov	x0, x22
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.no_dead_strip	_alloc_lopacket
.subsections_via_symbols
