	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr9700_rx_fixup
_sr9700_rx_fixup:                       ## @sr9700_rx_fixup
	.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
	movl	(%rsi), %eax
	movq	_SR_RX_OVERHEAD@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	(%r12), %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r15), %esi
	movl	(%r12), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %esi
	jle	LBB0_10
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdx
	cmpl	$64, (%rdx)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rdx), %r14d
	shll	$8, %r14d
	orl	4(%rdx), %r14d
	leal	-4(%r14), %r13d
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, %ecx
	cmpl	%ecx, %esi
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	%r13d, (%rax)
	movq	8(%r15), %rax
	addq	$12, %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_skb_set_tail_pointer
	addl	$20, %r14d
	movl	%r14d, 16(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_usbnet_skb_return
	addl	(%r12), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_pull
	movl	(%r15), %esi
	movl	(%r12), %ecx
	cmpl	%ecx, %esi
	jg	LBB0_3
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_skb_pull
	movl	%r13d, (%r15)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_skb_set_tail_pointer
	addl	$20, %r14d
	movl	%r14d, 16(%r15)
	movl	$2, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_RX_OVERHEAD,4,2             ## @SR_RX_OVERHEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected tiny rx frame\n"

	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_sr9700_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr9700_rx_fixup
_sr9700_rx_fixup:                       ; @sr9700_rx_fixup
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x23, _SR_RX_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SR_RX_OVERHEAD@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_9
LBB0_2:
	ldr	w8, [x19]
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_9
; %bb.3:
Lloh4:
	adrp	x24, _ETH_FRAME_LEN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh6:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #8]
	ldr	w11, [x10]
	cmp	w11, #64
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w11, w10, [x10, #4]
	orr	w26, w11, w10, lsl #8
	sub	w21, w26, #4
	ldr	w10, [x24]
	cmp	w21, w10
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w21, w9
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	mov	x0, x19
	bl	_skb_clone
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	str	w21, [x0]
	ldr	x8, [x19, #8]
	add	x8, x8, #12
	str	x8, [x0, #8]
	mov	x1, x21
	bl	_skb_set_tail_pointer
	add	w8, w26, #20
	str	w8, [x22, #16]
	mov	x0, x20
	mov	x1, x22
	bl	_usbnet_skb_return
	ldr	w8, [x23]
	add	w1, w8, w21
	mov	x0, x19
	bl	_skb_pull
	ldr	w8, [x19]
	ldr	w9, [x23]
	cmp	w8, w9
	b.gt	LBB0_4
LBB0_9:
	mov	w0, #0
LBB0_10:
	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_11:
	mov	x0, x19
	mov	w1, #3
	bl	_skb_pull
	str	w21, [x19]
	mov	x0, x19
	mov	x1, x21
	bl	_skb_set_tail_pointer
	add	w8, w26, #20
	str	w8, [x19, #16]
	mov	w0, #2
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_RX_OVERHEAD,4,2             ; @SR_RX_OVERHEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected tiny rx frame\n"

	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_sr9700_rx_fixup
.subsections_via_symbols
