	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assign_client_id
_assign_client_id:                      ## @assign_client_id
	.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	%rdi, %rbx
	movq	_clients_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	_highest_client_id@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%esi, (%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_clients@GOTPCREL(%rip), %rdi
	movq	%rbx, %rdx
	callq	_xa_insert
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	incl	(%r15)
	movl	(%rbx), %esi
	movq	_CLIENT_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_clients@GOTPCREL(%rip), %rdi
	callq	_xa_set_mark
LBB0_2:
	movq	_clients_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_write
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clients_rwsem,4,2              ## @clients_rwsem
	.comm	_highest_client_id,4,2          ## @highest_client_id
	.comm	_clients,4,2                    ## @clients
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_CLIENT_REGISTERED,4,2          ## @CLIENT_REGISTERED
	.no_dead_strip	_assign_client_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assign_client_id
_assign_client_id:                      ; @assign_client_id
	.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	x0, _clients_rwsem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _clients_rwsem@GOTPAGEOFF]
	bl	_down_write
Lloh2:
	adrp	x21, _highest_client_id@GOTPAGE
Lloh3:
	ldr	x21, [x21, _highest_client_id@GOTPAGEOFF]
	ldr	w1, [x21]
	str	w1, [x19]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
Lloh7:
	adrp	x0, _clients@GOTPAGE
Lloh8:
	ldr	x0, [x0, _clients@GOTPAGEOFF]
	mov	x2, x19
	bl	_xa_insert
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _CLIENT_REGISTERED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CLIENT_REGISTERED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, _clients@GOTPAGE
Lloh13:
	ldr	x0, [x0, _clients@GOTPAGEOFF]
	bl	_xa_set_mark
LBB0_2:
Lloh14:
	adrp	x0, _clients_rwsem@GOTPAGE
Lloh15:
	ldr	x0, [x0, _clients_rwsem@GOTPAGEOFF]
	bl	_up_write
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_clients_rwsem,4,2              ; @clients_rwsem
	.comm	_highest_client_id,4,2          ; @highest_client_id
	.comm	_clients,4,2                    ; @clients
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CLIENT_REGISTERED,4,2          ; @CLIENT_REGISTERED
	.no_dead_strip	_assign_client_id
.subsections_via_symbols
