	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raw_cat
_raw_cat:                               ## @raw_cat
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fileno
	movl	%eax, %r15d
	movq	_raw_cat.buf(%rip), %rsi
	testq	%rsi, %rsi
	jne	LBB0_13
## %bb.1:
	leaq	-64(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	__SC_PHYS_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	_PHYSPAGES_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.5:
	movq	_BUFSIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAXPHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %esi
	callq	_MIN
	jmp	LBB0_9
LBB0_7:
	movq	-64(%rbp), %rax
	movq	%rax, _raw_cat.bsize(%rip)
	movq	__SC_PAGESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	_raw_cat.bsize(%rip), %rdi
	testq	%rax, %rax
	jle	LBB0_11
## %bb.8:
	movq	%rax, %rsi
	callq	_MAX
LBB0_9:
	movq	%rax, %rdi
	jmp	LBB0_10
LBB0_6:
	movq	_BUFSIZE_SMALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_10:
	movq	%rdi, _raw_cat.bsize(%rip)
LBB0_11:
	callq	_malloc
	movq	%rax, %rsi
	movq	%rax, _raw_cat.buf(%rip)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	_raw_cat.buf(%rip), %rsi
LBB0_13:
	movq	_raw_cat.bsize(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_read
	movq	%rax, %r13
	testq	%rax, %rax
	jle	LBB0_19
## %bb.14:
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r14
	movq	_raw_cat.buf(%rip), %rsi
	addq	%r14, %rsi
	movl	%r15d, %edi
	movq	%r13, %rdx
	callq	_write
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %edi
	movq	%r12, %rsi
	callq	_err
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	addq	%rbx, %r14
	subq	%rbx, %r13
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_raw_cat.buf(%rip), %rsi
	movq	_raw_cat.bsize(%rip), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_read
	movq	%rax, %r13
	movl	$0, %r14d
	testq	%rax, %rax
	jg	LBB0_16
LBB0_19:
	testq	%r13, %r13
	jns	LBB0_21
## %bb.20:
	movq	_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	movq	_rval@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_raw_cat.bsize,8,3 ## @raw_cat.bsize
.zerofill __DATA,__bss,_raw_cat.buf,8,3 ## @raw_cat.buf
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stdout"

	.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	_BUFSIZE_SMALL,8,3              ## @BUFSIZE_SMALL
	.comm	__SC_PAGESIZE,4,2               ## @_SC_PAGESIZE
L_.str.1:                               ## @.str.1
	.asciz	"malloc() failure of IO buffer"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_filename,4,2                   ## @filename
	.comm	_rval,4,2                       ## @rval
	.no_dead_strip	_raw_cat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raw_cat
_raw_cat:                               ; @raw_cat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _stdout@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fileno
	mov	x20, x0
	adrp	x24, _raw_cat.buf@PAGE
	ldr	x1, [x24, _raw_cat.buf@PAGEOFF]
	adrp	x25, _raw_cat.bsize@PAGE
	cbnz	x1, LBB0_12
; %bb.1:
	mov	x1, sp
	mov	x0, x20
	bl	_fstat
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	w0, [sp, #8]
	bl	_S_ISREG
	cbz	x0, LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, __SC_PHYS_PAGES@GOTPAGE
Lloh6:
	ldr	x8, [x8, __SC_PHYS_PAGES@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_sysconf
Lloh8:
	adrp	x8, _PHYSPAGES_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHYSPAGES_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _BUFSIZE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUFSIZE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _MAXPHYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAXPHYS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsl	w1, w8, #3
	bl	_MIN
	b	LBB0_9
LBB0_6:
	ldr	x8, [sp]
	str	x8, [x25, _raw_cat.bsize@PAGEOFF]
Lloh17:
	adrp	x8, __SC_PAGESIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, __SC_PAGESIZE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x1, x0
	ldr	x0, [x25, _raw_cat.bsize@PAGEOFF]
	cmp	x1, #1
	b.lt	LBB0_10
; %bb.7:
	bl	_MAX
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _BUFSIZE_SMALL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BUFSIZE_SMALL@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
LBB0_9:
	str	x0, [x25, _raw_cat.bsize@PAGEOFF]
LBB0_10:
	bl	_malloc
	mov	x1, x0
	str	x0, [x24, _raw_cat.buf@PAGEOFF]
	cbnz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x1, [x24, _raw_cat.buf@PAGEOFF]
LBB0_12:
	ldr	x2, [x25, _raw_cat.bsize@PAGEOFF]
	mov	x0, x19
	bl	_read
	mov	x21, x0
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.13:
	mov	x8, #0
Lloh25:
	adrp	x22, l_.str@PAGE
Lloh26:
	add	x22, x22, l_.str@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, _raw_cat.buf@PAGEOFF]
	sxtw	x26, w8
	add	x1, x9, x26
	mov	x0, x20
	mov	x2, x21
	bl	_write
	mov	x23, x0
	tbz	x0, #63, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_err
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x8, x23, x26
	subs	x21, x21, x23
	b.ne	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x1, [x24, _raw_cat.buf@PAGEOFF]
	ldr	x2, [x25, _raw_cat.bsize@PAGEOFF]
	mov	x0, x19
	bl	_read
	mov	x21, x0
	mov	x8, #0
	cmp	x0, #1
	b.ge	LBB0_14
LBB0_18:
	tbz	x21, #63, LBB0_20
; %bb.19:
Lloh27:
	adrp	x8, _filename@GOTPAGE
Lloh28:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
Lloh32:
	adrp	x8, _rval@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rval@GOTPAGEOFF]
	mov	w9, #1
Lloh34:
	str	w9, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_raw_cat.bsize,8,3 ; @raw_cat.bsize
.zerofill __DATA,__bss,_raw_cat.buf,8,3 ; @raw_cat.buf
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stdout"

	.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	_BUFSIZE_SMALL,8,3              ; @BUFSIZE_SMALL
	.comm	__SC_PAGESIZE,4,2               ; @_SC_PAGESIZE
l_.str.1:                               ; @.str.1
	.asciz	"malloc() failure of IO buffer"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_filename,4,2                   ; @filename
	.comm	_rval,4,2                       ; @rval
	.no_dead_strip	_raw_cat
.subsections_via_symbols
