	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_getassocid                ## -- Begin function sctp_getassocid
	.p2align	4, 0x90
_sctp_getassocid:                       ## @sctp_getassocid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movl	$8, -36(%rbp)
	leaq	-48(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leal	4(%r12), %edi
	movl	(%rbx), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	_IPPROTO_SCTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCTP_GET_PEER_ADDR_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %r8
	movl	%r15d, %edi
	movq	%r12, %rcx
	callq	_getsockopt
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	-48(%rbp), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_SCTP,4,2               ## @IPPROTO_SCTP
	.comm	_SCTP_GET_PEER_ADDR_INFO,4,2    ## @SCTP_GET_PEER_ADDR_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_getassocid                ; -- Begin function sctp_getassocid
	.p2align	2
_sctp_getassocid:                       ; @sctp_getassocid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w8, #8
	str	w8, [sp, #4]
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	orr	w0, w21, #0x4
	ldr	w2, [x19]
	mov	x1, x19
	bl	_memcpy
Lloh0:
	adrp	x8, _IPPROTO_SCTP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPPROTO_SCTP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SCTP_GET_PEER_ADDR_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_GET_PEER_ADDR_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x20
	bl	_getsockopt
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_SCTP,4,2               ; @IPPROTO_SCTP
	.comm	_SCTP_GET_PEER_ADDR_INFO,4,2    ; @SCTP_GET_PEER_ADDR_INFO
.subsections_via_symbols
