	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_compare_key
_sctp_compare_key:                      ## @sctp_compare_key
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_sctp_get_keylen
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_sctp_get_keylen
	xorl	%edx, %edx
	movq	%r12, %rcx
	orq	%rax, %rcx
	sete	%dl
	decl	%edx
	movl	$1, %ecx
	testq	%r12, %r12
	cmovel	%edx, %ecx
	je	LBB0_16
## %bb.1:
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	cmpq	%rax, %r12
	movq	%rax, %rcx
	cmovgq	%r12, %rcx
	testq	%rcx, %rcx
	jle	LBB0_15
## %bb.3:
	movq	(%r15), %r10
	movq	(%r14), %rsi
	movq	%rcx, %r8
	subq	%r12, %r8
	movq	%rcx, %r9
	subq	%rax, %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, %rdi
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%ebx, %ebx
	cmpq	%r9, %rdi
	jl	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10), %rdx
	addq	$8, %r10
	cmpq	%rdx, %rbx
	jle	LBB0_13
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rsi), %rbx
	addq	$8, %rsi
	cmpq	%r9, %rdi
	jge	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	cmpq	%rdx, %rbx
	jg	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	jl	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdi
	cmpq	%rdi, %rcx
	jne	LBB0_5
LBB0_15:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	cmpq	%rax, %r12
	setge	%cl
	leal	-1(%rcx,%rcx), %ecx
	cmovel	%edx, %ecx
	jmp	LBB0_16
LBB0_12:
	movl	$1, %ecx
	jmp	LBB0_16
LBB0_14:
	movl	$-1, %ecx
LBB0_16:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sctp_compare_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_compare_key
_sctp_compare_key:                      ; @sctp_compare_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_sctp_get_keylen
	mov	x19, x0
	mov	x0, x21
	bl	_sctp_get_keylen
	orr	x8, x19, x0
	cmp	x8, #0
	mov	w8, #-1
	cinc	w8, w8, eq
	cmp	x19, #0
	csinc	w8, w8, wzr, eq
	cbz	x19, LBB0_14
; %bb.1:
	cbz	x0, LBB0_14
; %bb.2:
	cmp	x19, x0
	csel	x8, x19, x0, gt
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x9, #0
	ldr	x10, [x21]
	ldr	x11, [x20]
	sub	x12, x8, x19
	sub	x13, x8, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x12
	b.ge	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x14, #0
	cmp	x9, x13
	b.lt	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x10], #8
	cmp	x14, x15
	b.le	LBB0_9
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x14, [x11], #8
	cmp	x9, x13
	b.ge	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x15, #0
	cmp	x14, x15
	b.gt	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_11:
	cmp	x19, x0
	mov	w8, #-1
	cneg	w8, w8, ge
	csel	w8, wzr, w8, eq
	b	LBB0_14
LBB0_12:
	mov	w8, #1
	b	LBB0_14
LBB0_13:
	mov	w8, #-1
LBB0_14:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sctp_compare_key
.subsections_via_symbols
