	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendfile                       ## -- Begin function sendfile
	.p2align	4, 0x90
_sendfile:                              ## @sendfile
	.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	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	leaq	-44(%rbp), %rsi
	callq	_fd_get
	movq	_fd_rsocket@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movl	(%r12), %r9d
	jmp	LBB0_5
LBB0_1:
	movq	_real@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	*(%rax)
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%r9d, %r9d
LBB0_5:
	xorl	%edi, %edi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	callq	_mmap
	cmpq	$-1, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	movl	-44(%rbp), %edi
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_rwrite
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.9:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_lseek
LBB0_10:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_munmap
	jmp	LBB0_11
LBB0_6:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_rsocket,8,3                 ## @fd_rsocket
	.comm	_real,8,3                       ## @real
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendfile                       ; -- Begin function sendfile
	.p2align	2
_sendfile:                              ; @sendfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	add	x1, sp, #12
	bl	_fd_get
Lloh0:
	adrp	x8, _fd_rsocket@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_rsocket@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	x21, LBB0_4
; %bb.2:
	ldr	w5, [x21]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _real@GOTPAGE
Lloh7:
	ldr	x8, [x8, _real@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	blr	x8
	mov	x22, x0
	b	LBB0_11
LBB0_4:
	mov	w5, #0
LBB0_5:
	mov	x0, #0
	mov	x1, x19
	mov	w3, #0
	mov	x4, x20
	bl	_mmap
	cmn	x0, #1
	b.eq	LBB0_10
; %bb.6:
	mov	x23, x0
	ldr	w0, [sp, #12]
	mov	x1, x23
	mov	x2, x19
	bl	_rwrite
	mov	x22, x0
	cbz	x21, LBB0_9
; %bb.7:
	cbz	x22, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_lseek
LBB0_9:
	mov	x0, x23
	mov	x1, x19
	bl	_munmap
	b	LBB0_11
LBB0_10:
	mov	w22, #-1
LBB0_11:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_rsocket,8,3                 ; @fd_rsocket
	.comm	_real,8,3                       ; @real
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
.subsections_via_symbols
