	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmtcp_c_send
_atmtcp_c_send:                         ## @atmtcp_c_send
	.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
	cmpl	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rsi), %rbx
	movq	(%rbx), %rax
	movq	_ATMTCP_HDR_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_atmtcp_recv_control
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movq	24(%r14), %r15
	movq	_vcc_sklist_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movl	12(%rbx), %edi
	callq	_ntohs
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	callq	_ntohs
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_find_vcc
	movq	%rax, %r15
	movq	_vcc_sklist_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_skb_pull
	movl	(%r12), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_atm_alloc_charge
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	___net_timestamp
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movl	(%r12), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_skb_copy_from_linear_data
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*16(%r15)
	movq	8(%r14), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movq	8(%r15), %rdi
	jmp	LBB0_9
LBB0_5:
	movq	8(%r14), %rdi
	addq	$8, %rdi
LBB0_9:
	callq	_atomic_inc
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*%rax
	jmp	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	callq	_dev_kfree_skb
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATMTCP_HDR_MAGIC,8,3           ## @ATMTCP_HDR_MAGIC
	.comm	_vcc_sklist_lock,4,2            ## @vcc_sklist_lock
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_atmtcp_c_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmtcp_c_send
_atmtcp_c_send:                         ; @atmtcp_c_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ATMTCP_HDR_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATMTCP_HDR_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_atmtcp_recv_control
	mov	x21, x0
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_3:
	mov	w21, #0
	b	LBB0_11
LBB0_4:
	ldr	x22, [x20, #24]
Lloh3:
	adrp	x23, _vcc_sklist_lock@GOTPAGE
Lloh4:
	ldr	x23, [x23, _vcc_sklist_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_read_lock
	ldr	w0, [x21, #12]
	bl	_ntohs
	mov	x24, x0
	ldr	w0, [x21, #8]
	bl	_ntohs
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_find_vcc
	mov	x21, x0
	mov	x0, x23
	bl	_read_unlock
	cbz	x21, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #16
	bl	_skb_pull
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_atm_alloc_charge
	cbz	x0, LBB0_9
; %bb.6:
	mov	x22, x0
	bl	___net_timestamp
	ldr	w1, [x19]
	mov	x0, x22
	bl	_skb_put
	mov	x1, x0
	ldr	w2, [x19]
	mov	x0, x19
	bl	_skb_copy_from_linear_data
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	ldr	x8, [x20, #8]
	add	x0, x8, #4
	bl	_atomic_inc
	ldr	x0, [x21, #8]
	bl	_atomic_inc
	mov	w21, #0
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
	b	LBB0_10
LBB0_7:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
	bl	_atomic_inc
	ldr	x8, [x20]
	cbz	x8, LBB0_10
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_dev_kfree_skb
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ATMTCP_HDR_MAGIC,8,3           ; @ATMTCP_HDR_MAGIC
	.comm	_vcc_sklist_lock,4,2            ; @vcc_sklist_lock
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_atmtcp_c_send
.subsections_via_symbols
