	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function surfaceHandleLeave
_surfaceHandleLeave:                    ## @surfaceHandleLeave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_wl_output_get_user_data
	movl	(%r14), %ecx
	leal	-1(%rcx), %r9d
	cmpl	$2, %ecx
	jl	LBB0_18
## %bb.1:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%r9d, %r8d
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
LBB0_13:
	testb	$1, %r8b
	je	LBB0_18
## %bb.14:
	movq	8(%r14), %rcx
	cmpq	(%rcx,%rsi,8), %rax
	jne	LBB0_16
## %bb.15:
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_16:
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movq	8(%rcx,%rsi,8), %rax
	movq	%rax, (%rcx,%rsi,8)
LBB0_18:
	movq	8(%r14), %rax
	movl	%r9d, (%r14)
	movslq	%r9d, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_checkScaleChange               ## TAILCALL
LBB0_3:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ecx, %ecx
	movq	_GLFW_TRUE@GOTPCREL(%rip), %r10
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rcx
	cmpq	%rsi, %r11
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	cmpq	(%rsi,%rcx,8), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r10), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rsi,%rcx,8), %rdi
	movq	%rdi, (%rsi,%rcx,8)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rdi
	cmpq	8(%rdi,%rcx,8), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r10), %rdx
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	2(%rcx), %rsi
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rdi,%rcx,8), %rbx
	movq	%rbx, 8(%rdi,%rcx,8)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_FALSE,8,3                 ## @GLFW_FALSE
	.comm	_GLFW_TRUE,8,3                  ## @GLFW_TRUE
	.no_dead_strip	_surfaceHandleLeave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function surfaceHandleLeave
_surfaceHandleLeave:                    ; @surfaceHandleLeave
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x2
	bl	_wl_output_get_user_data
	ldr	w9, [x19]
	sub	w8, w9, #1
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
Lloh0:
	adrp	x10, _GLFW_FALSE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GLFW_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	lsl	x11, x8, #3
Lloh3:
	adrp	x12, _GLFW_TRUE@GOTPAGE
Lloh4:
	ldr	x12, [x12, _GLFW_TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	cmp	x11, x9
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x19, #8]
	ldr	x14, [x13, x9]
	ldr	x15, [x12]
	cmp	x0, x14
	csel	x10, x15, x10, eq
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, x9
	ldr	x14, [x13, #8]
	str	x14, [x13]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x19, #8]
	str	w8, [x19]
	str	xzr, [x9, w8, sxtw #3]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_checkScaleChange
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_FALSE,8,3                 ; @GLFW_FALSE
	.comm	_GLFW_TRUE,8,3                  ; @GLFW_TRUE
	.no_dead_strip	_surfaceHandleLeave
.subsections_via_symbols
