	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_throttle_safe              ## -- Begin function tty_throttle_safe
	.p2align	4, 0x90
_tty_throttle_safe:                     ## @tty_throttle_safe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_TTY_THROTTLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	24(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	_TTY_THROTTLE_SAFE@GOTPCREL(%rip), %rcx
	movl	$1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	___set_bit
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	*%rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_TTY_THROTTLED,4,2              ## @TTY_THROTTLED
	.comm	_TTY_THROTTLE_SAFE,8,3          ## @TTY_THROTTLE_SAFE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tty_throttle_safe              ; -- Begin function tty_throttle_safe
	.p2align	2
_tty_throttle_safe:                     ; @tty_throttle_safe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x22, _TTY_THROTTLED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TTY_THROTTLED@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x20, #24
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_3
LBB0_1:
	mov	w20, #0
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _TTY_THROTTLE_SAFE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TTY_THROTTLE_SAFE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x22]
	mov	x1, x21
	bl	___set_bit
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.5:
	mov	x0, x20
	blr	x8
	b	LBB0_1
LBB0_6:
	mov	w20, #1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TTY_THROTTLED,4,2              ; @TTY_THROTTLED
	.comm	_TTY_THROTTLE_SAFE,8,3          ; @TTY_THROTTLE_SAFE
.subsections_via_symbols
