	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go32_terminal_inferior
_go32_terminal_inferior:                ## @go32_terminal_inferior
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	_child_cmd@GOTPCREL(%rip), %rdi
	callq	_redir_to_child
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_child_cmd@GOTPCREL(%rip), %rdi
	callq	_redir_to_debugger
	movq	(%rbx), %rdi
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_2:
	movq	_terminal_is_ours@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	_inf_mode_valid@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_inf_terminal_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_device_mode
LBB0_5:
	movq	$0, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_child_cmd,4,2                  ## @child_cmd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot redirect standard handles for program: %s."

	.comm	_terminal_is_ours,8,3           ## @terminal_is_ours
	.comm	_inf_mode_valid,8,3             ## @inf_mode_valid
	.comm	_inf_terminal_mode,4,2          ## @inf_terminal_mode
	.no_dead_strip	_go32_terminal_inferior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go32_terminal_inferior
_go32_terminal_inferior:                ; @go32_terminal_inferior
	.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	x19, _errno@GOTPAGE
Lloh1:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	str	xzr, [x19]
Lloh2:
	adrp	x0, _child_cmd@GOTPAGE
Lloh3:
	ldr	x0, [x0, _child_cmd@GOTPAGEOFF]
	bl	_redir_to_child
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, _child_cmd@GOTPAGE
Lloh5:
	ldr	x0, [x0, _child_cmd@GOTPAGEOFF]
	bl	_redir_to_debugger
	ldr	x0, [x19]
	bl	_safe_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh8:
	adrp	x19, _terminal_is_ours@GOTPAGE
Lloh9:
	ldr	x19, [x19, _terminal_is_ours@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _inf_mode_valid@GOTPAGE
Lloh11:
	ldr	x8, [x8, _inf_mode_valid@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _inf_terminal_mode@GOTPAGE
Lloh14:
	ldr	x8, [x8, _inf_terminal_mode@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_device_mode
LBB0_5:
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_child_cmd,4,2                  ; @child_cmd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot redirect standard handles for program: %s."

	.comm	_terminal_is_ours,8,3           ; @terminal_is_ours
	.comm	_inf_mode_valid,8,3             ; @inf_mode_valid
	.comm	_inf_terminal_mode,4,2          ; @inf_terminal_mode
	.no_dead_strip	_go32_terminal_inferior
.subsections_via_symbols
