	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_bindx_rem
_sctp_bindx_rem:                        ## @sctp_bindx_rem
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_sctp_sk
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_SCTP_DEBUG_PRINTK
	testl	%r12d, %r12d
	jle	LBB0_19
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	$4, %r14
	xorl	%r13d, %r13d
	movq	_EBUSY@GOTPCREL(%rip), %rbx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	subl	(%rbx), %r15d
	testl	%r15d, %r15d
	js	LBB0_17
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%r13d, %r12d
	je	LBB0_20
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_sctp_list_single_entry
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	callq	_sctp_get_af_specific
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rbx)
	jne	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, (%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sctp_del_bind_addr
	movl	%eax, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	%rax, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	subl	(%rax), %r15d
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_EBUSY@GOTPCREL(%rip), %rbx
	testl	%r15d, %r15d
	jns	LBB0_5
LBB0_17:
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_sctp_bindx_add
	jmp	LBB0_20
LBB0_19:
	xorl	%r15d, %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sctp_bindx_rem (sk: %p, addrs: %p, addrcnt: %d)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.no_dead_strip	_sctp_bindx_rem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_bindx_rem
_sctp_bindx_rem:                        ; @sctp_bindx_rem
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_sctp_sk
	mov	x22, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_SCTP_DEBUG_PRINTK
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.1:
	mov	w24, #0
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	add	x25, x23, #4
Lloh2:
	adrp	x23, _EBUSY@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EBUSY@GOTPAGEOFF]
	mov	x26, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_list_empty
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_sctp_list_single_entry
	cbz	x0, LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	neg	w27, w8
	tbnz	w27, #31, LBB0_18
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cmp	w21, w24
	b.ne	LBB0_2
	b	LBB0_20
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	bl	_sctp_get_af_specific
	cbz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x28, x0
	ldr	x8, [x0, #8]
	mov	x0, x26
	mov	x1, x22
	mov	x2, #0
	blr	x8
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x27, [x26]
	cbz	x27, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_htons
	cmp	x27, x0
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	cbnz	x8, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x26]
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x26
	bl	_sctp_del_bind_addr
	mov	x27, x0
	ldrsw	x8, [x28]
	add	x26, x26, x8
	tbz	w27, #31, LBB0_6
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x8]
	b	LBB0_5
LBB0_17:
	mov	w27, #0
	b	LBB0_20
LBB0_18:
	cbz	w24, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	bl	_sctp_bindx_add
LBB0_20:
	mov	x0, x27
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sctp_bindx_rem (sk: %p, addrs: %p, addrcnt: %d)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.no_dead_strip	_sctp_bindx_rem
.subsections_via_symbols
