	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swrap_packet_init
_swrap_packet_init:                     ## @swrap_packet_init
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	cmpl	$129, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_2
## %bb.3:
	leaq	120(%r9), %r15
	movb	$6, %dil
	movl	$120, %ecx
	jmp	LBB0_5
LBB0_4:
	leaq	88(%r9), %r15
	movb	$17, %dil
	movl	$88, %ecx
	jmp	LBB0_5
LBB0_2:
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
LBB0_5:
	cmpl	$0, 40(%rbp)
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movq	%r15, %rax
	subq	$64, %rax
	cmovaeq	%rax, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	addq	$88, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$88, %r15
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	movl	$88, %r13d
	jmp	LBB0_8
LBB0_6:
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %eax
	movb	%dil, -41(%rbp)                 ## 1-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_8:
	movzwl	(%r14), %eax
	movw	%ax, -46(%rbp)                  ## 2-byte Spill
	movzwl	(%r12), %eax
	movw	%ax, -44(%rbp)                  ## 2-byte Spill
	leaq	24(%r15), %rax
	cmpq	$193, %rax
	movl	$192, %edi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmovaeq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 188(%rbx)
	movl	(%rcx), %eax
	movl	%eax, 184(%rbx)
	movq	%r15, %rdi
	subq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	%rdi, 168(%rbx)
	movq	%rdi, 176(%rbx)
	movq	$69, 104(%rbx)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htons
	movq	%rax, 160(%rbx)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	movq	%rax, 152(%rbx)
	movl	$64, 112(%rbx)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 144(%rbx)
	movl	$255, 116(%rbx)
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, 120(%rbx)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 136(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 128(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 124(%rbx)
	cmpl	$0, 40(%rbp)
	movq	%r12, %rcx
	je	LBB0_11
## %bb.12:
	movabsq	$4294967299, %rax               ## imm = 0x100000003
	movq	%rax, 80(%rbx)
	xorl	%edi, %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_htons
	movq	%rax, 96(%rbx)
	xorl	%edi, %edi
	callq	_htonl
	movq	%rax, 88(%rbx)
	leaq	(%rbx,%r13), %r12
	movq	$69, 104(%rbx,%r13)
	subl	%r13d, %r15d
	movl	%r15d, %edi
	callq	_htons
	movq	%rax, 160(%rbx,%r13)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	movq	%rax, 152(%rbx,%r13)
	movl	$64, 112(%rbx,%r13)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 144(%rbx,%r13)
	movl	$255, 116(%rbx,%r13)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movb	%al, 120(%rbx,%r13)
	xorl	%edi, %edi
	callq	_htons
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 136(%rbx,%r13)
	movl	4(%rcx), %eax
	movl	%eax, 128(%rbx,%r13)
	movl	4(%r14), %eax
	movl	%eax, 124(%rbx,%r13)
	movzwl	(%rcx), %edx
	movzwl	(%r14), %esi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	$129, %eax
	je	LBB0_16
LBB0_14:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.15:
	movb	32(%rbp), %r14b
	movq	24(%rbp), %r15
	movq	16(%rbp), %rdi
	movw	%dx, 24(%r12)
	movw	%si, 26(%r12)
	callq	_htonl
	movq	%rax, 72(%r12)
	movq	%r15, %rdi
	callq	_htonl
	movq	%rax, 64(%r12)
	movl	$80, 28(%r12)
	movb	%r14b, 32(%r12)
	movl	$32767, %edi                    ## imm = 0x7FFF
	callq	_htons
	movq	%rax, 56(%r12)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 48(%r12)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 40(%r12)
	jmp	LBB0_17
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_11:
	movq	%rbx, %r12
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movzwl	-46(%rbp), %edx                 ## 2-byte Folded Reload
	movzwl	-44(%rbp), %esi                 ## 2-byte Folded Reload
	cmpl	$129, %eax
	jne	LBB0_14
LBB0_16:
	movzwl	(%r14), %eax
	movw	%ax, (%r12)
	movzwl	(%rcx), %eax
	movw	%ax, 2(%r12)
	leal	8(%r13), %edi
	callq	_htons
	movq	%rax, 16(%r12)
	xorl	%edi, %edi
	callq	_htons
	movq	%rax, 8(%r12)
LBB0_17:
	movq	48(%rbp), %r15
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:
	testq	%r13, %r13
	je	LBB0_20
## %bb.19:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	addq	$24, %rdi
	movq	%r13, %rdx
	callq	_memcpy
LBB0_20:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	subq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, (%r15)
LBB0_21:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_swrap_packet_init
.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 swrap_packet_init
lCPI0_0:
	.long	69                              ; 0x45
	.long	0                               ; 0x0
lCPI0_1:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_swrap_packet_init:                     ; @swrap_packet_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	x6, x7, [sp, #16]               ; 16-byte Folded Spill
	str	x4, [sp, #64]                   ; 8-byte Folded Spill
	mov	x25, x3
	mov	x24, x2
	mov	x26, x1
	mov	x27, x0
	ldr	w23, [x29, #20]
	ldrh	w9, [x1]
	ldrh	w8, [x2]
	stp	w8, w9, [sp, #8]                ; 8-byte Folded Spill
	add	x8, x5, #88
	mov	w9, #17
	mov	w10, #88
	str	x5, [sp, #72]                   ; 8-byte Folded Spill
	add	x11, x5, #120
	mov	w12, #6
	mov	w13, #120
	cmp	w3, #128
	csel	w12, wzr, w12, ne
	csel	x13, xzr, x13, ne
	csel	x11, xzr, x11, ne
	cmp	w3, #129
	csel	w9, w9, w12, eq
	csel	x10, x10, x13, eq
	csel	x8, x8, x11, eq
	subs	x11, x8, #64
	csel	x11, xzr, x11, lo
	add	x12, x10, #88
	add	x13, x8, #88
	mov	w14, #1
	mov	w15, #88
	cmp	w23, #0
	csel	w19, w9, w14, eq
	csel	x10, x10, x12, eq
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	csel	x28, x8, x13, eq
	csel	x20, xzr, x15, eq
	csel	x22, xzr, x11, eq
	cmp	w23, #0
	csel	w8, wzr, w9, eq
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	add	x9, x28, #24
	mov	w8, #192
	cmp	x9, #192
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	csel	x0, x9, x8, hi
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.1:
	ldr	d0, [x27]
	str	d0, [x21, #184]
	sub	x0, x28, x22
	stp	x0, x0, [x21, #168]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [x21, #104]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_htons
	str	x0, [x21, #160]
	mov	w0, #65535
	bl	_htons
	str	x0, [x21, #152]
	mov	w8, #64
	str	w8, [x21, #112]
	mov	w0, #0
	bl	_htons
	str	x0, [x21, #144]
	mov	w8, #255
	str	w8, [x21, #116]
	strb	w19, [x21, #120]
	mov	w0, #0
	bl	_htons
	str	x0, [x21, #136]
	ldr	w8, [x26, #4]
	ldr	w9, [x24, #4]
	stp	w9, w8, [x21, #124]
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	cbz	w23, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, lCPI0_1@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x21, #80]
	mov	w0, #0
	bl	_htons
	str	x0, [x21, #96]
	mov	x0, #0
	bl	_htonl
	str	x0, [x21, #88]
	mov	w19, #64
	mov	w22, #255
	add	x27, x21, x20
	str	d8, [x27, #104]
	sub	w0, w28, w20
	bl	_htons
	str	x0, [x27, #160]
	mov	w0, #65535
	bl	_htons
	str	x0, [x27, #152]
	str	w19, [x27, #112]
	mov	w0, #0
	bl	_htons
	str	x0, [x27, #144]
	str	w22, [x27, #116]
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	strb	w8, [x27, #120]
	mov	w0, #0
	bl	_htons
	str	x0, [x27, #136]
	ldr	w8, [x24, #4]
	ldr	w9, [x26, #4]
	stp	w9, w8, [x27, #124]
	ldrh	w8, [x24]
	ldrh	w9, [x26]
	ldp	x28, x20, [sp, #64]             ; 16-byte Folded Reload
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_4
LBB0_3:
	mov	x27, x21
	ldp	x28, x20, [sp, #64]             ; 16-byte Folded Reload
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
LBB0_4:
	ldr	x23, [x29, #24]
	cmp	w25, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w25, #128
	b.ne	LBB0_7
; %bb.6:
	ldrb	w19, [x29, #16]
	strh	w8, [x27, #24]
	strh	w9, [x27, #26]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_htonl
	str	x0, [x27, #72]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_htonl
	str	x0, [x27, #64]
	mov	w8, #80
	str	w8, [x27, #28]
	strb	w19, [x27, #32]
	mov	w0, #32767
	bl	_htons
	str	x0, [x27, #56]
	mov	w0, #0
	bl	_htons
	str	x0, [x27, #48]
	mov	w0, #0
	bl	_htons
	str	x0, [x27, #40]
LBB0_7:
	cbnz	x28, LBB0_9
	b	LBB0_11
LBB0_8:
	ldrh	w8, [x26]
	strh	w8, [x27]
	ldrh	w8, [x24]
	strh	w8, [x27, #2]
	add	w0, w20, #8
	bl	_htons
	str	x0, [x27, #16]
	mov	w0, #0
	bl	_htons
	str	x0, [x27, #8]
	cbz	x28, LBB0_11
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x21, x8
	add	x0, x8, #24
	mov	x1, x28
	mov	x2, x20
	bl	_memcpy
LBB0_11:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	sub	x8, x22, x8
	str	x8, [x23]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_swrap_packet_init
.subsections_via_symbols
