	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pppoe_connect
_pppoe_connect:                         ## @pppoe_connect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_pppox_sk
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_lock_sock
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	cmpl	$24, %ebx
	jne	LBB0_21
## %bb.1:
	movq	(%r15), %rax
	movq	_PX_PROTO_OE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.2:
	movl	(%r12), %eax
	movq	_PPPOX_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	8(%r15), %rdi
	callq	_stage_session
	testq	%rax, %rax
	jne	LBB0_21
## %bb.4:
	movl	(%r12), %eax
LBB0_5:
	movq	_PPPOX_DEAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_EALREADY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	8(%r15), %rdi
	callq	_stage_session
	testq	%rax, %rax
	je	LBB0_21
LBB0_7:
	leaq	24(%r14), %r13
	movq	32(%r14), %rdi
	callq	_stage_session
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%r12, %rdi
	callq	_pppox_unbind_sock
	movq	%r12, %rdi
	callq	_sock_net
	movq	%rax, %rdi
	callq	_pppoe_pernet
	movq	32(%r14), %rsi
	movl	28(%r14), %edx
	movq	16(%r14), %rcx
	movq	%rax, %rdi
	callq	_delete_item
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_dev_put
	movq	$0, (%r14)
LBB0_10:
	movq	$0, 16(%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	112(%r14), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	64(%r14), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	$0, 104(%r14)
	movq	$0, 8(%r14)
	movq	_PPPOX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_11:
	leaq	8(%r15), %rbx
	movq	8(%r15), %rdi
	callq	_stage_session
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_sock_net
	movq	%rax, %rbx
	movl	16(%r15), %esi
	movq	%rax, %rdi
	callq	_dev_get_by_name
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %r15
	movq	%rax, (%r14)
	movq	16(%rax), %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	callq	_pppoe_pernet
	movq	%rax, %rbx
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_17
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_write_lock_bh
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___set_item
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.15:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	addq	$4, %rax
	movq	%r14, %rbx
	addq	$64, %rbx
	movq	%rax, 96(%r14)
	movl	4(%r15), %eax
	addl	$-6, %eax
	movl	%eax, 64(%r14)
	movq	%r12, 88(%r14)
	movq	_pppoe_chan_ops@GOTPCREL(%rip), %rax
	movq	%rax, 80(%r14)
	movq	%r15, %rdi
	callq	_dev_net
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_ppp_register_net_channel
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %r13d
	movq	32(%r14), %rsi
	movl	28(%r14), %edx
	movq	16(%r14), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_delete_item
LBB0_17:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.18:
	callq	_dev_put
	movq	$0, (%r14)
	jmp	LBB0_21
LBB0_19:
	movq	_PPPOX_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	xorl	%r13d, %r13d
LBB0_21:
	movq	%r12, %rdi
	callq	_release_sock
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PX_PROTO_OE,8,3                ## @PX_PROTO_OE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PPPOX_CONNECTED,4,2            ## @PPPOX_CONNECTED
	.comm	_EALREADY,4,2                   ## @EALREADY
	.comm	_PPPOX_DEAD,4,2                 ## @PPPOX_DEAD
	.comm	_PPPOX_NONE,4,2                 ## @PPPOX_NONE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_pppoe_chan_ops,4,2             ## @pppoe_chan_ops
	.no_dead_strip	_pppoe_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pppoe_connect
_pppoe_connect:                         ; @pppoe_connect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_pppox_sk
	mov	x20, x0
	mov	x0, x19
	bl	_lock_sock
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
	cmp	w22, #24
	b.ne	LBB0_22
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _PX_PROTO_OE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PX_PROTO_OE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.2:
	ldr	w8, [x19]
Lloh6:
	adrp	x27, _PPPOX_CONNECTED@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PPPOX_CONNECTED@GOTPAGEOFF]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	ldr	x0, [x21, #8]
	bl	_stage_session
	cbnz	x0, LBB0_19
; %bb.4:
	ldr	w8, [x19]
LBB0_5:
Lloh11:
	adrp	x9, _PPPOX_DEAD@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PPPOX_DEAD@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _EALREADY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EALREADY@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	x0, [x21, #8]
	bl	_stage_session
	cbz	x0, LBB0_19
LBB0_7:
	add	x22, x20, #24
	ldr	x0, [x20, #32]
	bl	_stage_session
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_pppox_unbind_sock
	mov	x0, x19
	bl	_sock_net
	bl	_pppoe_pernet
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #28]
	ldr	x3, [x20, #16]
	bl	_delete_item
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_dev_put
	str	xzr, [x20]
LBB0_10:
	str	xzr, [x20, #16]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, x20, #112
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x0, x20, #64
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	xzr, [x20, #104]
	str	xzr, [x20, #8]
Lloh17:
	adrp	x8, _PPPOX_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PPPOX_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	mov	x24, x21
	ldr	x0, [x24, #8]!
	bl	_stage_session
	cbz	x0, LBB0_21
; %bb.12:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	mov	x0, x19
	bl	_sock_net
	mov	x26, x0
	ldr	w1, [x21, #16]
	bl	_dev_get_by_name
	cbz	x0, LBB0_17
; %bb.13:
	mov	x25, x0
	str	x0, [x20]
	ldr	x8, [x0, #16]
	str	x8, [x20, #16]
	mov	x0, x26
	bl	_pppoe_pernet
	ldr	w8, [x25]
Lloh23:
	adrp	x9, _IFF_UP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFF_UP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	mov	x21, x0
	mov	x0, x22
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	mov	x0, x21
	bl	_write_lock_bh
	mov	x0, x21
	mov	x1, x20
	bl	___set_item
	mov	x23, x0
	mov	x0, x21
	bl	_write_unlock_bh
	tbnz	w23, #31, LBB0_17
; %bb.15:
	ldr	x8, [x25, #8]
	ldr	w9, [x25, #4]
	sub	w9, w9, #6
	mov	x22, x20
	str	w9, [x22, #64]!
	add	x8, x8, #4
	str	x8, [x22, #32]
Lloh26:
	adrp	x8, _pppoe_chan_ops@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pppoe_chan_ops@GOTPAGEOFF]
	stp	x8, x19, [x22, #16]
	mov	x0, x25
	bl	_dev_net
	mov	x1, x22
	bl	_ppp_register_net_channel
	cbz	w0, LBB0_20
; %bb.16:
	mov	x23, x0
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #28]
	ldr	x3, [x20, #16]
	mov	x0, x21
	bl	_delete_item
LBB0_17:
	ldr	x0, [x20]
	cbz	x0, LBB0_22
; %bb.18:
	bl	_dev_put
	str	xzr, [x20]
	b	LBB0_22
LBB0_19:
	neg	w23, w22
	b	LBB0_22
LBB0_20:
	ldr	w8, [x27]
	str	w8, [x19]
LBB0_21:
	mov	w23, #0
	ldr	x8, [x24]
	str	x8, [x20, #8]
LBB0_22:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PX_PROTO_OE,8,3                ; @PX_PROTO_OE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PPPOX_CONNECTED,4,2            ; @PPPOX_CONNECTED
	.comm	_EALREADY,4,2                   ; @EALREADY
	.comm	_PPPOX_DEAD,4,2                 ; @PPPOX_DEAD
	.comm	_PPPOX_NONE,4,2                 ; @PPPOX_NONE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_pppoe_chan_ops,4,2             ; @pppoe_chan_ops
	.no_dead_strip	_pppoe_connect
.subsections_via_symbols
