	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_send_make_current       ## -- Begin function client_send_make_current
	.p2align	4, 0x90
_client_send_make_current:              ## @client_send_make_current
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_rpc_get_client_id
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	32(%rax), %edi
	callq	_convert_gltype
	movl	%eax, %r12d
	movq	8(%r13), %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
	xorl	%r12d, %r12d
LBB0_3:
	movq	(%r13), %rdx
	movq	16(%r13), %rax
	leaq	12(%rdx), %rdi
	testq	%rdx, %rdx
	movq	_EGL_SERVER_NO_SURFACE@GOTPCREL(%rip), %rcx
	cmoveq	%rcx, %rdi
	testq	%rax, %rax
	cmoveq	%rcx, %rax
	movq	32(%r13), %r9
	testq	%r9, %r9
	jne	LBB0_5
## %bb.4:
	movq	_EGL_SERVER_NO_VG_CONTEXT@GOTPCREL(%rip), %r9
LBB0_5:
	leaq	16(%rsi), %r8
	movq	24(%r13), %rbx
	testq	%rbx, %rbx
	cmovneq	%rbx, %rcx
	testq	%rsi, %rsi
	jne	LBB0_7
## %bb.6:
	movq	_EGL_SERVER_NO_GL_CONTEXT@GOTPCREL(%rip), %r8
LBB0_7:
	movl	(%r8), %ebx
	movl	(%rdi), %r15d
	movl	(%rax), %edi
	movl	(%r9), %r14d
	movl	(%rcx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	je	LBB0_9
## %bb.8:
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	cmpq	$0, 8(%rsi)
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rdi, %rcx
	cmpq	$0, (%rsi)
	movl	16(%rsi), %eax
	leaq	L_.str.4(%rip), %rbx
	movq	%rbx, %r8
	cmoveq	%rdi, %r8
	movl	24(%rsi), %esi
	movl	16(%rdx), %r9d
	movl	8(%rdx), %r10d
	movl	12(%rdx), %r11d
	cmpq	$0, (%rdx)
	cmoveq	%rdi, %rbx
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	pushq	%r11
	callq	_vcos_log_trace
	addq	$32, %rsp
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_vcos_log_trace
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_eglIntMakeCurrent_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_EGLINTMAKECURRENT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	callq	_RPC_UINT
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	callq	_RPC_UINT
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RPC_UINT
	movl	%eax, %ebx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_RPC_UINT
	movl	%eax, %r15d
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RPC_UINT
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_RPC_UINT
	movl	%eax, %r14d
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	%r14
	pushq	%r12
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_RPC_CALL8_MAKECURRENT
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EGL_SERVER_NO_GL_CONTEXT,4,2   ## @EGL_SERVER_NO_GL_CONTEXT
	.comm	_EGL_SERVER_NO_SURFACE,4,2      ## @EGL_SERVER_NO_SURFACE
	.comm	_EGL_SERVER_NO_VG_CONTEXT,4,2   ## @EGL_SERVER_NO_VG_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send null make current %x %x"

L_.str.1:                               ## @.str.1
	.asciz	"Send make current %d[%d %s%s] %d[%d %d%s]"

L_.str.2:                               ## @.str.2
	.asciz	" C"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	" D"

	.comm	_eglIntMakeCurrent_impl,4,2     ## @eglIntMakeCurrent_impl
	.comm	_EGLINTMAKECURRENT_ID,4,2       ## @EGLINTMAKECURRENT_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_client_send_make_current       ; -- Begin function client_send_make_current
	.p2align	2
_client_send_make_current:              ; @client_send_make_current
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_rpc_get_client_id
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x8, #32]
	bl	_convert_gltype
	mov	x22, x0
	ldr	x1, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x1, #0
	mov	w22, #0
LBB0_3:
	add	x8, x1, #16
Lloh0:
	adrp	x9, _EGL_SERVER_NO_GL_CONTEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EGL_SERVER_NO_GL_CONTEXT@GOTPAGEOFF]
	cmp	x1, #0
	csel	x8, x9, x8, eq
	ldr	x2, [x19]
	add	x9, x2, #12
