	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gss_pipe_open
_gss_pipe_open:                         ## @gss_pipe_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_pipe_version_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_pipe_version@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.3:
	cmpl	%ebx, %ecx
	je	LBB0_2
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movl	%ebx, (%rax)
	movq	_pipe_version_rpc_waitqueue@GOTPCREL(%rip), %rdi
	callq	_rpc_wake_up
	movq	_pipe_version_waitqueue@GOTPCREL(%rip), %rdi
	callq	_wake_up
LBB0_2:
	movq	_pipe_users@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	xorl	%ebx, %ebx
LBB0_5:
	movq	_pipe_version_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pipe_version_lock,4,2          ## @pipe_version_lock
	.comm	_pipe_version,4,2               ## @pipe_version
	.comm	_pipe_version_rpc_waitqueue,4,2 ## @pipe_version_rpc_waitqueue
	.comm	_pipe_version_waitqueue,4,2     ## @pipe_version_waitqueue
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_pipe_users,4,2                 ## @pipe_users
	.no_dead_strip	_gss_pipe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gss_pipe_open
_gss_pipe_open:                         ; @gss_pipe_open
	.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
	mov	x19, x1
Lloh0:
	adrp	x0, _pipe_version_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pipe_version_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x8, _pipe_version@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pipe_version@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_3
; %bb.1:
	cmp	w9, w19
	b.eq	LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_5
LBB0_3:
	str	w19, [x8]
Lloh7:
	adrp	x0, _pipe_version_rpc_waitqueue@GOTPAGE
Lloh8:
	ldr	x0, [x0, _pipe_version_rpc_waitqueue@GOTPAGEOFF]
	bl	_rpc_wake_up
Lloh9:
	adrp	x0, _pipe_version_waitqueue@GOTPAGE
Lloh10:
	ldr	x0, [x0, _pipe_version_waitqueue@GOTPAGEOFF]
	bl	_wake_up
LBB0_4:
Lloh11:
	adrp	x0, _pipe_users@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pipe_users@GOTPAGEOFF]
	bl	_atomic_inc
	mov	w19, #0
LBB0_5:
Lloh13:
	adrp	x0, _pipe_version_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _pipe_version_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pipe_version_lock,4,2          ; @pipe_version_lock
	.comm	_pipe_version,4,2               ; @pipe_version
	.comm	_pipe_version_rpc_waitqueue,4,2 ; @pipe_version_rpc_waitqueue
	.comm	_pipe_version_waitqueue,4,2     ; @pipe_version_waitqueue
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_pipe_users,4,2                 ; @pipe_users
	.no_dead_strip	_gss_pipe_open
.subsections_via_symbols
