	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm4_beet_input
_xfrm4_beet_input:                      ## @xfrm4_beet_input
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%rsi, %rdi
	callq	_XFRM_MODE_SKB_CB
	movq	(%rax), %rax
	movq	_IPPROTO_BEETPH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %r13d
	movl	4(%rax), %ecx
	addl	$16, %r13d
	shll	$3, %ecx
	movq	_IPV4_BEET_PHMAXLEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	subl	%r13d, %r15d
	addl	%ecx, %r15d
	js	LBB0_8
## %bb.3:
	cmpl	$250, %r15d
	ja	LBB0_8
## %bb.4:
	movl	%r15d, %ecx
	andl	$3, %ecx
	jne	LBB0_8
## %bb.5:
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_XFRM_MODE_SKB_CB
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_pskb_may_pull
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	___skb_pull
	shrl	$2, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_skb_push
	movq	%r14, %rdi
	callq	_skb_reset_network_header
	movq	8(%r14), %r12
	movslq	4(%r14), %rax
	subq	%rax, %r12
	movq	%r14, %rdi
	callq	_skb_mac_header
	movl	4(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_memmove
	subl	4(%r14), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_skb_set_mac_header
	movq	%r14, %rdi
	callq	_xfrm4_beet_make_header
	movq	%r14, %rdi
	callq	_ip_hdr
	movq	%rax, %rbx
	addl	%r15d, (%rax)
	movl	(%r14), %edi
	callq	_htons
	movl	%eax, 24(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 20(%rbx)
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%r14, %rdi
	callq	_skb_network_header
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_ip_fast_csum
	movq	%rax, 8(%rbx)
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %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	_IPPROTO_BEETPH,8,3             ## @IPPROTO_BEETPH
	.comm	_IPV4_BEET_PHMAXLEN,4,2         ## @IPV4_BEET_PHMAXLEN
	.no_dead_strip	_xfrm4_beet_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm4_beet_input
_xfrm4_beet_input:                      ; @xfrm4_beet_input
	.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	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x1
	bl	_XFRM_MODE_SKB_CB
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _IPPROTO_BEETPH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPPROTO_BEETPH@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.1:
	neg	w21, w21
	mov	x0, x19
	mov	w1, #16
	bl	_pskb_may_pull
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	ldp	w9, w10, [x8]
	add	w22, w9, #16
Lloh6:
	adrp	x9, _IPV4_BEET_PHMAXLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPV4_BEET_PHMAXLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w9, w9, w22
	adds	w23, w9, w10, lsl #3
	b.mi	LBB0_8
; %bb.3:
	and	w9, w23, #0x3
	cmp	w23, #250
	ccmp	w9, #0, #0, ls
	b.ne	LBB0_8
; %bb.4:
	ldr	x24, [x8, #8]
	mov	x0, x19
	bl	_XFRM_MODE_SKB_CB
	str	x24, [x0]
	mov	x0, x19
	mov	x1, x22
	bl	_pskb_may_pull
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	bl	___skb_pull
	lsr	w23, w23, #2
	b	LBB0_7
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	x0, x19
	mov	w1, #32
	bl	_skb_push
	mov	x0, x19
	bl	_skb_reset_network_header
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19, #4]
	sub	x21, x8, x9
	mov	x0, x19
	bl	_skb_mac_header
	mov	x1, x0
	ldr	w2, [x19, #4]
	mov	x0, x21
	bl	_memmove
	ldr	w8, [x19, #4]
	neg	w1, w8
	mov	x0, x19
	bl	_skb_set_mac_header
	mov	x0, x19
	bl	_xfrm4_beet_make_header
	mov	x0, x19
	bl	_ip_hdr
	mov	x22, x0
	ldr	w8, [x0]
	add	w8, w8, w23
	str	w8, [x0]
	ldr	w0, [x19]
	bl	_htons
	str	w0, [x22, #24]
	ldr	d0, [x20]
	str	d0, [x22, #16]
	str	xzr, [x22, #8]
	mov	x0, x19
	bl	_skb_network_header
	ldr	w1, [x22]
	bl	_ip_fast_csum
	mov	w21, #0
	str	x0, [x22, #8]
LBB0_8:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPPROTO_BEETPH,8,3             ; @IPPROTO_BEETPH
	.comm	_IPV4_BEET_PHMAXLEN,4,2         ; @IPV4_BEET_PHMAXLEN
	.no_dead_strip	_xfrm4_beet_input
.subsections_via_symbols
