	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function genelink_rx_fixup
_genelink_rx_fixup:                     ## @genelink_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
	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), %rcx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_13
## %bb.1:
	movq	%rsi, %r13
	movq	8(%rsi), %r14
	movl	16(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_GL_MAX_TRANSMIT_PACKETS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jle	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_12
LBB0_3:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_pull
	cmpl	$2, %r12d
	jl	LBB0_10
## %bb.4:
	incl	%r12d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r15d, %rbx
	shlq	$2, %rbx
	addq	(%r14), %rbx
	addl	$4, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_skb_pull
	decl	%r12d
	movq	%rbx, %r14
	cmpl	$2, %r12d
	jle	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_GL_MAX_PACKET_LEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	(%r14), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_skb_put_data
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_usbnet_skb_return
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skb_pull
	movq	(%r13), %rdx
	movq	_GL_MAX_PACKET_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movl	$1, %eax
	cmpq	%rcx, %rdx
	jle	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_12
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
LBB0_12:
	callq	_netdev_dbg
	xorl	%eax, %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_MAX_TRANSMIT_PACKETS,4,2    ## @GL_MAX_TRANSMIT_PACKETS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"genelink: invalid received packet count %u\n"

	.comm	_GL_MAX_PACKET_LEN,4,2          ## @GL_MAX_PACKET_LEN
L_.str.1:                               ## @.str.1
	.asciz	"genelink: invalid rx length %d\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_genelink_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function genelink_rx_fixup
_genelink_rx_fixup:                     ; @genelink_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
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x1, #8]
	ldr	w0, [x23, #16]
	bl	_le32_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _GL_MAX_TRANSMIT_PACKETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_MAX_TRANSMIT_PACKETS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_4
; %bb.2:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x2, x21
	b	LBB0_12
LBB0_4:
	mov	x0, x20
	mov	w1, #4
	bl	_skb_pull
Lloh5:
	adrp	x24, _GL_MAX_PACKET_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _GL_MAX_PACKET_LEN@GOTPAGEOFF]
	cmp	w21, #2
	b.lt	LBB0_10
; %bb.5:
	add	w25, w21, #1
Lloh7:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x23]
	add	x23, x8, w21, sxtw #2
	add	w1, w21, #4
	mov	x0, x20
	bl	_skb_pull
	sub	w25, w25, #1
	cmp	w25, #2
	b.le	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.gt	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x26]
	mov	x0, x21
	bl	_alloc_skb
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	ldr	x1, [x23]
	mov	x2, x21
	bl	_skb_put_data
	mov	x0, x19
	mov	x1, x22
	bl	_usbnet_skb_return
	b	LBB0_6
LBB0_10:
	mov	x0, x20
	mov	w1, #4
	bl	_skb_pull
	ldr	x2, [x20]
	ldrsw	x8, [x24]
	cmp	x2, x8
	b.le	LBB0_15
; %bb.11:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_12:
	bl	_netdev_dbg
LBB0_13:
	mov	w0, #0
LBB0_14:
	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_15:
	mov	w0, #1
	b	LBB0_14
LBB0_16:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_MAX_TRANSMIT_PACKETS,4,2    ; @GL_MAX_TRANSMIT_PACKETS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"genelink: invalid received packet count %u\n"

	.comm	_GL_MAX_PACKET_LEN,4,2          ; @GL_MAX_PACKET_LEN
l_.str.1:                               ; @.str.1
	.asciz	"genelink: invalid rx length %d\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_genelink_rx_fixup
.subsections_via_symbols
