	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_set_nonblocking_input       ## -- Begin function nb_set_nonblocking_input
	.p2align	4, 0x90
_nb_set_nonblocking_input:              ## @nb_set_nonblocking_input
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	_tcgetattr
	movq	_ICANON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	notl	%eax
	andl	%eax, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	_VMIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	jmp	LBB0_3
LBB0_2:
	orl	%eax, -24(%rbp)
LBB0_3:
	movl	(%r14), %edi
	movq	_TCSANOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_tcsetattr
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_ICANON,4,2                     ## @ICANON
	.comm	_VMIN,8,3                       ## @VMIN
	.comm	_TCSANOW,4,2                    ## @TCSANOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_set_nonblocking_input       ; -- Begin function nb_set_nonblocking_input
	.p2align	2
_nb_set_nonblocking_input:              ; @nb_set_nonblocking_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _STDIN_FILENO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, sp
	bl	_tcgetattr
Lloh2:
	adrp	x8, _ICANON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ICANON@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	x8, [sp]
Lloh5:
	adrp	x9, _VMIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VMIN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x8, x9, lsl #2]
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_3:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _TCSANOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TCSANOW@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_tcsetattr
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_ICANON,4,2                     ; @ICANON
	.comm	_VMIN,8,3                       ; @VMIN
	.comm	_TCSANOW,4,2                    ; @TCSANOW
.subsections_via_symbols
