	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function terminal_ours_1
_terminal_ours_1:                       ## @terminal_ours_1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_inferior_thisrun_terminal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_gdb_has_a_terminal
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_terminal_is_ours@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_6
## %bb.3:
	movl	$1, (%rax)
	movq	_inferior_ttystate@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_xfree
LBB0_5:
	movq	_stdin_serial@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_serial_get_tty_state
	movq	%rax, (%r14)
	movl	(%rbx), %edi
	movq	_our_ttystate@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_serial_noflush_set_tty_state
	movq	_job_control@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigint_ours@GOTPCREL(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_signal                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_thisrun_terminal,8,3  ## @inferior_thisrun_terminal
	.comm	_terminal_is_ours,4,2           ## @terminal_is_ours
	.comm	_inferior_ttystate,8,3          ## @inferior_ttystate
	.comm	_stdin_serial,4,2               ## @stdin_serial
	.comm	_our_ttystate,4,2               ## @our_ttystate
	.comm	_job_control,8,3                ## @job_control
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIGTTOU,4,2                    ## @SIGTTOU
	.comm	_TIOCGPGRP,4,2                  ## @TIOCGPGRP
	.comm	_TIOCSPGRP,4,2                  ## @TIOCSPGRP
	.comm	_errno,4,2                      ## @errno
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.comm	_inferior_process_group,4,2     ## @inferior_process_group
	.comm	_our_process_group,4,2          ## @our_process_group
	.comm	_tflags_inferior,8,3            ## @tflags_inferior
	.comm	_tflags_ours,4,2                ## @tflags_ours
	.no_dead_strip	_terminal_ours_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function terminal_ours_1
_terminal_ours_1:                       ; @terminal_ours_1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _inferior_thisrun_terminal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inferior_thisrun_terminal@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_gdb_has_a_terminal
	cbz	x0, LBB0_1
; %bb.3:
Lloh3:
	adrp	x8, _terminal_is_ours@GOTPAGE
Lloh4:
	ldr	x8, [x8, _terminal_is_ours@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_1
; %bb.4:
	mov	w9, #1
	str	w9, [x8]
Lloh5:
	adrp	x19, _inferior_ttystate@GOTPAGE
Lloh6:
	ldr	x19, [x19, _inferior_ttystate@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_xfree
LBB0_6:
Lloh7:
	adrp	x20, _stdin_serial@GOTPAGE
Lloh8:
	ldr	x20, [x20, _stdin_serial@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_serial_get_tty_state
	mov	x2, x0
	str	x0, [x19]
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _our_ttystate@GOTPAGE
Lloh10:
	ldr	x8, [x8, _our_ttystate@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_serial_noflush_set_tty_state
Lloh12:
	adrp	x8, _job_control@GOTPAGE
Lloh13:
	ldr	x8, [x8, _job_control@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
; %bb.7:
Lloh15:
	adrp	x8, _SIGINT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, _sigint_ours@GOTPAGE
Lloh19:
	ldr	x1, [x1, _sigint_ours@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_signal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_thisrun_terminal,8,3  ; @inferior_thisrun_terminal
	.comm	_terminal_is_ours,4,2           ; @terminal_is_ours
	.comm	_inferior_ttystate,8,3          ; @inferior_ttystate
	.comm	_stdin_serial,4,2               ; @stdin_serial
	.comm	_our_ttystate,4,2               ; @our_ttystate
	.comm	_job_control,8,3                ; @job_control
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIGTTOU,4,2                    ; @SIGTTOU
	.comm	_TIOCGPGRP,4,2                  ; @TIOCGPGRP
	.comm	_TIOCSPGRP,4,2                  ; @TIOCSPGRP
	.comm	_errno,4,2                      ; @errno
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.comm	_inferior_process_group,4,2     ; @inferior_process_group
	.comm	_our_process_group,4,2          ; @our_process_group
	.comm	_tflags_inferior,8,3            ; @tflags_inferior
	.comm	_tflags_ours,4,2                ; @tflags_ours
	.no_dead_strip	_terminal_ours_1
.subsections_via_symbols