Lloh2:
	adrp	x10, _EGL_SERVER_NO_SURFACE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _EGL_SERVER_NO_SURFACE@GOTPAGEOFF]
	cmp	x2, #0
	csel	x9, x10, x9, eq
	ldp	x11, x12, [x19, #16]
	cmp	x11, #0
	csel	x11, x10, x11, eq
	ldr	x13, [x19, #32]
Lloh4:
	adrp	x14, _EGL_SERVER_NO_VG_CONTEXT@GOTPAGE
Lloh5:
	ldr	x14, [x14, _EGL_SERVER_NO_VG_CONTEXT@GOTPAGEOFF]
	cmp	x13, #0
	csel	x13, x14, x13, eq
	ldr	w26, [x8]
	ldr	w25, [x9]
	ldr	w24, [x11]
	ldr	w23, [x13]
	cmp	x12, #0
	csel	x8, x10, x12, eq
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	cbz	x1, LBB0_6
; %bb.4:
	cbz	x2, LBB0_6
; %bb.5:
	ldr	w8, [x1, #24]
	ldr	w9, [x1, #16]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.3@PAGE
Lloh9:
	add	x11, x11, l_.str.3@PAGEOFF
	ldp	x13, x12, [x1]
	cmp	x12, #0
	csel	x10, x11, x10, eq
Lloh10:
	adrp	x12, l_.str.4@PAGE
Lloh11:
	add	x12, x12, l_.str.4@PAGEOFF
	cmp	x13, #0
	csel	x13, x11, x12, eq
	ldr	x14, [x2, #16]
	ldr	x15, [x2]
	cmp	x15, #0
	csel	x11, x11, x12, eq
	ldp	w15, w12, [x2, #8]
	stp	x15, x11, [sp, #32]
	stp	x14, x12, [sp, #16]
	stp	x10, x13, [sp]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x8
	mov	x2, x9
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_7:
	bl	_vcos_log_trace
Lloh16:
	adrp	x8, _eglIntMakeCurrent_impl@GOTPAGE
Lloh17:
	ldr	x8, [x8, _eglIntMakeCurrent_impl@GOTPAGEOFF]
Lloh18:
	ldr	w27, [x8]
Lloh19:
	adrp	x8, _EGLINTMAKECURRENT_ID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EGLINTMAKECURRENT_ID@GOTPAGEOFF]
Lloh21:
	ldr	w28, [x8]
	mov	x0, x20
	bl	_RPC_UINT
	mov	x20, x0
	bl	_RPC_UINT
	mov	x21, x0
	mov	x0, x22
	bl	_RPC_UINT
	mov	x22, x0
	mov	x0, x26
	bl	_RPC_UINT
	mov	x26, x0
	mov	x0, x25
	bl	_RPC_UINT
	mov	x25, x0
	mov	x0, x24
	bl	_RPC_UINT
	mov	x24, x0
	mov	x0, x23
	bl	_RPC_UINT
	mov	x23, x0
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	bl	_RPC_UINT
	stp	w23, w0, [sp, #4]
	str	w24, [sp]
	mov	x0, x27
	mov	x1, x19
	mov	x2, x28
	mov	x3, x20
	mov	x4, x21
	mov	x5, x22
	mov	x6, x26
	mov	x7, x25
	bl	_RPC_CALL8_MAKECURRENT
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EGL_SERVER_NO_GL_CONTEXT,4,2   ; @EGL_SERVER_NO_GL_CONTEXT
	.comm	_EGL_SERVER_NO_SURFACE,4,2      ; @EGL_SERVER_NO_SURFACE
	.comm	_EGL_SERVER_NO_VG_CONTEXT,4,2   ; @EGL_SERVER_NO_VG_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send null make current %x %x"

l_.str.1:                               ; @.str.1
	.asciz	"Send make current %d[%d %s%s] %d[%d %d%s]"

l_.str.2:                               ; @.str.2
	.asciz	" C"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	" D"

	.comm	_eglIntMakeCurrent_impl,4,2     ; @eglIntMakeCurrent_impl
	.comm	_EGLINTMAKECURRENT_ID,4,2       ; @EGLINTMAKECURRENT_ID
.subsections_via_symbols
