	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selection_widget_down
_selection_widget_down:                 ## @selection_widget_down
	.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	_I@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movl	%edi, %r15d
	movq	(%rbx), %rax
	movq	_R_SELWIDGET_DIR_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movl	8(%rbx), %edi
	subl	%r15d, %edi
	xorl	%esi, %esi
	callq	_R_MAX
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	cmpl	$1, %r15d
	jne	LBB0_4
## %bb.3:
	decl	%edi
	xorl	%esi, %esi
	callq	_R_MAX
	jmp	LBB0_9
LBB0_5:
	movl	16(%rbx), %edi
	movq	_R_SELWIDGET_MAXH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	decl	%esi
	callq	_R_MIN
	movq	%rax, %r14
	movl	8(%rbx), %edi
	addl	%r15d, %edi
	movl	20(%rbx), %esi
	decl	%esi
	callq	_R_MIN
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	cmpl	$1, %r15d
	jne	LBB0_7
## %bb.6:
	incl	%edi
	movl	(%r12), %esi
	decl	%esi
	callq	_R_MIN
	jmp	LBB0_9
LBB0_4:
	cmpl	%eax, %edi
	jge	LBB0_9
	jmp	LBB0_10
LBB0_7:
	addl	%r14d, %eax
	movl	%eax, %edx
	subl	%edi, %edx
	movl	20(%rbx), %ecx
	cmpl	%ecx, %edx
	jl	LBB0_10
## %bb.8:
	subl	%ecx, %eax
	incl	%eax
LBB0_9:
	movl	%eax, 12(%rbx)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I,8,3                          ## @I
	.comm	_R_SELWIDGET_DIR_UP,8,3         ## @R_SELWIDGET_DIR_UP
	.comm	_R_SELWIDGET_MAXH,4,2           ## @R_SELWIDGET_MAXH
	.no_dead_strip	_selection_widget_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selection_widget_down
_selection_widget_down:                 ; @selection_widget_down
	.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
Lloh0:
	adrp	x8, _I@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cbz	x21, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _R_SELWIDGET_DIR_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_SELWIDGET_DIR_UP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x21, #8]
	sub	w0, w8, w19
	mov	w1, #0
	bl	_R_MAX
	str	w0, [x21, #8]
	ldr	w8, [x21, #12]
	cmp	w19, #1
	b.ne	LBB0_6
; %bb.3:
	sub	w0, w8, #1
	mov	w1, #0
	bl	_R_MAX
	str	w0, [x21, #12]
	b	LBB0_10
LBB0_4:
	ldr	w0, [x21, #16]
Lloh6:
	adrp	x22, _R_SELWIDGET_MAXH@GOTPAGE
Lloh7:
	ldr	x22, [x22, _R_SELWIDGET_MAXH@GOTPAGEOFF]
	ldr	w8, [x22]
	sub	w1, w8, #1
	bl	_R_MIN
	mov	x20, x0
	ldr	w8, [x21, #8]
	add	w0, w8, w19
	ldr	w8, [x21, #20]
	sub	w1, w8, #1
	bl	_R_MIN
	str	w0, [x21, #8]
	ldr	w8, [x21, #12]
	cmp	w19, #1
	b.ne	LBB0_8
; %bb.5:
	add	w0, w8, #1
	ldr	w8, [x22]
	sub	w1, w8, #1
	bl	_R_MIN
	str	w0, [x21, #12]
	b	LBB0_10
LBB0_6:
	cmp	w8, w0
	b.lt	LBB0_10
; %bb.7:
	str	w0, [x21, #12]
	b	LBB0_10
LBB0_8:
	add	w9, w0, w20
	sub	w10, w9, w8
	ldr	w8, [x21, #20]
	cmp	w10, w8
	b.lt	LBB0_10
; %bb.9:
	sub	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x21, #12]
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I,8,3                          ; @I
	.comm	_R_SELWIDGET_DIR_UP,8,3         ; @R_SELWIDGET_DIR_UP
	.comm	_R_SELWIDGET_MAXH,4,2           ; @R_SELWIDGET_MAXH
	.no_dead_strip	_selection_widget_down
.subsections_via_symbols
