	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gettextspace
_gettextspace:                          ## @gettextspace
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_xbuf@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_malloc
	movq	_textspace@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	(%r15), %rsi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rdi
	callq	_N_TXTOFF
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_fseek
	movq	(%r14), %rdi
	movq	(%r15), %rdx
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_fread
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xbuf,8,3                       ## @xbuf
	.comm	_textspace,8,3                  ## @textspace
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no room for %u bytes of text space: can't do -c"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't read text space: can't do -c"

	.no_dead_strip	_gettextspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gettextspace
_gettextspace:                          ; @gettextspace
	.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	x19, x0
Lloh0:
	adrp	x21, _xbuf@GOTPAGE
Lloh1:
	ldr	x21, [x21, _xbuf@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_malloc
	mov	x8, x0
Lloh2:
	adrp	x20, _textspace@GOTPAGE
Lloh3:
	ldr	x20, [x20, _textspace@GOTPAGEOFF]
	str	x0, [x20]
	ldr	x0, [x21]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_N_TXTOFF
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_fseek
	ldr	x0, [x20]
	ldr	x2, [x21]
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	ldr	x0, [x20]
	bl	_free
	str	xzr, [x20]
	b	LBB0_4
LBB0_3:
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_xbuf,8,3                       ; @xbuf
	.comm	_textspace,8,3                  ; @textspace
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no room for %u bytes of text space: can't do -c"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't read text space: can't do -c"

	.no_dead_strip	_gettextspace
.subsections_via_symbols
