	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_client_context
_add_client_context:                    ## @add_client_context
	.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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	$0, 8(%rax)
	movl	$0, (%rax)
	movq	_lists_rwsem@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_down_write
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$4, %rbx
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_up_write
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movl	8(%r14), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate client context for %s/%s\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lists_rwsem,4,2                ## @lists_rwsem
	.no_dead_strip	_add_client_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_client_context
_add_client_context:                    ; @add_client_context
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	stp	xzr, x21, [x0, #8]
	str	wzr, [x0]
Lloh3:
	adrp	x21, _lists_rwsem@GOTPAGE
Lloh4:
	ldr	x21, [x21, _lists_rwsem@GOTPAGEOFF]
	mov	x0, x21
	bl	_down_write
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x0, x20, #4
	add	x1, x19, #4
	bl	_list_add
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_up_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #8]
	ldr	w2, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate client context for %s/%s\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lists_rwsem,4,2                ; @lists_rwsem
	.no_dead_strip	_add_client_context
.subsections_via_symbols
