	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_buf_sock_tun             ## -- Begin function alloc_buf_sock_tun
	.p2align	4, 0x90
_alloc_buf_sock_tun:                    ## @alloc_buf_sock_tun
	.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
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_BUF_SIZE
	movl	%eax, %edi
	callq	_alloc_buf
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_FRAME_HEADROOM_ADJ
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_buf_init
	movl	%eax, %edi
	callq	_ASSERT
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	callq	_MAX_RW_SIZE_TUN
	jmp	LBB0_3
LBB0_2:
	callq	_MAX_RW_SIZE_LINK
LBB0_3:
	movl	%eax, (%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_buf_safe
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ASSERT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_alloc_buf_sock_tun             ; -- Begin function alloc_buf_sock_tun
	.p2align	2
_alloc_buf_sock_tun:                    ; @alloc_buf_sock_tun
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_BUF_SIZE
	bl	_alloc_buf
	str	w0, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_FRAME_HEADROOM_ADJ
	mov	x1, x0
	mov	x0, x19
	bl	_buf_init
	bl	_ASSERT
	mov	x0, x20
	cbz	w22, LBB0_2
; %bb.1:
	bl	_MAX_RW_SIZE_TUN
	b	LBB0_3
LBB0_2:
	bl	_MAX_RW_SIZE_LINK
LBB0_3:
	str	w0, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_buf_safe
	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
	b	_ASSERT
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
