	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_findassociation_addr      ## -- Begin function sctp_findassociation_addr
	.p2align	4, 0x90
_sctp_findassociation_addr:             ## @sctp_findassociation_addr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %r13
	movq	16(%rbp), %rbx
	movq	8(%r8), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_ntohl
	movq	%rbx, %rcx
	movl	(%r12), %ebx
	movl	4(%r12), %r9d
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r13, %r8
	pushq	$0
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	$0
	pushq	%rbx
	movq	%rcx, %rbx
	callq	_sctp_findassoc_by_vtag
	addq	$32, %rsp
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_17
LBB0_2:
	movl	32(%rbp), %r9d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	24(%rbp), %rcx
	movl	$1, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_sctp_findassociation_addr_sa
	movq	%rax, %r13
	movq	(%rbx), %rcx
	movq	%rcx, -48(%rbp)
	jmp	LBB0_5
LBB0_4:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	24(%rbp), %rcx
	movl	$1, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_sctp_findassociation_addr_sa
	movq	%rax, %r13
	movq	-48(%rbp), %rcx
LBB0_5:
	movq	_SCTP_DEBUG_PCB1@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_SCTPDBG
	testq	%r13, %r13
	jne	LBB0_16
## %bb.6:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	_SCTP_INITIATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.8:
	movq	_SCTP_INITIATION_ACK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.9:
	xorl	%r13d, %r13d
LBB0_16:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_SCTPDBG
LBB0_17:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.13:
	movq	$0, (%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_14:
	leaq	-48(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movq	24(%rbp), %r8
	movq	%r15, %r9
	callq	_sctp_findassociation_special_addr
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_16
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_PCB1,4,2            ## @SCTP_DEBUG_PCB1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stcb:%p inp:%p\n"

	.comm	_SCTP_INITIATION,8,3            ## @SCTP_INITIATION
	.comm	_SCTP_INITIATION_ACK,8,3        ## @SCTP_INITIATION_ACK
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ## @SCTP_PCB_FLAGS_IN_TCPPOOL
L_.str.1:                               ## @.str.1
	.asciz	"stcb is %p\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_findassociation_addr      ; -- Begin function sctp_findassociation_addr
	.p2align	2
_sctp_findassociation_addr:             ; @sctp_findassociation_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x19, x6
	mov	x25, x5
	mov	x22, x4
	mov	x21, x3
	mov	x28, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w27, [x29, #16]
	ldr	x0, [x4, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_ntohl
	mov	x2, x0
	ldp	w6, w5, [x22]
	stp	w27, wzr, [sp]
	mov	x0, x28
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	mov	w7, #0
	bl	_sctp_findassoc_by_vtag
	mov	x26, x0
	cbnz	x0, LBB0_15
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x28
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	mov	w4, #1
	mov	x5, x27
	bl	_sctp_findassociation_addr_sa
	mov	x26, x0
	ldr	x8, [x19]
	str	x8, [sp, #8]
	b	LBB0_5
LBB0_4:
	add	x2, sp, #8
	mov	x0, x28
	mov	x1, x21
	mov	x3, x20
	mov	w4, #1
	mov	x5, x27
	bl	_sctp_findassociation_addr_sa
	mov	x26, x0
	ldr	x8, [sp, #8]
LBB0_5:
Lloh0:
	adrp	x27, _SCTP_DEBUG_PCB1@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SCTP_DEBUG_PCB1@GOTPAGEOFF]
	ldr	w0, [x27]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	bl	_SCTPDBG
	cbnz	x26, LBB0_14
; %bb.6:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
; %bb.7:
	ldr	x9, [x25]
Lloh4:
	adrp	x10, _SCTP_INITIATION@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SCTP_INITIATION@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
Lloh7:
	adrp	x11, _SCTP_INITIATION_ACK@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SCTP_INITIATION_ACK@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	mov	x26, #0
	cbz	x19, LBB0_15
; %bb.10:
	str	xzr, [x19]
	b	LBB0_15
LBB0_11:
	mov	x26, #0
	b	LBB0_14
LBB0_12:
	add	x3, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x4, x20
	mov	x5, x21
	bl	_sctp_findassociation_special_addr
	mov	x26, x0
	cbz	x19, LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_14:
	ldr	w0, [x27]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_SCTPDBG
LBB0_15:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_PCB1,4,2            ; @SCTP_DEBUG_PCB1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stcb:%p inp:%p\n"

	.comm	_SCTP_INITIATION,8,3            ; @SCTP_INITIATION
	.comm	_SCTP_INITIATION_ACK,8,3        ; @SCTP_INITIATION_ACK
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ; @SCTP_PCB_FLAGS_IN_TCPPOOL
l_.str.1:                               ; @.str.1
	.asciz	"stcb is %p\n"

.subsections_via_symbols
