	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_cc_state
_apply_cc_state:                        ## @apply_cc_state
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_get_cc_state_protected
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movl	16(%rax), %edi
	movl	%edi, 16(%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	movl	(%r14), %edx
	xorl	%eax, %eax
	movl	%edx, %ecx
	subl	$1, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, 12(%rbx)
	movl	20(%r14), %esi
	shll	$2, %edx
	callq	_memcpy
	movq	_IB_CC_CCS_PC_SL_BASED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	movl	12(%r14), %esi
	movq	_OPA_MAX_SLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	callq	_memcpy
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_rcu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree_rcu                      ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_CC_CCS_PC_SL_BASED,4,2      ## @IB_CC_CCS_PC_SL_BASED
	.comm	_OPA_MAX_SLS,4,2                ## @OPA_MAX_SLS
	.comm	_rcu,4,2                        ## @rcu
	.no_dead_strip	_apply_cc_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_cc_state
_apply_cc_state:                        ; @apply_cc_state
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #20
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x19
	bl	_get_cc_state_protected
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	ldr	q0, [x0]
	ldr	w0, [x0, #16]
	str	w0, [x20, #16]
	str	q0, [x20]
	ldr	w8, [x19]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w9, wzr, w9, eq
	str	w9, [x20, #12]
	ldr	w1, [x19, #20]
	lsl	w2, w8, #2
	bl	_memcpy
Lloh3:
	adrp	x8, _IB_CC_CCS_PC_SL_BASED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_CC_CCS_PC_SL_BASED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w1, w9, [x19, #12]
	stp	w9, w8, [x20, #4]
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _OPA_MAX_SLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPA_MAX_SLS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x0, x21
	bl	_spin_unlock
Lloh9:
	adrp	x8, _rcu@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rcu@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	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
	b	_kfree_rcu
LBB0_3:
	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:
	mov	x0, x21
	bl	_spin_unlock
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_CC_CCS_PC_SL_BASED,4,2      ; @IB_CC_CCS_PC_SL_BASED
	.comm	_OPA_MAX_SLS,4,2                ; @OPA_MAX_SLS
	.comm	_rcu,4,2                        ; @rcu
	.no_dead_strip	_apply_cc_state
.subsections_via_symbols
