	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jobctl_notty
_jobctl_notty:                          ## @jobctl_notty
	.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	_ttyfd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
LBB0_2:
	movq	_iflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_out2fmt_flush
	movq	_mflag@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_5
LBB0_3:
	movq	_SIGTSTP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setsignal
	movq	_SIGTTOU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setsignal
	movq	_SIGTTIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setsignal
	movq	_jobctl@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttyfd,4,2                      ## @ttyfd
	.comm	_iflag,4,2                      ## @iflag
	.comm	_SIGTSTP,4,2                    ## @SIGTSTP
	.comm	_SIGTTOU,4,2                    ## @SIGTTOU
	.comm	_SIGTTIN,4,2                    ## @SIGTTIN
	.comm	_jobctl,4,2                     ## @jobctl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh: can't access tty; job control turned off\n"

	.comm	_mflag,8,3                      ## @mflag
	.no_dead_strip	_jobctl_notty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jobctl_notty
_jobctl_notty:                          ; @jobctl_notty
	.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, _ttyfd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ttyfd@GOTPAGEOFF]
	ldr	w0, [x19]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_2:
Lloh2:
	adrp	x8, _iflag@GOTPAGE
Lloh3:
	ldr	x8, [x8, _iflag@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_out2fmt_flush
Lloh7:
	adrp	x8, _mflag@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mflag@GOTPAGEOFF]
Lloh9:
	str	xzr, [x8]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _SIGTSTP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIGTSTP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_setsignal
Lloh13:
	adrp	x8, _SIGTTOU@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIGTTOU@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_setsignal
Lloh16:
	adrp	x8, _SIGTTIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SIGTTIN@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_setsignal
Lloh19:
	adrp	x8, _jobctl@GOTPAGE
Lloh20:
	ldr	x8, [x8, _jobctl@GOTPAGEOFF]
	mov	w9, #1
Lloh21:
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ttyfd,4,2                      ; @ttyfd
	.comm	_iflag,4,2                      ; @iflag
	.comm	_SIGTSTP,4,2                    ; @SIGTSTP
	.comm	_SIGTTOU,4,2                    ; @SIGTTOU
	.comm	_SIGTTIN,4,2                    ; @SIGTTIN
	.comm	_jobctl,4,2                     ; @jobctl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh: can't access tty; job control turned off\n"

	.comm	_mflag,8,3                      ; @mflag
	.no_dead_strip	_jobctl_notty
.subsections_via_symbols
