	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_sendfile
_check_sendfile:                        ## @check_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%r8d, %r8d
	jle	LBB0_24
## %bb.1:
	movq	%rdi, %rbx
	movl	%r8d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	callq	_notok_mode
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	leaq	-56(%rbp), %rcx
	callq	_socketpair
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %esi
	movl	$0, (%rsp)
	movl	%r13d, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	leaq	-84(%rbp), %r9
	callq	_sendfile
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	callq	_notok_mode
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	callq	_ok_mode
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %edi
	callq	_close
	movl	-52(%rbp), %edi
	callq	_close
	movl	%r13d, %edi
	callq	_close
	jmp	LBB0_23
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open"

	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"socketpair"

L_.str.2:                               ## @.str.2
	.asciz	"directory succeeded"

	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.3:                               ## @.str.3
	.asciz	"succeeded"

L_.str.4:                               ## @.str.4
	.asciz	"directory failed"

L_.str.5:                               ## @.str.5
	.asciz	"failed"

	.no_dead_strip	_check_sendfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_sendfile
_check_sendfile:                        ; @check_sendfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w4, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w27, w4
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
Lloh5:
	adrp	x28, _PF_LOCAL@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PF_LOCAL@GOTPAGEOFF]
Lloh7:
	adrp	x24, _SOCK_STREAM@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SOCK_STREAM@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x23
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x26
	bl	_notok_mode
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #4
	subs	x27, x27, #1
	b.eq	LBB0_18
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x19]
	mov	x0, x21
	mov	x1, x26
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldr	w0, [x28]
	ldr	w1, [x24]
	add	x3, sp, #16
	mov	w2, #0
	bl	_socketpair
	tbnz	x0, #63, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #16]
	add	x5, sp, #12
	mov	x0, x25
	mov	w2, #0
	mov	w3, #1
	mov	x4, #0
	mov	w6, #0
	bl	_sendfile
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w20, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh15:
	adrp	x8, _O_ACCMODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_ACCMODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh18:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh22:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w8, w9
	mov	x0, x22
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x26
	bl	_notok_mode
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh26:
	adrp	x8, _O_ACCMODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _O_ACCMODE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w26
Lloh29:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh30:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh33:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	cmp	w8, w9
	mov	x0, x22
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x26
	bl	_ok_mode
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #16]
	bl	_close
	ldr	w0, [sp, #20]
	bl	_close
	mov	x0, x25
	bl	_close
	b	LBB0_4
LBB0_18:
	ldr	x8, [sp, #24]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open"

	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"socketpair"

l_.str.2:                               ; @.str.2
	.asciz	"directory succeeded"

	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.3:                               ; @.str.3
	.asciz	"succeeded"

l_.str.4:                               ; @.str.4
	.asciz	"directory failed"

l_.str.5:                               ; @.str.5
	.asciz	"failed"

	.no_dead_strip	_check_sendfile
.subsections_via_symbols
