	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_psn
_check_psn:                             ## @check_psn
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rdi
	movq	(%rdx), %rsi
	callq	_psn_compare
	testq	%rax, %rax
	jle	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	_wqe_state_pending@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.2:
	movq	_WR_ATOMIC_OR_READ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	je	LBB0_12
## %bb.3:
	movq	_COMPST_ERROR_RETRY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_psn_compare
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	je	LBB0_9
## %bb.6:
	movq	_WR_ATOMIC_OR_READ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r15)
	jne	LBB0_13
LBB0_9:
	movq	_COMPST_CHECK_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.11:
	movq	_COMPST_COMP_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_COMPST_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_reset_retry_counters
	movq	_COMPST_COMP_WQE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wqe_state_pending,8,3          ## @wqe_state_pending
	.comm	_WR_ATOMIC_OR_READ_MASK,4,2     ## @WR_ATOMIC_OR_READ_MASK
	.comm	_COMPST_ERROR_RETRY,4,2         ## @COMPST_ERROR_RETRY
	.comm	_COMPST_COMP_WQE,4,2            ## @COMPST_COMP_WQE
	.comm	_COMPST_DONE,4,2                ## @COMPST_DONE
	.comm	_COMPST_COMP_ACK,4,2            ## @COMPST_COMP_ACK
	.comm	_COMPST_CHECK_ACK,4,2           ## @COMPST_CHECK_ACK
	.no_dead_strip	_check_psn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_psn
_check_psn:                             ; @check_psn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x0, [x1]
	ldr	x1, [x2]
	bl	_psn_compare
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _wqe_state_pending@GOTPAGE
Lloh1:
	ldr	x9, [x9, _wqe_state_pending@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19, #16]
Lloh3:
	adrp	x9, _WR_ATOMIC_OR_READ_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WR_ATOMIC_OR_READ_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _COMPST_ERROR_RETRY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMPST_ERROR_RETRY@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	x0, [x21]
	ldr	x1, [x20]
	bl	_psn_compare
	tbnz	x0, #63, LBB0_8
; %bb.5:
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _WR_ATOMIC_OR_READ_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WR_ATOMIC_OR_READ_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _COMPST_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMPST_DONE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x21]
	ldr	x9, [x19]
Lloh13:
	adrp	x10, _COMPST_DONE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _COMPST_DONE@GOTPAGEOFF]
Lloh15:
	adrp	x11, _COMPST_COMP_ACK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _COMPST_COMP_ACK@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _COMPST_CHECK_ACK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMPST_CHECK_ACK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_reset_retry_counters
Lloh19:
	adrp	x8, _COMPST_COMP_WQE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _COMPST_COMP_WQE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_wqe_state_pending,8,3          ; @wqe_state_pending
	.comm	_WR_ATOMIC_OR_READ_MASK,4,2     ; @WR_ATOMIC_OR_READ_MASK
	.comm	_COMPST_ERROR_RETRY,4,2         ; @COMPST_ERROR_RETRY
	.comm	_COMPST_COMP_WQE,4,2            ; @COMPST_COMP_WQE
	.comm	_COMPST_DONE,4,2                ; @COMPST_DONE
	.comm	_COMPST_COMP_ACK,4,2            ; @COMPST_COMP_ACK
	.comm	_COMPST_CHECK_ACK,4,2           ; @COMPST_CHECK_ACK
	.no_dead_strip	_check_psn
.subsections_via_symbols
