	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_assoc_set_primary         ## -- Begin function sctp_assoc_set_primary
	.p2align	4, 0x90
_sctp_assoc_set_primary:                ## @sctp_assoc_set_primary
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	testq	%rax, %rax
	setne	%r15b
	cmpq	%rsi, %rax
	setne	%r12b
	movq	%rsi, 32(%rdi)
	addq	$24, %rdi
	addq	$20, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	_SCTP_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_SCTP_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	cmpl	$0, 8(%r14)
	jne	LBB0_5
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, 16(%r14)
	cmpl	$0, 8(%r14)
	jne	LBB0_5
LBB0_4:
	cmpl	$0, 4(%r14)
	je	LBB0_8
LBB0_5:
	andb	%r12b, %r15b
	movzbl	%r15b, %eax
	cmpl	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movl	%eax, 12(%rbx)
LBB0_7:
	movl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_ACTIVE,8,3                ## @SCTP_ACTIVE
	.comm	_SCTP_UNKNOWN,8,3               ## @SCTP_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_assoc_set_primary         ; -- Begin function sctp_assoc_set_primary
	.p2align	2
_sctp_assoc_set_primary:                ; @sctp_assoc_set_primary
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	cmp	x8, #0
	ccmp	x8, x1, #4, ne
	cset	w21, ne
	str	x1, [x0, #32]
	add	x0, x0, #24
	add	x1, x1, #20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SCTP_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SCTP_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCTP_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	str	x19, [x20, #16]
LBB0_2:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_7
LBB0_4:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.5:
	str	w21, [x19, #12]
LBB0_6:
	str	w21, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19, #16]
LBB0_7:
	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	_SCTP_ACTIVE,8,3                ; @SCTP_ACTIVE
	.comm	_SCTP_UNKNOWN,8,3               ; @SCTP_UNKNOWN
.subsections_via_symbols
