	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppoatm_send
_pppoatm_send:                          ## @pppoatm_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
	movq	%rsi, %r13
	callq	_chan_to_pvcc
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	%rbx, (%rax)
	movq	8(%r14), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	(%r13), %rax
	cmpb	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_SC_COMP_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_pull
LBB0_3:
	movl	4(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_14
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_23
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.6:
	movq	%r13, %rdi
	callq	_skb_headroom
	movq	_LLC_LEN@GOTPCREL(%rip), %r12
	movslq	(%r12), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_11
## %bb.7:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_realloc_headroom
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r15
	movq	8(%r14), %rdi
	movl	8(%rax), %esi
	callq	_atm_may_send
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movq	%r13, %rdi
	callq	_kfree_skb
	movq	%r15, %r13
	jmp	LBB0_13
LBB0_14:
	movq	8(%r14), %rdi
	movl	8(%r13), %esi
	callq	_atm_may_send
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_18
LBB0_23:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r13, %rdi
	callq	_kfree_skb
	movl	$1, %r15d
	jmp	LBB0_22
LBB0_11:
	movq	8(%r14), %rdi
	movl	8(%r13), %esi
	callq	_atm_may_send
	testl	%eax, %eax
	je	LBB0_18
## %bb.12:
	movq	%r13, %r15
LBB0_13:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_skb_push
	movq	_pppllc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_memcpy
LBB0_15:
	movl	8(%r13), %r14d
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rdi
	callq	_sk_atm
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_atomic_add
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rax
	movl	12(%rax), %ebx
	movq	%r13, %rdi
	callq	_ATM_SKB
	movl	%ebx, 8(%rax)
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_ATM_SKB
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	*%rbx
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_22
LBB0_16:
	movq	_DROP_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_16
LBB0_17:
	movq	%r15, %rdi
	callq	_kfree_skb
LBB0_18:
	movq	_SC_COMP_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%r14)
	je	LBB0_22
## %bb.19:
	movq	%r13, %rdi
	callq	_skb_headroom
	testq	%rax, %rax
	jle	LBB0_22
## %bb.20:
	movq	(%r13), %rax
	cmpb	$0, -1(%rax)
	jne	LBB0_22
## %bb.21:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_skb_push
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pppoatm_send (skb=0x%p, vcc=0x%p)\n"

	.comm	_SC_COMP_PROT,4,2               ## @SC_COMP_PROT
	.comm	_LLC_LEN,4,2                    ## @LLC_LEN
	.comm	_DROP_PACKET,4,2                ## @DROP_PACKET
	.comm	_pppllc,4,2                     ## @pppllc
L_.str.1:                               ## @.str.1
	.asciz	"Trying to send without setting encaps!\n"

L_.str.2:                               ## @.str.2
	.asciz	"atm_skb(%p)->vcc(%p)->dev(%p)\n"

	.no_dead_strip	_pppoatm_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppoatm_send
_pppoatm_send:                          ; @pppoatm_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	bl	_chan_to_pvcc
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x19
	bl	_ATM_SKB
	str	x21, [x0]
	ldr	x8, [x20, #8]
	stp	x19, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _SC_COMP_PROT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SC_COMP_PROT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_skb_pull
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x19
	bl	_skb_headroom
Lloh5:
	adrp	x22, _LLC_LEN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LLC_LEN@GOTPAGEOFF]
	ldrsw	x1, [x22]
	cmp	x0, x1
	b.ge	LBB0_12
; %bb.7:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_skb_realloc_headroom
	cbz	x0, LBB0_16
; %bb.8:
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldr	w1, [x21, #8]
	bl	_atm_may_send
	cbz	w0, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_kfree_skb
	mov	x19, x21
	b	LBB0_14
LBB0_10:
	ldr	x0, [x20, #8]
	ldr	w1, [x19, #8]
	bl	_atm_may_send
	cbnz	w0, LBB0_15
	b	LBB0_18
LBB0_11:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_kfree_skb
	mov	w0, #1
	b	LBB0_23
LBB0_12:
	ldr	x0, [x20, #8]
	ldr	w1, [x19, #8]
	bl	_atm_may_send
	cbz	w0, LBB0_18
; %bb.13:
	mov	x21, x19
LBB0_14:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_skb_push
Lloh9:
	adrp	x8, _pppllc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pppllc@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_memcpy
LBB0_15:
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x0, [x0]
	bl	_sk_atm
	mov	x1, x0
	mov	x0, x20
	bl	_atomic_add
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x8, [x0]
	ldr	w20, [x8, #12]
	mov	x0, x19
	bl	_ATM_SKB
	str	w20, [x0, #8]
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x20, [x0]
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x8, [x0]
	ldr	w8, [x8, #8]
	stp	x20, x8, [sp, #8]
	str	x19, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_ATM_SKB
	ldr	x0, [x0]
	mov	x1, x19
	blr	x20
Lloh14:
	adrp	x8, _DROP_PACKET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DROP_PACKET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	x0, #0
	csinc	w0, w8, wzr, ne
	b	LBB0_23
LBB0_16:
	mov	x0, x19
	bl	_kfree_skb
Lloh17:
	adrp	x8, _DROP_PACKET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DROP_PACKET@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_17:
	mov	x0, x21
	bl	_kfree_skb
LBB0_18:
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _SC_COMP_PROT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SC_COMP_PROT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.19:
	mov	x0, x19
	bl	_skb_headroom
	cmp	x0, #1
	b.lt	LBB0_22
; %bb.20:
	ldr	x8, [x19]
	ldurb	w8, [x8, #-1]
	cbnz	w8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	w1, #1
	bl	_skb_push
LBB0_22:
	mov	w0, #0
LBB0_23:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pppoatm_send (skb=0x%p, vcc=0x%p)\n"

	.comm	_SC_COMP_PROT,4,2               ; @SC_COMP_PROT
	.comm	_LLC_LEN,4,2                    ; @LLC_LEN
	.comm	_DROP_PACKET,4,2                ; @DROP_PACKET
	.comm	_pppllc,4,2                     ; @pppllc
l_.str.1:                               ; @.str.1
	.asciz	"Trying to send without setting encaps!\n"

l_.str.2:                               ; @.str.2
	.asciz	"atm_skb(%p)->vcc(%p)->dev(%p)\n"

	.no_dead_strip	_pppoatm_send
.subsections_via_symbols
