	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_alloc_skb
_tun_alloc_skb:                         ## @tun_alloc_skb
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_sock_update_classid
	leaq	(%r15,%r14), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r15, %rbx
	cmovaeq	%r13, %rbx
	testq	%r13, %r13
	cmoveq	%r15, %rbx
	leaq	(%rbx,%r14), %rsi
	subq	%rbx, %r15
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sock_alloc_send_pskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_skb_reserve
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_skb_put
	movq	%r15, (%r12)
	addq	%r15, 8(%r12)
	jmp	LBB0_3
LBB0_1:
	movl	-48(%rbp), %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_3:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_tun_alloc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_alloc_skb
_tun_alloc_skb:                         ; @tun_alloc_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	ldr	x24, [x0]
	mov	x0, x24
	bl	_sock_update_classid
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x9, x23, x19
	cmp	x9, x8
	ccmp	x21, #0, #4, hs
	csel	x22, x21, x23, ne
	add	x1, x22, x19
	sub	x21, x23, x22
	add	x4, sp, #12
	mov	x0, x24
	mov	x2, x21
	mov	x3, x20
	bl	_sock_alloc_send_pskb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_skb_reserve
	mov	x0, x20
	mov	x1, x22
	bl	_skb_put
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	stp	x21, x8, [x20]
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_ERR_PTR
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_tun_alloc_skb
.subsections_via_symbols
