	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkScaleChange
_checkScaleChange:                      ## @checkScaleChange
	.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	__glfw@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_2
## %bb.3:
	movq	16(%r14), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$3, %rsi
	jae	LBB0_5
## %bb.4:
	movl	$1, %esi
	xorl	%edi, %edi
LBB0_13:
	testq	%r8, %r8
	je	LBB0_16
## %bb.14:
	leaq	(%rcx,%rdi,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	cmovlel	%eax, %esi
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_15
LBB0_16:
	cmpl	4(%r14), %esi
	jne	LBB0_18
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %esi
	cmpl	4(%r14), %esi
	je	LBB0_17
LBB0_18:
	movl	%esi, 4(%r14)
	movl	8(%r14), %edi
	callq	_wl_surface_set_buffer_scale
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_resizeWindow                   ## TAILCALL
LBB0_5:
	andl	$-4, %edx
	movl	$1, %ebx
	xorl	%edi, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rdi
	movl	%esi, %ebx
	cmpq	%rdi, %rdx
	je	LBB0_13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rsi
	movq	8(%rcx,%rdi,8), %rax
	movl	(%rsi), %esi
	cmpl	%esi, %ebx
	cmovgl	%ebx, %esi
	movl	(%rax), %ebx
	cmpl	%ebx, %esi
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rcx,%rdi,8), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %esi
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%rcx,%rdi,8), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %esi
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,4,2                      ## @_glfw
	.no_dead_strip	_checkScaleChange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkScaleChange
_checkScaleChange:                      ; @checkScaleChange
	.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
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x19, #16]
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x10, #0
	mov	w1, #1
	b	LBB0_8
LBB0_4:
	mov	w1, #1
	b	LBB0_10
LBB0_5:
	and	x10, x8, #0xfffffffc
	add	x12, x9, #16
	mov	w11, #1
	mov	x15, x10
	mov	w16, #1
	mov	w14, #1
	mov	w13, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x17, x0, [x12, #-16]
	ldp	x1, x2, [x12], #32
	ldr	w17, [x17]
	ldr	w0, [x0]
	ldr	w1, [x1]
	cmp	w11, w17
	csel	w11, w11, w17, gt
	cmp	w16, w0
	csel	w16, w16, w0, gt
	cmp	w14, w1
	csel	w14, w14, w1, gt
	ldr	w17, [x2]
	cmp	w13, w17
	csel	w13, w13, w17, gt
	subs	x15, x15, #4
	b.ne	LBB0_6
; %bb.7:
	cmp	w11, w16
	csel	w11, w11, w16, gt
	cmp	w11, w14
	csel	w11, w11, w14, gt
	cmp	w11, w13
	csel	w1, w11, w13, gt
	cmp	x10, x8
	b.eq	LBB0_10
LBB0_8:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	w10, [x10]
	cmp	w1, w10
	csel	w1, w1, w10, gt
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w1, w8
	b.ne	LBB0_12
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
	str	w1, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_wl_surface_set_buffer_scale
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_resizeWindow
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,4,2                      ; @_glfw
	.no_dead_strip	_checkScaleChange
.subsections_via_symbols
