	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_source_address_selection  ## -- Begin function sctp_source_address_selection
	.p2align	4, 0x90
_sctp_source_address_selection:         ## @sctp_source_address_selection
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	cmpq	$0, 8(%rdx)
	jne	LBB0_3
## %bb.1:
	movl	4(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_SCTP_RTALLOC
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, %r15
	movl	(%rbx), %r13d
	movq	_SCTP_DEBUG_OUTPUT2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_SCTPDBG
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_SCTPDBG_ADDR
	xorl	%eax, %eax
	callq	_SCTP_IPI_ADDR_RLOCK
	movq	_SCTP_PCB_FLAGS_BOUNDALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_5
## %bb.4:
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	pushq	%r13
	pushq	%r15
	pushq	$0
	callq	_sctp_choose_boundall
	addq	$32, %rsp
	jmp	LBB0_9
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r13
	pushq	%r15
	callq	_sctp_choose_boundspecific_stcb
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r13
	callq	_sctp_choose_boundspecific_inp
LBB0_8:
	addq	$16, %rsp
LBB0_9:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_SCTP_IPI_ADDR_RUNLOCK
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_OUTPUT2,4,2         ## @SCTP_DEBUG_OUTPUT2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Select source addr for:"

	.comm	_SCTP_PCB_FLAGS_BOUNDALL,4,2    ## @SCTP_PCB_FLAGS_BOUNDALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_source_address_selection  ; -- Begin function sctp_source_address_selection
	.p2align	2
_sctp_source_address_selection:         ; @sctp_source_address_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x5
	mov	x19, x4
	mov	x25, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x8, [x2, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w2, [x22, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_SCTP_RTALLOC
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
LBB0_2:
	ldr	w24, [x21]
Lloh0:
	adrp	x26, _SCTP_DEBUG_OUTPUT2@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SCTP_DEBUG_OUTPUT2@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SCTPDBG
	ldr	w0, [x26]
	mov	x1, x21
	bl	_SCTPDBG_ADDR
	bl	_SCTP_IPI_ADDR_RLOCK
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _SCTP_PCB_FLAGS_BOUNDALL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_BOUNDALL@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	str	w24, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	mov	x3, x21
	mov	x4, x20
	mov	w5, #0
	mov	w6, #0
	mov	x7, x19
	bl	_sctp_choose_boundall
	b	LBB0_8
LBB0_4:
	mov	x0, x22
	cbz	x23, LBB0_7
; %bb.5:
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	mov	x7, x24
	bl	_sctp_choose_boundspecific_stcb
	b	LBB0_8
LBB0_6:
	mov	x19, #0
	b	LBB0_9
LBB0_7:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, x24
	bl	_sctp_choose_boundspecific_inp
LBB0_8:
	mov	x19, x0
	bl	_SCTP_IPI_ADDR_RUNLOCK
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_OUTPUT2,4,2         ; @SCTP_DEBUG_OUTPUT2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Select source addr for:"

	.comm	_SCTP_PCB_FLAGS_BOUNDALL,4,2    ; @SCTP_PCB_FLAGS_BOUNDALL
.subsections_via_symbols
