	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pty_is_half_closed_master
_pty_is_half_closed_master:             ## @pty_is_half_closed_master
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	_pty_master@GOTPCREL(%rip), %rax
	jne	LBB0_5
## %bb.1:
	movq	16(%rdi), %r15
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_lock
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	$1, (%r15)
	sete	%bl
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_unlock
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pty_master,4,2                 ## @pty_master
	.no_dead_strip	_pty_is_half_closed_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pty_is_half_closed_master
_pty_is_half_closed_master:             ; @pty_is_half_closed_master
	.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
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _pty_master@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pty_master@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	ldr	x20, [x0, #16]
	add	x19, x20, #4
	mov	x0, x19
	bl	_lock
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w20, eq
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x19
	bl	_unlock
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pty_master,4,2                 ; @pty_master
	.no_dead_strip	_pty_is_half_closed_master
.subsections_via_symbols
