	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_udpsum
_jme_udpsum:                            ## @jme_udpsum
	.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	_ETH_HLEN@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	addq	$4, %rax
	movl	$65535, %r14d                   ## imm = 0xFFFF
	cmpq	%rax, (%rdi)
	jb	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_6
## %bb.2:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_skb_set_network_header
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	(%rax), %rax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	movl	$65535, %r14d                   ## imm = 0xFFFF
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	(%rbx), %r12
	movq	(%r15), %r13
	movq	%rbx, %rdi
	callq	_ip_hdr
	movl	8(%rax), %eax
	shll	$2, %eax
	cltq
	addq	%r13, %rax
	addq	$4, %rax
	cmpq	%rax, %r12
	jb	LBB0_5
## %bb.4:
	movq	(%r15), %r14
	movq	%rbx, %rdi
	callq	_ip_hdr
	movl	8(%rax), %eax
	shll	$2, %eax
	movslq	%eax, %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_skb_set_transport_header
	movq	%rbx, %rdi
	callq	_udp_hdr
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_skb_reset_transport_header
LBB0_5:
	movq	%rbx, %rdi
	callq	_skb_reset_network_header
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.no_dead_strip	_jme_udpsum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_udpsum
_jme_udpsum:                            ; @jme_udpsum
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ETH_HLEN@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x9, x9, #4
	cmp	x8, x9
	b.lo	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh2:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.ne	LBB0_5
; %bb.2:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_skb_set_network_header
	mov	x0, x19
	bl	_ip_hdr
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x21, [x19]
	ldr	x22, [x20]
	mov	x0, x19
	bl	_ip_hdr
	ldr	w8, [x0, #8]
	lsl	w8, w8, #2
	add	x8, x22, w8, sxtw
	add	x8, x8, #4
	cmp	x21, x8
	b.hs	LBB0_6
LBB0_4:
	mov	w20, #65535
	b	LBB0_7
LBB0_5:
	mov	w20, #65535
	b	LBB0_8
LBB0_6:
	ldr	x20, [x20]
	mov	x0, x19
	bl	_ip_hdr
	ldr	w8, [x0, #8]
	lsl	w8, w8, #2
	add	x1, x20, w8, sxtw
	mov	x0, x19
	bl	_skb_set_transport_header
	mov	x0, x19
	bl	_udp_hdr
	ldr	w20, [x0]
	mov	x0, x19
	bl	_skb_reset_transport_header
LBB0_7:
	mov	x0, x19
	bl	_skb_reset_network_header
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.no_dead_strip	_jme_udpsum
.subsections_via_symbols
