	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function operate_common
_operate_common:                        ## @operate_common
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_fd@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	js	LBB0_1
LBB0_12:
	movq	_buf@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	cmpq	$0, (%r12)
	jne	LBB0_25
## %bb.13:
	testl	%r15d, %r15d
	js	LBB0_21
## %bb.14:
	leaq	-40(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	jmp	LBB0_16
LBB0_1:
	movq	_multiple@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	(%r14), %edi
	movq	_rpath@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_realpath
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r12), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_12
LBB0_4:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
LBB0_16:
	callq	_warn
	movq	_DPV_STATUS_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	$-1, %ebx
	jmp	LBB0_25
LBB0_5:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%rbx)
	callq	_isatty
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_open
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	%eax, %edi
	callq	_close
LBB0_7:
	movq	_output_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.10:
	movq	$-2, %rax
	jmp	LBB0_11
LBB0_17:
	movl	-36(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	__SC_PHYS_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	_PHYSPAGES_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_19
LBB0_21:
	movq	_BUFSIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAXPHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %esi
	callq	_MIN
LBB0_22:
	movq	%rax, %rdi
LBB0_23:
	movq	_bsize@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	incq	%rdi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_end_dialog
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_25:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	$-1, %rax
LBB0_11:
	addq	%rax, (%rbx)
	jmp	LBB0_12
LBB0_20:
	movl	-40(%rbp), %r14d
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_MAX
	jmp	LBB0_22
LBB0_19:
	movq	_BUFSIZE_SMALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_fd,8,3                         ## @fd
	.comm	_multiple,8,3                   ## @multiple
	.comm	_rpath,8,3                      ## @rpath
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_DPV_STATUS_FAILED,8,3          ## @DPV_STATUS_FAILED
	.comm	_STDIN_FILENO,8,3               ## @STDIN_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"/dev/stdin"

	.comm	_output_type,4,2                ## @output_type
	.comm	_buf,8,3                        ## @buf
L_.str.2:                               ## @.str.2
	.asciz	"%i"

	.comm	__SC_PHYS_PAGES,4,2             ## @_SC_PHYS_PAGES
	.comm	_PHYSPAGES_THRESHOLD,8,3        ## @PHYSPAGES_THRESHOLD
	.comm	_BUFSIZE_MAX,4,2                ## @BUFSIZE_MAX
	.comm	_MAXPHYS,4,2                    ## @MAXPHYS
	.comm	_bsize,8,3                      ## @bsize
	.comm	_BUFSIZE_SMALL,8,3              ## @BUFSIZE_SMALL
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"Out of memory?!"

	.no_dead_strip	_operate_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function operate_common
_operate_common:                        ; @operate_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _fd@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fd@GOTPAGEOFF]
	ldr	x8, [x21]
	tbnz	x8, #63, LBB0_3
LBB0_1:
Lloh2:
	adrp	x21, _buf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _buf@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_7
LBB0_2:
	mov	w0, #0
	b	LBB0_11
LBB0_3:
Lloh4:
	adrp	x8, _multiple@GOTPAGE
Lloh5:
	ldr	x8, [x8, _multiple@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.4:
	ldr	w0, [x19]
Lloh7:
	adrp	x22, _rpath@GOTPAGE
Lloh8:
	ldr	x22, [x22, _rpath@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_realpath
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x22]
Lloh9:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_open
	str	x0, [x21]
	tbz	x0, #63, LBB0_1
LBB0_6:
	ldr	w1, [x19]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
	tbnz	w20, #31, LBB0_19
; %bb.8:
	add	x1, sp, #8
	mov	x0, x20
	bl	_fstat
	cbz	x0, LBB0_17
; %bb.9:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
LBB0_10:
	bl	_warn
Lloh16:
	adrp	x8, _DPV_STATUS_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DPV_STATUS_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
Lloh19:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	str	x0, [x21]
	bl	_isatty
	cbz	x0, LBB0_14
; %bb.13:
Lloh22:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_open
	sub	x8, x0, #1
	str	x8, [x21]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_close
LBB0_14:
Lloh27:
	adrp	x8, _output_type@GOTPAGE
Lloh28:
	ldr	x8, [x8, _output_type@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_22
; %bb.15:
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.16:
	mov	x8, #-2
	b	LBB0_23
LBB0_17:
	ldr	w0, [sp, #12]
	bl	_S_ISREG
	cbz	x0, LBB0_24
; %bb.18:
Lloh30:
	adrp	x8, __SC_PHYS_PAGES@GOTPAGE
Lloh31:
	ldr	x8, [x8, __SC_PHYS_PAGES@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_sysconf
Lloh33:
	adrp	x8, _PHYSPAGES_THRESHOLD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PHYSPAGES_THRESHOLD@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_25
LBB0_19:
Lloh36:
	adrp	x8, _BUFSIZE_MAX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BUFSIZE_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _MAXPHYS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MAXPHYS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	lsl	w1, w8, #3
	bl	_MIN
LBB0_20:
Lloh42:
	adrp	x8, _bsize@GOTPAGE
Lloh43:
	ldr	x8, [x8, _bsize@GOTPAGEOFF]
Lloh44:
	str	x0, [x8]
	add	x0, x0, #1
	bl	_malloc
	str	x0, [x21]
	cbnz	x0, LBB0_2
; %bb.21:
	bl	_end_dialog
Lloh45:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.3@PAGE
Lloh49:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	b	LBB0_2
LBB0_22:
	mov	x8, #-1
LBB0_23:
	ldr	x9, [x21]
	add	x8, x9, x8
	str	x8, [x21]
	b	LBB0_1
LBB0_24:
	ldr	w19, [sp, #8]
Lloh50:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh51:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MAX
	b	LBB0_20
LBB0_25:
Lloh53:
	adrp	x8, _BUFSIZE_SMALL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BUFSIZE_SMALL@GOTPAGEOFF]
Lloh55:
	ldr	x0, [x8]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_fd,8,3                         ; @fd
	.comm	_multiple,8,3                   ; @multiple
	.comm	_rpath,8,3                      ; @rpath
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_DPV_STATUS_FAILED,8,3          ; @DPV_STATUS_FAILED
	.comm	_STDIN_FILENO,8,3               ; @STDIN_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"/dev/stdin"

	.comm	_output_type,4,2                ; @output_type
	.comm	_buf,8,3                        ; @buf
l_.str.2:                               ; @.str.2
	.asciz	"%i"

	.comm	__SC_PHYS_PAGES,4,2             ; @_SC_PHYS_PAGES
	.comm	_PHYSPAGES_THRESHOLD,8,3        ; @PHYSPAGES_THRESHOLD
	.comm	_BUFSIZE_MAX,4,2                ; @BUFSIZE_MAX
	.comm	_MAXPHYS,4,2                    ; @MAXPHYS
	.comm	_bsize,8,3                      ; @bsize
	.comm	_BUFSIZE_SMALL,8,3              ; @BUFSIZE_SMALL
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"Out of memory?!"

	.no_dead_strip	_operate_common
.subsections_via_symbols
