	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_encapsulate
_ether1394_encapsulate:                 ## @ether1394_encapsulate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movslq	(%rdx), %rcx
	movq	_hdr_type_len@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %esi
	cmpq	$129, %rcx
	je	LBB0_3
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_skb_push
	movq	%rax, %r12
	movq	24(%rbx), %rdi
	callq	_htons
	movq	%rax, 24(%r12)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_skb_push
	movq	%rax, %r12
	movq	24(%rbx), %rdi
	callq	_htons
	movq	%rax, 24(%r12)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r12)
	movq	8(%rbx), %rdi
	callq	_htons
	movq	%rax, 8(%r12)
	movl	$0, (%r12)
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_4:
	movl	%r14d, %eax
	subl	%esi, %eax
	addl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skb_pull
	movq	%rax, %r12
	cmpl	%r14d, (%r15)
	ja	LBB0_6
## %bb.5:
	movq	_ETH1394_HDR_LF_LF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	24(%rbx), %rdi
	callq	_htons
	movq	%rax, 24(%r12)
	movq	16(%rbx), %rdi
	callq	_htons
	movq	%rax, 16(%r12)
	movq	8(%rbx), %rdi
	callq	_htons
	movq	%rax, 8(%r12)
	movl	$0, (%r12)
LBB0_7:
	movl	(%r15), %esi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_min                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hdr_type_len,8,3               ## @hdr_type_len
	.comm	_ETH1394_HDR_LF_IF,4,2          ## @ETH1394_HDR_LF_IF
	.comm	_ETH1394_HDR_LF_LF,4,2          ## @ETH1394_HDR_LF_LF
	.no_dead_strip	_ether1394_encapsulate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_encapsulate
_ether1394_encapsulate:                 ; @ether1394_encapsulate
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldrsw	x8, [x2]
Lloh0:
	adrp	x9, _hdr_type_len@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hdr_type_len@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_skb_push
	mov	x22, x0
	ldr	x0, [x21, #24]
	bl	_htons
	str	x0, [x22, #24]
	ldr	x8, [x21, #16]
	str	x8, [x22, #16]
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_skb_push
	mov	x22, x0
	ldr	x0, [x21, #24]
	bl	_htons
	str	x0, [x22, #24]
	ldr	x8, [x21, #16]
	str	x8, [x22, #16]
	ldr	x0, [x21, #8]
	bl	_htons
	str	x0, [x22, #8]
	str	wzr, [x22]
	str	wzr, [x21]
	b	LBB0_7
LBB0_4:
	sub	w1, w19, w1
	add	w8, w1, w8
	str	w8, [x21]
	mov	x0, x20
	bl	_skb_pull
	mov	x22, x0
	ldr	w8, [x20]
	cmp	w8, w19
	b.hi	LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _ETH1394_HDR_LF_LF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH1394_HDR_LF_LF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_6:
	ldr	x0, [x21, #24]
	bl	_htons
	str	x0, [x22, #24]
	ldr	x0, [x21, #16]
	bl	_htons
	str	x0, [x22, #16]
	ldr	x0, [x21, #8]
	bl	_htons
	str	x0, [x22, #8]
	str	wzr, [x22]
LBB0_7:
	ldr	w1, [x20]
	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
	b	_min
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hdr_type_len,8,3               ; @hdr_type_len
	.comm	_ETH1394_HDR_LF_IF,4,2          ; @ETH1394_HDR_LF_IF
	.comm	_ETH1394_HDR_LF_LF,4,2          ; @ETH1394_HDR_LF_LF
	.no_dead_strip	_ether1394_encapsulate
.subsections_via_symbols
