	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_ll2b_complete_rx_packet
_qed_ll2b_complete_rx_packet:           ## @qed_ll2b_complete_rx_packet
	.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	$40, %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	40(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_NETIF_MSG_RX_STATUS@GOTPCREL(%rip), %rcx
	movq	_QED_MSG_STORAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rcx), %esi
	movq	_NETIF_MSG_PKTDATA@GOTPCREL(%rip), %r12
	orl	(%r12), %esi
	movl	32(%r14), %ecx
	movl	20(%r14), %r8d
	movl	16(%r14), %r9d
	movl	24(%r14), %r10d
	movl	(%r14), %ebx
	movl	4(%r14), %r11d
	leaq	L_.str(%rip), %rdx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	8(%r14)
	pushq	%r10
	callq	_DP_VERBOSE
	addq	$32, %rsp
	movl	(%r12), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r9
	testq	%r9, %r9
	je	LBB0_3
## %bb.2:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r14), %eax
	leaq	L_.str.1(%rip), %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	pushq	$0
	pushq	%rax
	callq	_print_hex_dump
	addq	$16, %rsp
LBB0_3:
	movl	16(%r14), %eax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_5
## %bb.4:
	movq	(%r12), %rdi
	leaq	-72(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_qed_ll2_alloc_buffer
	movl	%eax, %r13d
LBB0_5:
	testl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edx
	jmp	LBB0_17
LBB0_7:
	movq	8(%r15), %rax
	movq	16(%r15), %rdi
	movl	(%rbx), %esi
	movl	16(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	callq	_build_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	movq	_NET_SKB_PAD@GOTPCREL(%rip), %rax
	movl	20(%r14), %esi
	addl	(%rax), %esi
	movl	%esi, 20(%r14)
	movq	%r13, %rdi
	callq	_skb_reserve
	movl	16(%r14), %esi
	movq	%r13, %rdi
	callq	_skb_put
	movq	%r13, %rdi
	callq	_skb_checksum_none_assert
	movq	%r13, %rdi
	callq	_skb_reset_mac_header
	movq	%r13, %rdi
	callq	_eth_hdr
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_14
## %bb.11:
	cmpq	$0, 8(%r14)
	je	LBB0_13
## %bb.12:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	8(%r14), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___vlan_hwaccel_put_tag
	movq	8(%r15), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %r8
LBB0_13:
	movl	4(%rax), %edi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%r13, %rsi
	callq	*%r8
	jmp	LBB0_16
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	jmp	LBB0_15
LBB0_14:
	movq	_NETIF_MSG_PKTDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NETIF_MSG_RX_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_QED_MSG_LL2@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_QED_MSG_STORAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DP_VERBOSE
LBB0_15:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_16:
	movq	-72(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	-44(%rbp), %edx
	movl	%edx, (%rbx)
LBB0_17:
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	$1, %r9d
	callq	_qed_ll2_post_rx_buffer
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_qed_ll2_dealloc_buffer
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NETIF_MSG_RX_STATUS,4,2        ## @NETIF_MSG_RX_STATUS
	.comm	_QED_MSG_STORAGE,4,2            ## @QED_MSG_STORAGE
	.comm	_NETIF_MSG_PKTDATA,4,2          ## @NETIF_MSG_PKTDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got an LL2 Rx completion: [Buffer at phys 0x%llx, offset 0x%02x] Length 0x%04x Parse_flags 0x%04x vlan 0x%04x Opaque data [0x%08x:0x%08x]\n"

	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.space	1

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to build SKB\n"

	.comm	_NET_SKB_PAD,8,3                ## @NET_SKB_PAD
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_QED_MSG_LL2,4,2                ## @QED_MSG_LL2
L_.str.3:                               ## @.str.3
	.asciz	"Dropping the packet\n"

	.no_dead_strip	_qed_ll2b_complete_rx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_ll2b_complete_rx_packet
_qed_ll2b_complete_rx_packet:           ; @qed_ll2b_complete_rx_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _NETIF_MSG_RX_STATUS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NETIF_MSG_RX_STATUS@GOTPAGEOFF]
	neg	w23, w8
	ldr	w8, [x25]
Lloh5:
	adrp	x24, _QED_MSG_STORAGE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _QED_MSG_STORAGE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh7:
	adrp	x26, _NETIF_MSG_PKTDATA@GOTPAGE
Lloh8:
	ldr	x26, [x26, _NETIF_MSG_PKTDATA@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w1, w8, w9
	ldp	x8, x21, [x22, #32]
	ldr	x9, [x22, #8]
	ldp	w11, w10, [x22, #16]
	ldr	w12, [x22, #24]
	ldp	w14, w13, [x22]
	stp	x13, x14, [sp, #40]
	stp	x12, x9, [sp, #24]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	stp	x10, x11, [sp, #8]
	str	x8, [sp]
	bl	_DP_VERBOSE
	ldr	w8, [x19]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x5, [x21, #8]
	cbz	x5, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	ldr	w6, [x22, #16]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #16
	mov	w4, #1
	mov	w7, #0
	bl	_print_hex_dump
LBB0_3:
	ldr	w8, [x22, #16]
Lloh19:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
	ldr	x0, [x20]
	add	x1, sp, #64
	sub	x2, x29, #68
	bl	_qed_ll2_alloc_buffer
	mov	x23, x0
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	ldr	w2, [x21]
	b	LBB0_17
LBB0_7:
	ldr	w1, [x21]
	ldp	x8, x0, [x19, #8]
	ldr	w2, [x8, #16]
Lloh22:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	bl	_dma_unmap_single
	ldr	x0, [x21, #8]
	mov	w1, #0
	bl	_build_skb
	cbz	x0, LBB0_13
; %bb.8:
	mov	x23, x0
Lloh25:
	adrp	x8, _NET_SKB_PAD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NET_SKB_PAD@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x22, #20]
	add	w1, w9, w8
	str	w1, [x22, #20]
	bl	_skb_reserve
	ldr	w1, [x22, #16]
	mov	x0, x23
	bl	_skb_put
	mov	x0, x23
	bl	_skb_checksum_none_assert
	mov	x0, x23
	bl	_skb_reset_mac_header
	mov	x0, x23
	bl	_eth_hdr
	ldr	w8, [x0]
	str	w8, [x23]
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_14
; %bb.9:
	ldr	x9, [x9]
	cbz	x9, LBB0_14
; %bb.10:
	ldr	x10, [x22, #8]
	cbz	x10, LBB0_12
; %bb.11:
Lloh28:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_htons
	mov	x1, x0
	ldr	x2, [x22, #8]
	mov	x0, x23
	bl	___vlan_hwaccel_put_tag
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
LBB0_12:
	ldr	w0, [x8, #4]
	ldp	w3, w2, [x22]
	mov	x1, x23
	blr	x9
	b	LBB0_16
LBB0_13:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	b	LBB0_15
LBB0_14:
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _QED_MSG_LL2@GOTPAGE
Lloh34:
	ldr	x9, [x9, _QED_MSG_LL2@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w1, w8, w9
Lloh36:
	adrp	x2, l_.str.3@PAGE
Lloh37:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
LBB0_15:
	ldr	x0, [x21, #8]
	bl	_kfree
LBB0_16:
	ldr	x8, [sp, #64]
	str	x8, [x21, #8]
	ldur	w2, [x29, #-68]
	str	w2, [x21]
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x21
	mov	w5, #1
	bl	_qed_ll2_post_rx_buffer
	cbz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	x1, x21
	bl	_qed_ll2_dealloc_buffer
LBB0_19:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NETIF_MSG_RX_STATUS,4,2        ; @NETIF_MSG_RX_STATUS
	.comm	_QED_MSG_STORAGE,4,2            ; @QED_MSG_STORAGE
	.comm	_NETIF_MSG_PKTDATA,4,2          ; @NETIF_MSG_PKTDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got an LL2 Rx completion: [Buffer at phys 0x%llx, offset 0x%02x] Length 0x%04x Parse_flags 0x%04x vlan 0x%04x Opaque data [0x%08x:0x%08x]\n"

	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.space	1

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to build SKB\n"

	.comm	_NET_SKB_PAD,8,3                ; @NET_SKB_PAD
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_QED_MSG_LL2,4,2                ; @QED_MSG_LL2
l_.str.3:                               ; @.str.3
	.asciz	"Dropping the packet\n"

	.no_dead_strip	_qed_ll2b_complete_rx_packet
.subsections_via_symbols
