	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xcbgrab_reposition
_xcbgrab_reposition:                    ## @xcbgrab_reposition
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.2:
	movq	%rsi, %rax
	movq	(%rdi), %rbx
	movslq	8(%rbx), %r13
	movslq	12(%rbx), %r12
	movl	16(%rbx), %ecx
	movl	(%rsi), %esi
	movl	4(%rax), %r14d
	movq	_FOLLOW_CENTER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	subl	%eax, %esi
	movl	%r12d, %eax
	shrl	$31, %eax
	addl	%r12d, %eax
	sarl	%eax
	subl	%eax, %r14d
	jmp	LBB0_10
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movl	(%rbx), %edx
	movl	4(%rbx), %r8d
	leal	(%rdx,%r13), %eax
	subl	%ecx, %eax
	leal	(%r12,%r8), %edi
	subl	%ecx, %edi
	cmpl	%eax, %esi
	jle	LBB0_6
## %bb.5:
	subl	%eax, %edx
	addl	%esi, %edx
	movl	%edx, %esi
	cmpl	%edi, %r14d
	jg	LBB0_8
LBB0_9:
	movl	%r14d, %eax
	subl	%ecx, %eax
	addl	%r8d, %ecx
	cmpl	%ecx, %r14d
	cmovgel	%r8d, %eax
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_6:
	leal	(%rcx,%rdx), %r9d
	movl	%esi, %eax
	subl	%ecx, %eax
	cmpl	%r9d, %esi
	cmovgel	%edx, %eax
	movl	%eax, %esi
	cmpl	%edi, %r14d
	jle	LBB0_9
LBB0_8:
	subl	%edi, %r8d
	addl	%r14d, %r8d
	movl	%r8d, %r14d
LBB0_10:
	xorl	%edi, %edi
	callq	_FFMAX
	movq	8(%r15), %rsi
	subq	%r13, %rsi
	movl	%eax, %edi
	callq	_FFMIN
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_FFMAX
	movq	(%r15), %rsi
	subq	%r12, %rsi
	movl	%eax, %edi
	callq	_FFMIN
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FOLLOW_CENTER,4,2              ## @FOLLOW_CENTER
	.no_dead_strip	_xcbgrab_reposition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xcbgrab_reposition
_xcbgrab_reposition:                    ; @xcbgrab_reposition
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x2
	cbz	x2, LBB0_3
; %bb.2:
	ldr	x21, [x0]
	ldp	w8, w9, [x21]
	ldpsw	x23, x22, [x21, #8]
	ldr	w10, [x21, #16]
	ldp	w11, w12, [x1]
Lloh0:
	adrp	x13, _FOLLOW_CENTER@GOTPAGE
Lloh1:
	ldr	x13, [x13, _FOLLOW_CENTER@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x13]
	add	w14, w23, w8
	sub	w14, w14, w10
	add	w15, w22, w9
	sub	w15, w15, w10
	sub	w16, w11, w10
	add	w17, w10, w8
	cmp	w11, w17
	csel	w16, w16, w8, lt
	sub	w8, w8, w14
	add	w8, w8, w11
	cmp	w11, w14
	csel	w8, w16, w8, le
	sub	w14, w12, w10
	add	w16, w10, w9
	cmp	w12, w16
	csel	w14, w14, w9, lt
	sub	w9, w9, w15
	add	w9, w9, w12
	cmp	w12, w15
	csel	w9, w14, w9, le
	cmp	w23, #0
	cinc	w14, w23, lt
	sub	w11, w11, w14, asr #1
	cmp	w22, #0
	cinc	w14, w22, lt
	sub	w12, w12, w14, asr #1
	cmp	w10, w13
	csel	w20, w9, w12, ne
	csel	w1, w8, w11, ne
	mov	w0, #0
	bl	_FFMAX
	ldr	x8, [x19, #8]
	sub	x1, x8, x23
	bl	_FFMIN
	str	w0, [x21]
	mov	w0, #0
	mov	x1, x20
	bl	_FFMAX
	ldr	x8, [x19]
	sub	x1, x8, x22
	bl	_FFMIN
	str	w0, [x21, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FOLLOW_CENTER,4,2              ; @FOLLOW_CENTER
	.no_dead_strip	_xcbgrab_reposition
.subsections_via_symbols
