	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppoe_sendmsg
_pppoe_sendmsg:                         ## @pppoe_sendmsg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_pppox_sk
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
LBB0_3:
	subl	(%rax), %r12d
LBB0_4:
	movq	%rbx, %rdi
	callq	_release_sock
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PPPOX_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.6:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -104(%rbp)
	movq	$0, -72(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -80(%rbp)
	movq	8(%r15), %r13
	movq	8(%r13), %rax
	addq	(%r13), %rax
	cmpq	%r14, %rax
	jae	LBB0_8
## %bb.7:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_LL_RESERVED_SPACE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cltq
	leaq	(%r14,%rax), %rsi
	addq	$40, %rsi
	addq	16(%r13), %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_sock_wmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	40(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %r12
	callq	_skb_reserve
	movq	%r12, %rdi
	callq	_skb_reset_network_header
	movq	%r13, 8(%r12)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	_ETH_P_PPP_SES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	%eax, (%r12)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_skb_put
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy_from_msg
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	movq	_ETH_P_PPP_SES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_dev_hard_header
	leaq	-104(%rbp), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$40, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_htons
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_dev_queue_xmit
	movl	%r14d, %r12d
	jmp	LBB0_4
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree_skb
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_PPPOX_CONNECTED,4,2            ## @PPPOX_CONNECTED
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_PPP_SES,4,2              ## @ETH_P_PPP_SES
	.no_dead_strip	_pppoe_sendmsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppoe_sendmsg
_pppoe_sendmsg:                         ; @pppoe_sendmsg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x22, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_pppox_sk
	mov	x21, x0
	mov	x0, x19
	bl	_lock_sock
Lloh0:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _PPPOX_CONNECTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PPPOX_CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
	movi.2s	v0, #1
	str	d0, [sp, #8]
	str	xzr, [sp, #40]
	ldr	w8, [x21, #16]
	str	w8, [sp, #32]
	ldr	x23, [x21, #8]
	ldp	x8, x9, [x23]
	add	x8, x9, x8
	cmp	x8, x20
	b.hs	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	x0, x23
	bl	_LL_RESERVED_SPACE
	mov	x26, x0
	ldr	x8, [x23, #16]
	add	x25, x20, #40
	add	x9, x25, w0, sxtw
	add	x1, x9, x8
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_sock_wmalloc
	cbz	x0, LBB0_10
; %bb.8:
	mov	x24, x0
	mov	x1, x26
	bl	_skb_reserve
	mov	x0, x24
	bl	_skb_reset_network_header
	str	x23, [x24, #8]
	ldr	w8, [x19, #4]
	str	w8, [x24, #4]
Lloh13:
	adrp	x26, _ETH_P_PPP_SES@GOTPAGE
Lloh14:
	ldr	x26, [x26, _ETH_P_PPP_SES@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_cpu_to_be16
	str	w0, [x24]
	mov	x0, x24
	mov	x1, x25
	bl	_skb_put
	mov	x25, x0
	ldr	x0, [x0, #16]
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy_from_msg
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	w2, [x26]
	ldr	w3, [x21]
	mov	x0, x24
	mov	x1, x23
	mov	x4, #0
	mov	x5, x20
	bl	_dev_hard_header
	add	x1, sp, #8
	mov	x0, x25
	mov	w2, #40
	bl	_memcpy
	mov	x0, x20
	bl	_htons
	str	w0, [x25, #8]
	mov	x0, x24
	bl	_dev_queue_xmit
	mov	x22, x20
	b	LBB0_3
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x22, x0
	mov	x0, x24
	bl	_kfree_skb
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_PPPOX_CONNECTED,4,2            ; @PPPOX_CONNECTED
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_PPP_SES,4,2              ; @ETH_P_PPP_SES
	.no_dead_strip	_pppoe_sendmsg
.subsections_via_symbols
