	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipwireless_network_packet_received ## -- Begin function ipwireless_network_packet_received
	.p2align	4, 0x90
_ipwireless_network_packet_received:    ## @ipwireless_network_packet_received
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_ASSOCIATED_TTYS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, %r14d
	leaq	4(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ipwireless_tty_received
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_MAX_ASSOCIATED_TTYS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax,%r15,8), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IPW_CHANNEL_RAS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_IPW_CONTROL_LINE_DCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_ipwireless_tty_is_modem
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %r13
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ipw_packet_received_skb
	movq	16(%rbx), %rdi
	movq	%rax, %rsi
	callq	_ppp_input
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_10
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ASSOCIATED_TTYS,4,2        ## @MAX_ASSOCIATED_TTYS
	.comm	_IPW_CHANNEL_RAS,4,2            ## @IPW_CHANNEL_RAS
	.comm	_IPW_CONTROL_LINE_DCD,4,2       ## @IPW_CONTROL_LINE_DCD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipwireless_network_packet_received ; -- Begin function ipwireless_network_packet_received
	.p2align	2
_ipwireless_network_packet_received:    ; @ipwireless_network_packet_received
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x26, _MAX_ASSOCIATED_TTYS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MAX_ASSOCIATED_TTYS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x27, #0
	add	x8, x0, #4
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	add	x24, x0, #8
Lloh2:
	adrp	x28, _IPW_CHANNEL_RAS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _IPW_CHANNEL_RAS@GOTPAGEOFF]
	mov	w23, w1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x19
	bl	_ipwireless_tty_received
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x26]
	cmp	x27, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x25, [x8, x27, lsl #3]
	cbz	x25, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _IPW_CONTROL_LINE_DCD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IPW_CONTROL_LINE_DCD@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_ipwireless_tty_is_modem
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_mutex_lock
	mov	x0, x24
	bl	_spin_lock_irqsave
	ldr	x25, [x22, #16]
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	cbz	x25, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_ipw_packet_received_skb
	mov	x1, x0
	ldr	x0, [x22, #16]
	bl	_ppp_input
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_mutex_unlock
	b	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ASSOCIATED_TTYS,4,2        ; @MAX_ASSOCIATED_TTYS
	.comm	_IPW_CHANNEL_RAS,4,2            ; @IPW_CHANNEL_RAS
	.comm	_IPW_CONTROL_LINE_DCD,4,2       ; @IPW_CONTROL_LINE_DCD
.subsections_via_symbols
