	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_bindx                     ## -- Begin function sctp_bindx
	.p2align	4, 0x90
_sctp_bindx:                            ## @sctp_bindx
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_SCTP_BINDX_ADD_ADDR@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_SCTP_BINDX_REM_ADDR@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_15
## %bb.5:
	xorl	%r12d, %r12d
	movl	%r14d, %eax
	movq	%rbx, %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edx, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	shlq	$32, %rcx
	addq	%rdx, %rcx
	sarq	$32, %rcx
	decl	%eax
	je	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	cmpl	$128, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$129, %edx
	jne	LBB0_29
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$8, 4(%rcx)
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r12, %r12
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%rdx, %r12
	je	LBB0_7
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, %r12
	jmp	LBB0_7
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_17:
	movl	$-1, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	$20, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.20:
	movq	%rax, %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.21:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	$20, %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	$0, 8(%r13)
	movq	(%r13), %rdi
	movl	4(%rbx), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	testl	%r14d, %r14d
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	testq	%r12, %r12
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r13), %rax
	movl	(%rax), %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%r12, (%rax)
LBB0_26:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_IPPROTO_SCTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	$20, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movslq	4(%rbx), %rax
	movslq	%ebx, %rbx
	addq	%rax, %rbx
	incl	%r14d
	cmpl	%r14d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_22
LBB0_28:
	movq	%r13, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_29:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_30:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_31:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_BINDX_ADD_ADDR,4,2        ## @SCTP_BINDX_ADD_ADDR
	.comm	_SCTP_BINDX_REM_ADDR,4,2        ## @SCTP_BINDX_REM_ADDR
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IPPROTO_SCTP,4,2               ## @IPPROTO_SCTP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_bindx                     ; -- Begin function sctp_bindx
	.p2align	2
_sctp_bindx:                            ; @sctp_bindx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _SCTP_BINDX_ADD_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_BINDX_ADD_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCTP_BINDX_REM_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCTP_BINDX_REM_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w3
	ccmp	w9, w3, #4, ne
	b.ne	LBB0_13
; %bb.1:
	mov	x21, x1
	cbz	x1, LBB0_12
; %bb.2:
	mov	x20, x2
	cmp	w2, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x19, x3
	mov	x22, x0
	mov	x24, #0
	mov	x8, x20
	mov	x9, x21
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x10
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x10, x9, lsl #32
	asr	x9, x9, #32
	subs	w8, w8, #1
	b.eq	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cmp	w10, #128
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w10, #129
	b.ne	LBB0_27
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w10, [x9, #4]
	cmp	w10, #8
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x24, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x24, x10
	b.eq	LBB0_5
LBB0_12:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #20
	bl	_malloc
	cbz	x0, LBB0_28
; %bb.18:
	mov	x23, x0
	cmp	w20, #1
	b.lt	LBB0_26
; %bb.19:
	mov	w25, #0
Lloh13:
	adrp	x26, _IPPROTO_SCTP@GOTPAGE
Lloh14:
	ldr	x26, [x26, _IPPROTO_SCTP@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	str	xzr, [x23, #8]
	ldr	x0, [x23]
	ldr	w2, [x21, #4]
	mov	x1, x21
	bl	_memcpy
	cbnz	w25, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	cbz	x24, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x23]
	ldr	w9, [x8]
	and	w9, w9, #0xfffffffe
	cmp	w9, #128
	b.ne	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x24, [x8]
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w1, [x26]
	mov	x0, x22
	mov	x2, x19
	mov	x3, x23
	mov	w4, #20
	bl	_setsockopt
	cbnz	x0, LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	ldrsw	x8, [x21, #4]
	add	x21, x8, w21, sxtw
	add	w25, w25, #1
	cmp	w20, w25
	b.ne	LBB0_20
LBB0_26:
	mov	x0, x23
	bl	_free
	mov	w0, #0
	b	LBB0_16
LBB0_27:
Lloh15:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_14
LBB0_28:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_29:
	mov	x0, x23
	bl	_free
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_BINDX_ADD_ADDR,4,2        ; @SCTP_BINDX_ADD_ADDR
	.comm	_SCTP_BINDX_REM_ADDR,4,2        ; @SCTP_BINDX_REM_ADDR
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IPPROTO_SCTP,4,2               ; @IPPROTO_SCTP
.subsections_via_symbols
