	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query                          ## -- Begin function query
	.p2align	4, 0x90
_query:                                 ## @query
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__PATH_TTY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_quit
LBB0_2:
	movq	_attnmessage@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_timeout@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%edi, %edi
	callq	_alarmcatch
	leaq	-112(%rbp), %r15
	movq	_stderr@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r12
	xorl	%eax, %eax
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	$63, %esi
	movq	%r14, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movzbl	-112(%rbp), %eax
	andb	$-33, %al
	cmpb	$78, %al
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpb	$89, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_clearerr
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leal	1(%rax), %ecx
	cmpl	$30, %eax
	movl	%ecx, %eax
	jb	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	callq	_quit
	movl	-120(%rbp), %eax                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_3
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_10:
	movl	$1, %r15d
LBB0_12:
	xorl	%edi, %edi
	callq	_alarm
	movq	_SIGALRM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_sig@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_signal
	movq	_SIG_IGN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_signal
LBB0_14:
	movq	%r14, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_TTY,4,2                  ## @_PATH_TTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fopen on %s fails: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_attnmessage,8,3                ## @attnmessage
	.comm	_timeout,8,3                    ## @timeout
L_.str.2:                               ## @.str.2
	.asciz	"excessive operator query failures\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"  DUMP: \"Yes\" or \"No\"?\n"

L_.str.4:                               ## @.str.4
	.asciz	"  DUMP: %s: (\"yes\" or \"no\") "

	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_sig,8,3                        ## @sig
	.comm	_SIG_IGN,8,3                    ## @SIG_IGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query                          ; -- Begin function query
	.p2align	2
_query:                                 ; @query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x21, __PATH_TTY@GOTPAGE
Lloh4:
	ldr	x21, [x21, __PATH_TTY@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w21, [x21]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_quit
LBB0_2:
Lloh12:
	adrp	x8, _attnmessage@GOTPAGE
Lloh13:
	ldr	x8, [x8, _attnmessage@GOTPAGEOFF]
Lloh14:
	str	x20, [x8]
Lloh15:
	adrp	x8, _timeout@GOTPAGE
Lloh16:
	ldr	x8, [x8, _timeout@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
	mov	w0, #0
	bl	_alarmcatch
	mov	w25, #0
Lloh18:
	adrp	x21, l_.str.2@PAGE
Lloh19:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh20:
	adrp	x24, _stderr@GOTPAGE
Lloh21:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh22:
	adrp	x22, l_.str.3@PAGE
Lloh23:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh24:
	adrp	x23, l_.str.4@PAGE
Lloh25:
	add	x23, x23, l_.str.4@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #63
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #24]
	and	w8, w8, #0xffffffdf
	cmp	w8, #78
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #89
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_fprintf
	ldr	w0, [x24]
	str	x20, [sp]
	mov	x1, x23
	bl	_fprintf
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_clearerr
	add	w26, w25, #1
	cmp	w25, #30
	mov	x25, x26
	b.lo	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_quit
	mov	x25, x26
	b	LBB0_3
LBB0_9:
	mov	w20, #1
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	w0, #0
	bl	_alarm
Lloh26:
	adrp	x21, _SIGALRM@GOTPAGE
Lloh27:
	ldr	x21, [x21, _SIGALRM@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh28:
	adrp	x8, _sig@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sig@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x8]
	bl	_signal
Lloh31:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x1, x0
	ldr	w0, [x21]
	bl	_signal
LBB0_13:
	mov	x0, x19
	bl	_fclose
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_TTY,4,2                  ; @_PATH_TTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fopen on %s fails: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_attnmessage,8,3                ; @attnmessage
	.comm	_timeout,8,3                    ; @timeout
l_.str.2:                               ; @.str.2
	.asciz	"excessive operator query failures\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"  DUMP: \"Yes\" or \"No\"?\n"

l_.str.4:                               ; @.str.4
	.asciz	"  DUMP: %s: (\"yes\" or \"no\") "

	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_sig,8,3                        ; @sig
	.comm	_SIG_IGN,8,3                    ; @SIG_IGN
.subsections_via_symbols
