	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_button_x_step              ## -- Begin function dlg_button_x_step
	.p2align	4, 0x90
_dlg_button_x_step:                     ## @dlg_button_x_step
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_dlg_button_count
	movl	$0, (%r12)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	callq	_dlg_button_sizes
	leal	(%rbx,%rbx), %esi
	addl	-44(%rbp), %esi
	subl	%esi, %r13d
	leal	3(%rbx), %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, (%r15)
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	addl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leal	1(%rbx), %ecx
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	cmpl	$2, %eax
	movl	$1, %eax
	cmovgel	%ecx, %eax
	movl	%eax, (%r15)
LBB0_5:
	movl	%eax, (%r12)
	leal	(%rbx,%rsi), %eax
	decl	%eax
	cltd
	idivl	%ebx
	addl	(%r15), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	cmpl	$0, (%r15)
	setg	%al
	testl	%r13d, %r13d
	setns	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dlg_button_x_step              ; -- Begin function dlg_button_x_step
	.p2align	2
_dlg_button_x_step:                     ; @dlg_button_x_step
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	bl	_dlg_button_count
	str	wzr, [x21]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x24
	bl	_dlg_button_sizes
	ldr	w8, [sp, #8]
	add	w9, w8, w22, lsl #1
	sub	w8, w23, w9
	add	w10, w22, #3
	sdiv	w10, w8, w10
	str	w10, [x20]
	cmp	w10, #0
	b.le	LBB0_3
; %bb.2:
	lsl	w10, w10, #1
	b	LBB0_4
LBB0_3:
	add	w10, w22, #1
	sdiv	w10, w8, w10
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	str	w10, [x20]
LBB0_4:
	str	w10, [x21]
	ldr	w10, [x20]
	add	w9, w22, w9
	sub	w9, w9, #1
	sdiv	w9, w9, w22
	add	w9, w9, w10
	str	w9, [x19]
	ldr	w9, [x20]
	cmp	w9, #0
	ccmp	w8, #0, #8, gt
	cset	w0, ge
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
