	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function client_switch_proxy
_client_switch_proxy:                   ## @client_switch_proxy
	.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	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%rdi), %rdi
	cmpl	%esi, (%rdi)
	je	LBB0_10
## %bb.1:
	movl	%esi, (%rdi)
	movq	8(%rdi), %rax
	movq	32(%rdi), %rcx
	movl	%esi, %edx
	movq	(%rcx,%rdx,8), %r15
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rsi
	movq	%r15, %rdx
	callq	*%rax
	movl	%eax, %r12d
	movq	%r15, (%r14)
	jmp	LBB0_8
LBB0_3:
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rsi
	callq	*%rcx
	movl	%eax, %r12d
	movq	8(%r14), %rdi
	jmp	LBB0_6
LBB0_4:
	movl	%ebx, %r12d
LBB0_6:
	movq	%r15, (%r14)
	movq	24(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%r15, %rsi
	callq	*%rcx
LBB0_8:
	movl	%eax, %ebx
LBB0_9:
	cmpl	%ebx, %r12d
	cmovll	%r12d, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_client_switch_proxy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function client_switch_proxy
_client_switch_proxy:                   ; @client_switch_proxy
	.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, x0
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x0, #8]
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	b	LBB0_11
LBB0_2:
	str	w1, [x0]
	ldr	x8, [x0, #32]
	ldr	x21, [x8, w1, uxtw #3]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x1, [x20]
	mov	x2, x21
	blr	x8
	mov	x22, x0
	str	x21, [x20]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x1, [x20]
	blr	x8
	mov	x22, x0
	ldr	x0, [x20, #8]
	b	LBB0_7
LBB0_6:
	mov	x22, x19
LBB0_7:
	str	x21, [x20]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x1, x21
	blr	x8
LBB0_9:
	mov	x19, x0
LBB0_10:
	cmp	w22, w19
	csel	w0, w22, w19, lt
LBB0_11:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_client_switch_proxy
.subsections_via_symbols
