	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macb_pad_and_fcs
_macb_pad_and_fcs:                      ## @macb_pad_and_fcs
	.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, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	callq	_skb_cloned
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r13), %rdi
	callq	_skb_header_cloned
	testq	%rax, %rax
	setne	%cl
LBB0_2:
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r13), %rdi
	subl	(%rdi), %r14d
	callq	_skb_headroom
	movl	%eax, %r15d
	movq	(%r13), %rdi
	callq	_skb_tailroom
	movl	%eax, %r12d
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	je	LBB0_18
## %bb.3:
	movq	(%r13), %rdi
	movq	8(%rdi), %rdx
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_18
## %bb.4:
	callq	_skb_shinfo
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.5:
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.8:
	addl	%r14d, %eax
	addl	%r15d, %r12d
	movl	%eax, %r15d
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	jmp	LBB0_9
LBB0_6:
	cmpl	%eax, %r12d
	jge	LBB0_16
## %bb.7:
	addl	%r15d, %r12d
	xorl	%r15d, %r15d
	cmpl	%eax, %r12d
	cmovll	%eax, %r15d
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	testb	%cl, %cl
	cmovnel	%eax, %r15d
LBB0_9:
	cmpl	%r15d, %r12d
	setl	%al
	orb	%al, %cl
	movq	(%r13), %rdi
	je	LBB0_10
## %bb.11:
	movq	%rbx, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_skb_copy_expand
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rbx
	movq	(%r13), %rdi
	callq	_dev_consume_skb_any
	movq	%rbx, (%r13)
	movq	%r12, %rbx
	jmp	LBB0_14
LBB0_10:
	movl	20(%rdi), %eax
	movl	(%rdi), %edx
	movl	16(%rdi), %esi
	movl	%eax, %edi
	callq	_memmove
	movq	(%r13), %rdi
	movl	%eax, 16(%rdi)
	movl	(%rdi), %esi
	callq	_skb_set_tail_pointer
LBB0_14:
	subl	(%rbx), %r15d
	jle	LBB0_16
## %bb.15:
	movq	(%r13), %rdi
	movl	%r15d, %esi
	callq	_skb_put_zero
LBB0_16:
	movq	(%r13), %rax
	movl	(%rax), %edx
	movl	16(%rax), %esi
	movl	$-1, %edi
	callq	_crc32_le
	movl	%eax, %ebx
	notl	%ebx
	movq	(%r13), %rdi
	movzbl	%bl, %esi
	callq	_skb_put_u8
	movq	(%r13), %rdi
	movzbl	%bh, %esi
	callq	_skb_put_u8
	movq	(%r13), %rdi
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %esi
	callq	_skb_put_u8
	movq	(%r13), %rdi
	shrl	$24, %ebx
	movl	%ebx, %esi
	callq	_skb_put_u8
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_macb_pad_and_fcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macb_pad_and_fcs
_macb_pad_and_fcs:                      ; @macb_pad_and_fcs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_skb_cloned
	cbz	x0, LBB0_2
; %bb.1:
	mov	w24, #1
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19]
	bl	_skb_header_cloned
	cmp	x0, #0
	cset	w24, ne
LBB0_3:
Lloh0:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	x0, [x19]
	ldr	w25, [x0]
	bl	_skb_headroom
	mov	x21, x0
	ldr	x0, [x19]
	bl	_skb_tailroom
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _NETIF_F_HW_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.4:
	mov	x22, x0
	ldr	x0, [x19]
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.5:
	bl	_skb_shinfo
	ldr	x8, [x0]
	cbnz	x8, LBB0_17
; %bb.6:
	sub	w8, w23, w25
Lloh9:
	adrp	x23, _ETH_FCS_LEN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ETH_FCS_LEN@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, #0
	b.le	LBB0_8
; %bb.7:
	add	w20, w9, w8
	add	w8, w22, w21
	b	LBB0_10
LBB0_8:
	cmp	w22, w9
	b.ge	LBB0_16
; %bb.9:
	add	w8, w22, w21
	cmp	w8, w9
	cset	w10, lt
	orr	w10, w24, w10
	cmp	w10, #0
	csel	w20, w9, wzr, ne
LBB0_10:
	cmp	w8, w20
	cset	w8, lt
	orr	w8, w24, w8
	ldr	x0, [x19]
	tbz	w8, #0, LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w1, #0
	mov	x2, x20
	bl	_skb_copy_expand
	cbz	x0, LBB0_19
; %bb.12:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_dev_consume_skb_any
	str	x21, [x19]
	b	LBB0_14
LBB0_13:
	ldp	w1, w8, [x0, #16]
	ldr	w2, [x0]
	mov	x0, x8
	bl	_memmove
	ldr	x8, [x19]
	str	w0, [x8, #16]
	ldr	w1, [x8]
	mov	x0, x8
	bl	_skb_set_tail_pointer
LBB0_14:
	ldr	w8, [x23]
	subs	w1, w20, w8
	b.le	LBB0_16
; %bb.15:
	ldr	x0, [x19]
	bl	_skb_put_zero
LBB0_16:
	ldr	x8, [x19]
	ldr	w1, [x8, #16]
	ldr	w2, [x8]
	mov	w0, #-1
	bl	_crc32_le
	mvn	w20, w0
	ldr	x0, [x19]
	and	w1, w20, #0xff
	bl	_skb_put_u8
	ldr	x0, [x19]
	ubfx	w1, w20, #8, #8
	bl	_skb_put_u8
	ldr	x0, [x19]
	ubfx	w1, w20, #16, #8
	bl	_skb_put_u8
	ldr	x0, [x19]
	lsr	w1, w20, #24
	bl	_skb_put_u8
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_macb_pad_and_fcs
.subsections_via_symbols
