	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icc_link_create                ## -- Begin function icc_link_create
	.p2align	4, 0x90
_icc_link_create:                       ## @icc_link_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_icc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	%r15d, %edi
	callq	_node_find
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	8(%rbx), %rdi
	movl	(%rbx), %eax
	leal	8(,%rax,8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, 8(%rbx)
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movq	%r14, (%rax,%rcx,8)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%r15d, %edi
	callq	_icc_node_create_nolock
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	_icc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_icc_lock,4,2                   ## @icc_lock
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icc_link_create                ; -- Begin function icc_link_create
	.p2align	2
_icc_link_create:                       ; @icc_link_create
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _icc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _icc_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x21
	bl	_node_find
	mov	x20, x0
	cbz	x0, LBB0_5
LBB0_2:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	lsl	w8, w8, #3
	add	w1, w8, #8
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	w21, #0
	str	x0, [x19, #8]
	ldrsw	x8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	str	x20, [x0, x8, lsl #3]
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_5:
	mov	x0, x21
	bl	_icc_node_create_nolock
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.6:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
Lloh11:
	adrp	x0, _icc_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _icc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_icc_lock,4,2                   ; @icc_lock
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
