	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_sendmsg_spkt
_packet_sendmsg_spkt:                   ## @packet_sendmsg_spkt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_22
## %bb.1:
	movq	%rdx, %r13
	movl	(%rdx), %eax
	cmpl	$3, %eax
	ja	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_22:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_4:
	movq	%rcx, %r14
	movq	(%rsi), %rdi
	xorl	%r12d, %r12d
	movl	$0, %ecx
	cmpl	$16, %eax
	jne	LBB0_6
## %bb.5:
	movl	8(%rbx), %ecx
LBB0_6:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	$0, 104(%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_sock_net
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_dev_get_by_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r15
	xorl	%r12d, %r12d
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.10:
	movq	16(%r15), %rax
	addq	8(%r15), %rax
	cmpq	%r14, %rax
	jae	LBB0_12
## %bb.11:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_9:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_12:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_LL_RESERVED_SPACE
	leaq	(%rax,%r14), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_sock_wmalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_LL_RESERVED_SPACE
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_skb_reserve
	movq	%rbx, %rdi
	callq	_skb_reset_network_header
	cmpq	$0, 24(%r15)
	je	LBB0_16
## %bb.14:
	movq	16(%r15), %rax
	movdqu	(%rbx), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, (%rbx)
	cmpq	%r14, %rax
	jbe	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_skb_reset_network_header
LBB0_16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_skb_put
	movl	4(%r13), %esi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 32(%rbx)
	movq	%r15, 24(%rbx)
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, 16(%rdi)
	testl	%r12d, %r12d
	je	LBB0_17
LBB0_19:
	callq	_kfree_skb
LBB0_20:
	movq	%r15, %rdi
	callq	_dev_put
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%rbx, %r12
	movq	%rdi, %rbx
	callq	_skb_tx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_sock_tx_timestamp
	testl	%eax, %eax
	js	LBB0_18
## %bb.23:
	movq	%rbx, %rdi
	callq	_dev_queue_xmit
	movq	%r15, %rdi
	callq	_dev_put
	movl	%r14d, %r12d
	jmp	LBB0_21
LBB0_18:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_packet_sendmsg_spkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_sendmsg_spkt
_packet_sendmsg_spkt:                   ; @packet_sendmsg_spkt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x2, #8]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x21, x2
	ldr	w8, [x2]
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh2:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
	mov	x19, x3
	ldr	x22, [x1]
	cmp	w8, #16
	b.ne	LBB0_6
; %bb.5:
	ldr	w25, [x20, #8]
	b	LBB0_7
LBB0_6:
	mov	w25, #0
LBB0_7:
	ldr	x8, [x20]
	str	xzr, [x8, #104]
	mov	x0, x22
	bl	_sock_net
	ldr	x1, [x20]
	bl	_dev_get_by_name
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
	ldp	x8, x9, [x20, #8]
	add	x8, x9, x8
	cmp	x8, x19
	b.hs	LBB0_17
; %bb.10:
Lloh7:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh11:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_16:
	mov	x0, x20
	bl	_dev_put
	b	LBB0_13
LBB0_17:
Lloh13:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_LL_RESERVED_SPACE
	add	x1, x0, x19
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_sock_wmalloc
	cbz	x0, LBB0_23
; %bb.18:
	mov	x23, x0
	mov	x0, x20
	bl	_LL_RESERVED_SPACE
	mov	x1, x0
	mov	x0, x23
	bl	_skb_reserve
	mov	x0, x23
	bl	_skb_reset_network_header
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
; %bb.19:
	ldr	x8, [x20, #16]
	ldr	q0, [x23]
	dup.2d	v1, x8
	sub.2d	v0, v0, v1
	str	q0, [x23]
	cmp	x8, x19
	b.ls	LBB0_21
; %bb.20:
	mov	x0, x23
	bl	_skb_reset_network_header
LBB0_21:
	mov	x0, x23
	mov	x1, x19
	bl	_skb_put
	ldr	w1, [x21, #4]
	mov	x2, x19
	bl	_memcpy_fromiovec
	mov	x24, x0
	str	w25, [x23, #32]
	str	x20, [x23, #24]
	ldr	w8, [x22]
	str	w8, [x23, #16]
	cbz	w0, LBB0_24
LBB0_22:
	mov	x0, x23
	bl	_kfree_skb
	b	LBB0_16
LBB0_23:
	neg	w24, w24
	b	LBB0_16
LBB0_24:
	mov	x0, x23
	bl	_skb_tx
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_sock_tx_timestamp
	tbnz	w0, #31, LBB0_26
; %bb.25:
	mov	x0, x23
	bl	_dev_queue_xmit
	mov	x0, x20
	bl	_dev_put
	mov	x24, x19
	b	LBB0_13
LBB0_26:
	mov	x24, x0
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_packet_sendmsg_spkt
.subsections_via_symbols
