	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __isptmaster
___isptmaster:                          ## @__isptmaster
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TIOCPTMASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	__ioctl
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_EBADF@GOTPCREL(%rip), %rsi
	movl	$-1, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rcx)
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCPTMASTER,4,2               ## @TIOCPTMASTER
	.comm	_errno,8,3                      ## @errno
	.comm	_EBADF,8,3                      ## @EBADF
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	___isptmaster
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __isptmaster
___isptmaster:                          ; @__isptmaster
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TIOCPTMASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIOCPTMASTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	__ioctl
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _EBADF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EBADF@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _EINVAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCPTMASTER,4,2               ; @TIOCPTMASTER
	.comm	_errno,8,3                      ; @errno
	.comm	_EBADF,8,3                      ; @EBADF
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	___isptmaster
.subsections_via_symbols
