	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_set_state                 ## -- Begin function sctp_set_state
	.p2align	4, 0x90
_sctp_set_state:                        ## @sctp_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SCTP_STATE_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%esi, %eax
	sete	%dil
	movslq	%esi, %r15
	movq	%r15, %rsi
	callq	_KASSERT
	movl	(%r12), %eax
	notl	%eax
	andl	(%r14), %eax
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_SCTP_STATE_SHUTDOWN_RECEIVED@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_SCTP_STATE_SHUTDOWN_SENT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SCTP_STATE_SHUTDOWN_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SCTP_CLEAR_SUBSTATE            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_STATE_MASK,4,2            ## @SCTP_STATE_MASK
	.comm	_SCTP_STATE_SHUTDOWN_RECEIVED,4,2 ## @SCTP_STATE_SHUTDOWN_RECEIVED
	.comm	_SCTP_STATE_SHUTDOWN_SENT,4,2   ## @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_STATE_SHUTDOWN_ACK_SENT,4,2 ## @SCTP_STATE_SHUTDOWN_ACK_SENT
	.comm	_SCTP_STATE_SHUTDOWN_PENDING,4,2 ## @SCTP_STATE_SHUTDOWN_PENDING
	.comm	_SCTP_STATE_EMPTY,4,2           ## @SCTP_STATE_EMPTY
	.comm	_SCTP_STATE_INUSE,4,2           ## @SCTP_STATE_INUSE
	.comm	_state__change,4,2              ## @state__change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_set_state                 ; -- Begin function sctp_set_state
	.p2align	2
_sctp_set_state:                        ; @sctp_set_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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _SCTP_STATE_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SCTP_STATE_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	bics	wzr, w1, w8
	cset	w0, eq
	sxtw	x1, w20
	bl	_KASSERT
	ldr	w8, [x19]
	ldr	w9, [x21]
	bic	w8, w8, w9
	orr	w8, w8, w20
	str	w8, [x19]
Lloh2:
	adrp	x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _SCTP_STATE_SHUTDOWN_PENDING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_PENDING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_SCTP_CLEAR_SUBSTATE
LBB0_2:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_STATE_MASK,4,2            ; @SCTP_STATE_MASK
	.comm	_SCTP_STATE_SHUTDOWN_RECEIVED,4,2 ; @SCTP_STATE_SHUTDOWN_RECEIVED
	.comm	_SCTP_STATE_SHUTDOWN_SENT,4,2   ; @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_STATE_SHUTDOWN_ACK_SENT,4,2 ; @SCTP_STATE_SHUTDOWN_ACK_SENT
	.comm	_SCTP_STATE_SHUTDOWN_PENDING,4,2 ; @SCTP_STATE_SHUTDOWN_PENDING
	.comm	_SCTP_STATE_EMPTY,4,2           ; @SCTP_STATE_EMPTY
	.comm	_SCTP_STATE_INUSE,4,2           ; @SCTP_STATE_INUSE
	.comm	_state__change,4,2              ; @state__change
.subsections_via_symbols
