	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ssnmap_new                ## -- Begin function sctp_ssnmap_new
	.p2align	4, 0x90
_sctp_ssnmap_new:                       ## @sctp_ssnmap_new
	.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	%edx, %ebx
	movl	%esi, %r15d
	movl	%edi, %r12d
	callq	_sctp_ssnmap_size
	movl	%eax, %r14d
	movq	_MAX_KMALLOC_SIZE@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jle	LBB0_1
## %bb.2:
	movl	%r14d, %edi
	callq	_get_order
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___get_free_pages
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_kmalloc
LBB0_3:
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_sctp_ssnmap_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	$1, (%rbx)
	movq	_ssnmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_DBG_OBJCNT_INC
	jmp	LBB0_10
LBB0_6:
	cmpl	(%r13), %r14d
	jle	LBB0_7
## %bb.8:
	movl	%r14d, %edi
	callq	_get_order
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_free_pages
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KMALLOC_SIZE,4,2           ## @MAX_KMALLOC_SIZE
	.comm	_ssnmap,4,2                     ## @ssnmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ssnmap_new                ; -- Begin function sctp_ssnmap_new
	.p2align	2
_sctp_ssnmap_new:                       ; @sctp_ssnmap_new
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_sctp_ssnmap_size
	mov	x20, x0
Lloh0:
	adrp	x23, _MAX_KMALLOC_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_KMALLOC_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_get_order
	mov	x1, x0
	mov	x0, x19
	bl	___get_free_pages
	mov	x19, x0
	cbnz	x0, LBB0_3
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_9
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_sctp_ssnmap_init
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _ssnmap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ssnmap@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_SCTP_DBG_OBJCNT_INC
	b	LBB0_9
LBB0_5:
	ldr	w8, [x23]
	cmp	w20, w8
	b.le	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_get_order
	mov	x1, x0
	mov	x0, x19
	bl	_free_pages
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KMALLOC_SIZE,4,2           ; @MAX_KMALLOC_SIZE
	.comm	_ssnmap,4,2                     ; @ssnmap
.subsections_via_symbols
