	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icc_link_destroy               ## -- Begin function icc_link_destroy
	.p2align	4, 0x90
_icc_link_destroy:                      ## @icc_link_destroy
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_icc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	8(%r14), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rcx,%rbx,8)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_9:
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_11:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	leaq	-1(%rax), %rsi
	movq	%rsi, (%r14)
	movq	-8(%rcx,%rax,8), %rax
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r14), %rdi
	shll	$3, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_krealloc
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, 8(%r14)
LBB0_13:
	movq	_icc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_icc_lock,4,2                   ## @icc_lock
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_icc_link_destroy               ; -- Begin function icc_link_destroy
	.p2align	2
_icc_link_destroy:                      ; @icc_link_destroy
	.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	x20, x1
	mov	x19, x0
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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
LBB0_4:
Lloh3:
	adrp	x0, _icc_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _icc_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x21, #0
	ldr	x9, [x19, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x21, lsl #3]
	cmp	x10, x20
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.8:
	mov	x21, x8
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	cmp	x21, x8
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_12
; %bb.11:
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_12:
	ldp	x9, x8, [x19]
	sub	x9, x9, #1
	ldr	x10, [x8, x9, lsl #3]
	str	x10, [x8, x21, lsl #3]
	str	x9, [x19]
	ldr	x0, [x19, #8]
	lsl	w1, w9, #3
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_krealloc
	mov	w20, #0
	cbz	x0, LBB0_14
; %bb.13:
	str	x0, [x19, #8]
LBB0_14:
Lloh11:
	adrp	x0, _icc_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _icc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	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	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
