	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irnet_prepare_skb
_irnet_prepare_skb:                     ## @irnet_prepare_skb
	.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, %r15
	movq	%rdi, %r14
	movq	_PPP_TRACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_DENTER
	movq	(%r15), %rcx
	movzbl	(%rcx), %eax
	movl	%eax, %edx
	shll	$8, %edx
	movzbl	1(%rcx), %esi
	orl	%edx, %esi
	movq	_PPP_LCP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %esi
	jne	LBB0_1
## %bb.2:
	movb	2(%rcx), %cl
	decb	%cl
	cmpb	$7, %cl
	setb	%bl
	testb	%al, %al
	jne	LBB0_6
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	testb	%al, %al
	jne	LBB0_6
LBB0_4:
	movq	_SC_COMP_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	sete	%al
	orb	%bl, %al
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_skb_pull
LBB0_6:
	movq	_SC_COMP_AC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	sete	%r13b
	orb	%bl, %r13b
	movq	%r15, %rdi
	callq	_skb_headroom
	movzbl	%r13b, %ebx
	addq	%rbx, %rbx
	movq	8(%r14), %rcx
	addq	%rbx, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_skb_shared
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_PPP_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DEBUG
	addq	8(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_skb_realloc_headroom
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	movq	_PPP_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	xorl	%esi, %esi
	callq	_DABORT
	movq	%rbx, %r15
LBB0_9:
	testb	%r13b, %r13b
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_skb_push
	movq	_PPP_ALLSTATIONS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	(%r15), %rcx
	movb	%al, (%rcx)
	movq	_PPP_UI@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	(%r15), %rcx
	movb	%al, 1(%rcx)
LBB0_11:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_DEXIT
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPP_TRACE,4,2                  ## @PPP_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(ap=0x%p, skb=0x%p)\n"

	.comm	_PPP_LCP,4,2                    ## @PPP_LCP
	.comm	_SC_COMP_PROT,4,2               ## @SC_COMP_PROT
	.comm	_SC_COMP_AC,4,2                 ## @SC_COMP_AC
	.comm	_PPP_INFO,4,2                   ## @PPP_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Reallocating skb\n"

	.comm	_PPP_ERROR,4,2                  ## @PPP_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Could not realloc skb\n"

	.comm	_PPP_ALLSTATIONS,1,0            ## @PPP_ALLSTATIONS
	.comm	_PPP_UI,1,0                     ## @PPP_UI
L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_irnet_prepare_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irnet_prepare_skb
_irnet_prepare_skb:                     ; @irnet_prepare_skb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _PPP_TRACE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PPP_TRACE@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_DENTER
	ldr	x9, [x19]
	ldrb	w8, [x9]
	ldrb	w10, [x9, #1]
	bfi	w10, w8, #8, #8
Lloh4:
	adrp	x11, _PPP_LCP@GOTPAGE
Lloh5:
	ldr	x11, [x11, _PPP_LCP@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.1:
	ldrb	w9, [x9, #2]
	sub	w9, w9, #1
	cmp	w9, #7
	cset	w22, lo
	cbnz	w8, LBB0_5
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	cbnz	w8, LBB0_5
LBB0_3:
	ldr	w8, [x20]
Lloh7:
	adrp	x9, _SC_COMP_PROT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SC_COMP_PROT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	orr	w8, w8, w22
	tbnz	w8, #0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_skb_pull
LBB0_5:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _SC_COMP_AC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SC_COMP_AC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
	orr	w22, w8, w22
	mov	x0, x19
	bl	_skb_headroom
	ldr	x8, [x20, #8]
	cmp	w22, #0
	mov	w9, #2
	csel	x23, x9, xzr, ne
	add	x8, x23, x8
	cmp	x0, x8
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_skb_shared
	cbz	x0, LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _PPP_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PPP_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DEBUG
	ldr	x8, [x20, #8]
	add	x1, x8, x23
	mov	x0, x19
	bl	_skb_realloc_headroom
	mov	x20, x0
	mov	x0, x19
	bl	_dev_kfree_skb
	cmp	x20, #0
	cset	w0, eq
Lloh18:
	adrp	x8, _PPP_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPP_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_DABORT
	mov	x19, x20
LBB0_8:
	cbz	w22, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #2
	bl	_skb_push
Lloh23:
	adrp	x8, _PPP_ALLSTATIONS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PPP_ALLSTATIONS@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x19]
	strb	w8, [x9]
Lloh25:
	adrp	x8, _PPP_UI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PPP_UI@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x19]
	strb	w8, [x9, #1]
LBB0_10:
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DEXIT
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PPP_TRACE,4,2                  ; @PPP_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(ap=0x%p, skb=0x%p)\n"

	.comm	_PPP_LCP,4,2                    ; @PPP_LCP
	.comm	_SC_COMP_PROT,4,2               ; @SC_COMP_PROT
	.comm	_SC_COMP_AC,4,2                 ; @SC_COMP_AC
	.comm	_PPP_INFO,4,2                   ; @PPP_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Reallocating skb\n"

	.comm	_PPP_ERROR,4,2                  ; @PPP_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Could not realloc skb\n"

	.comm	_PPP_ALLSTATIONS,1,0            ; @PPP_ALLSTATIONS
	.comm	_PPP_UI,1,0                     ; @PPP_UI
l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_irnet_prepare_skb
.subsections_via_symbols
