	.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	%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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpl	$0, 12(%rdi)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 20(%r14)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_down_write
	leaq	16(%r14), %rdi
	callq	_refcount_inc_not_zero
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	8(%rbx), %rdi
	callq	_refcount_inc
	leaq	4(%rbx), %r15
	movl	(%r14), %esi
	movq	_CLIENT_DATA_REGISTERED@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_xa_get_mark
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_xa_store
	movl	%eax, %edi
	callq	_xa_err
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	movq	%rbx, %rdi
	callq	_ib_device_put
	movq	%r14, %rdi
	callq	_ib_client_put
	jmp	LBB0_11
LBB0_4:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%rbx, %rdi
	callq	_up_write
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_7:
	movq	%rbx, %rdi
	callq	_downgrade_write
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_9:
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_xa_set_mark
	movq	%rbx, %rdi
	callq	_up_read
	xorl	%r12d, %r12d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CLIENT_DATA_REGISTERED,4,2     ## @CLIENT_DATA_REGISTERED
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.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	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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_down_write
	add	x0, x20, #16
	bl	_refcount_inc_not_zero
	cbz	w0, LBB0_5
; %bb.3:
	add	x0, x19, #8
	bl	_refcount_inc
	add	x21, x19, #4
	ldr	w1, [x20]
Lloh0:
	adrp	x23, _CLIENT_DATA_REGISTERED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CLIENT_DATA_REGISTERED@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_xa_get_mark
	cbz	x0, LBB0_6
; %bb.4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_8
LBB0_6:
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, #0
	bl	_xa_store
	bl	_xa_err
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_ib_device_put
	mov	x0, x20
	bl	_ib_client_put
LBB0_8:
	mov	x0, x19
	bl	_up_write
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_downgrade_write
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	blr	x8
LBB0_11:
	ldr	w1, [x20]
	ldr	w2, [x23]
	mov	x0, x21
	bl	_xa_set_mark
	mov	x0, x19
	bl	_up_read
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x22
	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	_CLIENT_DATA_REGISTERED,4,2     ; @CLIENT_DATA_REGISTERED
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_add_client_context
.subsections_via_symbols
