	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppp_poll
_ppp_poll:                              ## @ppp_poll
	.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	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rdx
	leaq	20(%rbx), %rsi
	callq	_poll_wait
	movq	_EPOLLOUT@GOTPCREL(%rip), %rax
	movq	_EPOLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	leaq	16(%rbx), %rdi
	callq	_skb_peek
	movq	_EPOLLIN@GOTPCREL(%rip), %r12
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%r12), %ecx
	xorl	%r14d, %r14d
	testq	%rax, %rax
	cmovnel	%ecx, %r14d
	orl	%r13d, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_EPOLLHUP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_4:
	movq	(%rbx), %rax
	movq	_INTERFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	callq	_PF_TO_PPP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ppp_recv_lock
	cmpq	$0, (%rbx)
	jne	LBB0_8
## %bb.6:
	movq	_SC_LOOP_TRAFFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_8
## %bb.7:
	orl	(%r12), %r14d
	orl	(%r15), %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_ppp_recv_unlock
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPOLLOUT,4,2                   ## @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ## @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_EPOLLHUP,4,2                   ## @EPOLLHUP
	.comm	_INTERFACE,8,3                  ## @INTERFACE
	.comm	_SC_LOOP_TRAFFIC,4,2            ## @SC_LOOP_TRAFFIC
	.no_dead_strip	_ppp_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_poll
_ppp_poll:                              ; @ppp_poll
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x2, x1
	add	x1, x20, #20
	bl	_poll_wait
Lloh0:
	adrp	x8, _EPOLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPOLLOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EPOLLWRNORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPOLLWRNORM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w19, w9, w8
	add	x0, x20, #16
	bl	_skb_peek
Lloh6:
	adrp	x21, _EPOLLIN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EPOLLIN@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh8:
	adrp	x22, _EPOLLRDNORM@GOTPAGE
Lloh9:
	ldr	x22, [x22, _EPOLLRDNORM@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w19, w19, w8
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _EPOLLHUP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPOLLHUP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_9
LBB0_3:
	mov	w19, #0
	b	LBB0_9
LBB0_4:
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _INTERFACE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INTERFACE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_PF_TO_PPP
	mov	x20, x0
	bl	_ppp_recv_lock
	ldr	x8, [x20]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x20, #8]
Lloh16:
	adrp	x9, _SC_LOOP_TRAFFIC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SC_LOOP_TRAFFIC@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w8, w19
	orr	w19, w8, w9
LBB0_8:
	mov	x0, x20
	bl	_ppp_recv_unlock
LBB0_9:
	mov	x0, x19
	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
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EPOLLOUT,4,2                   ; @EPOLLOUT
	.comm	_EPOLLWRNORM,4,2                ; @EPOLLWRNORM
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_EPOLLHUP,4,2                   ; @EPOLLHUP
	.comm	_INTERFACE,8,3                  ; @INTERFACE
	.comm	_SC_LOOP_TRAFFIC,4,2            ; @SC_LOOP_TRAFFIC
	.no_dead_strip	_ppp_poll
.subsections_via_symbols
