	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srpt_test_and_set_cmd_state
_srpt_test_and_set_cmd_state:           ## @srpt_test_and_set_cmd_state
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_WARN_ON
	movq	_SRPT_STATE_DONE@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	_SRPT_STATE_NEW@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_WARN_ON
	movl	(%r15), %ecx
	cmpl	%ebx, %ecx
	jne	LBB0_2
## %bb.1:
	movl	%r14d, (%r15)
LBB0_2:
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRPT_STATE_DONE,4,2            ## @SRPT_STATE_DONE
	.comm	_SRPT_STATE_NEW,4,2             ## @SRPT_STATE_NEW
	.no_dead_strip	_srpt_test_and_set_cmd_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srpt_test_and_set_cmd_state
_srpt_test_and_set_cmd_state:           ; @srpt_test_and_set_cmd_state
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x8, _SRPT_STATE_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRPT_STATE_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, eq
	bl	_WARN_ON
Lloh3:
	adrp	x8, _SRPT_STATE_NEW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRPT_STATE_NEW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x21]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	str	w20, [x21]
LBB0_2:
	cmp	w8, w19
	cset	w0, eq
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SRPT_STATE_DONE,4,2            ; @SRPT_STATE_DONE
	.comm	_SRPT_STATE_NEW,4,2             ; @SRPT_STATE_NEW
	.no_dead_strip	_srpt_test_and_set_cmd_state
.subsections_via_symbols
