	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_single_file_filter
_apply_single_file_filter:              ## @apply_single_file_filter
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-72(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_filter_buffer_or_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$-1, -72(%rbp)
	movq	%r14, -128(%rbp)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, -120(%rbp)
	movl	%r12d, -112(%rbp)
	movq	%r14, -104(%rbp)
	movq	%r15, -96(%rbp)
	xorl	%edi, %edi
	callq	_fflush
	leaq	-72(%rbp), %rdi
	callq	_start_async
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-72(%rbp), %esi
	leaq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_strbuf_read
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error
	movl	%eax, %r12d
LBB0_3:
	movl	-72(%rbp), %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error
	movl	%eax, %r12d
LBB0_5:
	leaq	-72(%rbp), %rdi
	callq	_finish_async
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_error
	movl	%eax, %r12d
LBB0_7:
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.8:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strbuf_swap
LBB0_9:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	sete	%bl
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_10:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_filter_buffer_or_fd,4,2        ## @filter_buffer_or_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read from external filter '%s' failed"

L_.str.1:                               ## @.str.1
	.asciz	"external filter '%s' failed"

	.no_dead_strip	_apply_single_file_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_single_file_filter
_apply_single_file_filter:              ; @apply_single_file_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stur	w8, [x29, #-56]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _filter_buffer_or_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _filter_buffer_or_fd@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #64]
	add	x8, sp, #8
	str	x8, [sp, #56]
	mov	w8, #-1
	str	w8, [sp, #48]
	stp	x23, x22, [sp, #8]
	str	w21, [sp, #24]
	stp	x20, x24, [sp, #32]
	mov	x0, #0
	bl	_fflush
	add	x0, sp, #48
	bl	_start_async
	mov	w21, #0
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	w1, [sp, #48]
	sub	x0, x29, #56
	mov	w2, #0
	bl	_strbuf_read
	mov	w21, #0
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error
	mov	x21, x0
LBB0_3:
	ldr	w0, [sp, #48]
	bl	_close
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error
	mov	x21, x0
LBB0_5:
	add	x0, sp, #48
	bl	_finish_async
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_error
	mov	x21, x0
LBB0_7:
	cbnz	w21, LBB0_9
; %bb.8:
	sub	x1, x29, #56
	mov	x0, x19
	bl	_strbuf_swap
LBB0_9:
	cmp	w21, #0
	cset	w21, eq
	sub	x0, x29, #56
	bl	_strbuf_release
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_filter_buffer_or_fd,4,2        ; @filter_buffer_or_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read from external filter '%s' failed"

l_.str.1:                               ; @.str.1
	.asciz	"external filter '%s' failed"

	.no_dead_strip	_apply_single_file_filter
.subsections_via_symbols
