	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_test_loopback_validate
_stmmac_test_loopback_validate:         ## @stmmac_test_loopback_validate
	.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	(%rdx), %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_unshare
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	%rbx, %rdi
	callq	_skb_linearize
	testq	%rax, %rax
	jne	LBB0_24
## %bb.2:
	movq	%rbx, %rdi
	callq	_skb_headlen
	movq	_STMMAC_TEST_PKT_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ETH_HLEN@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_24
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_mac_header
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	48(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	movq	8(%r15), %rdi
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_24
## %bb.5:
	movq	8(%r14), %rax
LBB0_6:
	cmpq	$0, 40(%rax)
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rdi
	movq	8(%r15), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	32(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.9:
	movq	(%r15), %rdi
LBB0_10:
	callq	_ether_addr_equal
	testl	%eax, %eax
	je	LBB0_24
LBB0_11:
	movq	%rbx, %rdi
	callq	_ip_hdr
	cmpq	$0, 16(%r14)
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	callq	_skb_network_header
	movq	%rax, %r15
	addq	$4, %r15
	jmp	LBB0_14
LBB0_12:
	movq	%rax, %r15
LBB0_14:
	movq	8(%r14), %rax
	cmpq	$0, 24(%rax)
	movq	(%r15), %rcx
	je	LBB0_16
## %bb.15:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_18
	jmp	LBB0_24
LBB0_16:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_24
LBB0_18:
	movslq	8(%r15), %r12
	movq	%r12, %rcx
	shlq	$4, %rcx
	movq	(%r15,%rcx), %r13
	movl	16(%rax), %edi
	callq	_htons
	cmpq	%rax, %r13
	jne	LBB0_24
## %bb.19:
	shlq	$4, %r12
	movq	32(%r15,%r12), %r13
	movq	_STMMAC_TEST_PKT_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	cmpq	%rax, %r13
	jne	LBB0_24
## %bb.20:
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_22
## %bb.21:
	cmpl	$0, (%rbx)
	je	LBB0_24
LBB0_22:
	addq	%r12, %r15
	movq	(%rax), %rax
	cmpq	40(%r15), %rax
	jne	LBB0_24
## %bb.23:
	movl	$1, (%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_complete
LBB0_24:
	movq	%rbx, %rdi
	callq	_kfree_skb
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_STMMAC_TEST_PKT_SIZE,8,3       ## @STMMAC_TEST_PKT_SIZE
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_STMMAC_TEST_PKT_MAGIC,4,2      ## @STMMAC_TEST_PKT_MAGIC
	.no_dead_strip	_stmmac_test_loopback_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_test_loopback_validate
_stmmac_test_loopback_validate:         ; @stmmac_test_loopback_validate
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x2]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_skb_unshare
	mov	x20, x0
	cbz	x0, LBB0_23
; %bb.1:
	mov	x0, x20
	bl	_skb_linearize
	cbnz	x0, LBB0_23
; %bb.2:
	mov	x0, x20
	bl	_skb_headlen
Lloh3:
	adrp	x8, _STMMAC_TEST_PKT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMMAC_TEST_PKT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	x8, x8, x9
	cmp	x0, x8
	b.lt	LBB0_23
; %bb.3:
	mov	x0, x20
	bl	_skb_mac_header
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x1, [x8, #48]
	cbz	x1, LBB0_6
; %bb.4:
	ldr	x0, [x21, #8]
	bl	_ether_addr_equal
	cbz	w0, LBB0_23
; %bb.5:
	ldr	x8, [x19, #8]
LBB0_6:
	ldr	x9, [x8, #40]
	cbz	x9, LBB0_8
; %bb.7:
	ldp	x0, x1, [x21]
	bl	_ether_addr_equal
	cbnz	w0, LBB0_10
	b	LBB0_23
LBB0_8:
	ldr	x1, [x8, #32]
	cbz	x1, LBB0_10
; %bb.9:
	ldr	x0, [x21]
	bl	_ether_addr_equal
	cbz	w0, LBB0_23
LBB0_10:
	mov	x0, x20
	bl	_ip_hdr
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_skb_network_header
	add	x21, x0, #4
	b	LBB0_13
LBB0_12:
	mov	x21, x0
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	x10, [x8, #24]
	ldr	x9, [x21]
	cbz	x10, LBB0_15
; %bb.14:
Lloh9:
	adrp	x10, _IPPROTO_TCP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IPPROTO_TCP@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh11:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
LBB0_16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.17:
	ldrsw	x22, [x21, #8]
	lsl	x9, x22, #4
	ldr	x23, [x21, x9]
	ldr	w0, [x8, #16]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_23
; %bb.18:
	add	x21, x21, x22, lsl #4
	ldr	x22, [x21, #32]
Lloh13:
	adrp	x8, _STMMAC_TEST_PKT_MAGIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STMMAC_TEST_PKT_MAGIC@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	cmp	x22, x0
	b.ne	LBB0_23
; %bb.19:
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_21
; %bb.20:
	ldr	w9, [x20]
	cbz	w9, LBB0_23
LBB0_21:
	ldr	x8, [x8]
	ldr	x9, [x21, #40]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	mov	w8, #1
	str	w8, [x19], #4
	mov	x0, x19
	bl	_complete
LBB0_23:
	mov	x0, x20
	bl	_kfree_skb
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_STMMAC_TEST_PKT_SIZE,8,3       ; @STMMAC_TEST_PKT_SIZE
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_STMMAC_TEST_PKT_MAGIC,4,2      ; @STMMAC_TEST_PKT_MAGIC
	.no_dead_strip	_stmmac_test_loopback_validate
.subsections_via_symbols
