	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function async_pty
_async_pty:                             ## @async_pty
	.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
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	movq	_O_ASYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	_F_SETOWN@GOTPCREL(%rip), %rax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_os_getpid
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r12d, %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:
	movq	_errno@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_errno,4,2                      ## @errno
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_O_ASYNC,4,2                    ## @O_ASYNC
	.comm	_F_SETOWN,4,2                   ## @F_SETOWN
	.no_dead_strip	_async_pty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function async_pty
_async_pty:                             ; @async_pty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fcntl
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x23, _F_SETFL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x24, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w0
Lloh7:
	adrp	x9, _O_ASYNC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_ASYNC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	x8, [sp]
	mov	x0, x21
	bl	_fcntl
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _F_SETOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_SETOWN@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	bl	_os_getpid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_fcntl
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w1, [x23]
	ldr	w8, [x24]
	orr	w8, w8, w20
	str	x8, [sp]
	mov	x0, x19
	bl	_fcntl
	tbnz	w0, #31, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_errno,4,2                      ; @errno
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_O_ASYNC,4,2                    ; @O_ASYNC
	.comm	_F_SETOWN,4,2                   ; @F_SETOWN
	.no_dead_strip	_async_pty
.subsections_via_symbols
