	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ping_getfrag
_ping_getfrag:                          ## @ping_getfrag
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.5:
	movl	%edx, %ebx
	cmpl	$3, %edx
	ja	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_BUG
LBB0_7:
	movl	4(%r14), %esi
	addl	$-4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_csum_partial_copy_fromiovecend
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	cmpl	$3, %r12d
	ja	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:
	addq	$4, %r15
	movl	4(%r14), %esi
	addl	$-4, %r12d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movq	%r14, %r8
	callq	_csum_partial_copy_fromiovecend
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ping_getfrag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ping_getfrag
_ping_getfrag:                          ; @ping_getfrag
	.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
	mov	x20, x3
	mov	x21, x1
	mov	x19, x0
	cbz	w2, LBB0_4
; %bb.1:
	mov	x22, x2
	cmp	w2, #3
	b.hi	LBB0_3
; %bb.2:
	bl	_BUG
LBB0_3:
	ldr	w1, [x19, #4]
	sub	w2, w22, #4
	mov	x0, x21
	mov	x3, x20
	b	LBB0_7
LBB0_4:
	cmp	w20, #3
	b.hi	LBB0_6
; %bb.5:
	bl	_BUG
LBB0_6:
	add	x0, x21, #4
	ldr	w1, [x19, #4]
	sub	w3, w20, #4
	mov	w2, #0
LBB0_7:
	mov	x4, x19
	bl	_csum_partial_copy_fromiovecend
	cbz	x0, LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ping_getfrag
.subsections_via_symbols
