	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_bindx_add_address         ## -- Begin function sctp_bindx_add_address
	.p2align	4, 0x90
_sctp_bindx_add_address:                ## @sctp_bindx_add_address
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movl	(%rsi), %eax
	movq	_SCTP_PCB_FLAGS_BOUNDALL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
LBB0_1:
	movq	_SCTP_FROM_SCTPUTIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%rbx), %eax
LBB0_12:
	movl	%eax, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SCTP_PCB_FLAGS_UNBOUND@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.4:
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_sctp_inpcb_bind
	jmp	LBB0_12
LBB0_5:
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.6:
	movl	%r8d, %r12d
	movq	(%r15), %rax
	movq	8(%r13), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	%rcx, %rax
	jne	LBB0_1
	jmp	LBB0_9
LBB0_7:
	movq	%rcx, %rax
LBB0_9:
	movq	%rax, (%r15)
	movq	%r15, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_sctp_pcb_findep
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SCTP_INP_DECR_REF
	cmpq	%r13, %rbx
	je	LBB0_13
## %bb.11:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_12
LBB0_14:
	movq	$0, (%r15)
	movq	_SCTP_ADD_IP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	callq	_sctp_addr_mgmt_ep_sa
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_PCB_FLAGS_BOUNDALL,4,2    ## @SCTP_PCB_FLAGS_BOUNDALL
	.comm	_SCTP_FROM_SCTPUTIL,4,2         ## @SCTP_FROM_SCTPUTIL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCTP_PCB_FLAGS_UNBOUND,4,2     ## @SCTP_PCB_FLAGS_UNBOUND
	.comm	_SCTP_ADD_IP_ADDRESS,4,2        ## @SCTP_ADD_IP_ADDRESS
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
	.comm	_SCTP_PCB_FLAGS_BOUND_V6,4,2    ## @SCTP_PCB_FLAGS_BOUND_V6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_bindx_add_address         ; -- Begin function sctp_bindx_add_address
	.p2align	2
_sctp_bindx_add_address:                ; @sctp_bindx_add_address
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _SCTP_PCB_FLAGS_BOUNDALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_BOUNDALL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _SCTP_FROM_SCTPUTIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_FROM_SCTPUTIL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x21, _EINVAL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x21]
LBB0_2:
	str	w0, [x19]
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x21, x2
Lloh8:
	adrp	x9, _SCTP_PCB_FLAGS_UNBOUND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_UNBOUND@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	cbz	x6, LBB0_1
; %bb.6:
	mov	x1, x21
	mov	x2, #0
	mov	x3, x6
	bl	_sctp_inpcb_bind
	b	LBB0_2
LBB0_7:
	cbnz	x3, LBB0_3
; %bb.8:
	mov	x22, x4
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
	cmp	x8, x9
	b.ne	LBB0_1
	b	LBB0_11
LBB0_10:
	mov	x8, x9
LBB0_11:
	str	x8, [x21]
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	mov	x3, x22
	bl	_sctp_pcb_findep
	cbz	x0, LBB0_14
; %bb.12:
	mov	x23, x0
	bl	_SCTP_INP_DECR_REF
	cmp	x23, x20
	b.eq	LBB0_3
; %bb.13:
Lloh11:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_2
LBB0_14:
	str	xzr, [x21]
Lloh14:
	adrp	x8, _SCTP_ADD_IP_ADDRESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCTP_ADD_IP_ADDRESS@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, #0
	bl	_sctp_addr_mgmt_ep_sa
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_PCB_FLAGS_BOUNDALL,4,2    ; @SCTP_PCB_FLAGS_BOUNDALL
	.comm	_SCTP_FROM_SCTPUTIL,4,2         ; @SCTP_FROM_SCTPUTIL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCTP_PCB_FLAGS_UNBOUND,4,2     ; @SCTP_PCB_FLAGS_UNBOUND
	.comm	_SCTP_ADD_IP_ADDRESS,4,2        ; @SCTP_ADD_IP_ADDRESS
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
	.comm	_SCTP_PCB_FLAGS_BOUND_V6,4,2    ; @SCTP_PCB_FLAGS_BOUND_V6
.subsections_via_symbols
