	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_rescan
_cmd_rescan:                            ## @cmd_rescan
	.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
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	_optreset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_optind@GOTPCREL(%rip), %r12
	movl	$1, (%r12)
	movb	$1, %cl
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	xorl	%ecx, %ecx
	cmpl	$97, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.3:
	testb	$1, %bl
	je	LBB0_12
## %bb.4:
	movslq	(%r12), %rax
	subl	%eax, %r13d
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.5:
	leaq	(%r14,%rax,8), %r14
	movl	%r13d, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_rescan_ctrlr
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_ctrlrunit
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r14,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_warnx
	jmp	LBB0_9
LBB0_11:
	movl	%r13d, %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cmd_help                       ## TAILCALL
LBB0_12:
	movq	_rescan_ctrlr@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_mlx_foreach
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_optreset,4,2                   ## @optreset
	.comm	_optind,4,2                     ## @optind
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a"

L_.str.1:                               ## @.str.1
	.asciz	"'%s' is not a valid controller"

	.no_dead_strip	_cmd_rescan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_rescan
_cmd_rescan:                            ; @cmd_rescan
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _optreset@GOTPAGE
Lloh1:
	ldr	x9, [x9, _optreset@GOTPAGEOFF]
	mov	w8, #1
Lloh2:
	str	w8, [x9]
Lloh3:
	adrp	x22, _optind@GOTPAGE
Lloh4:
	ldr	x22, [x22, _optind@GOTPAGEOFF]
	str	w8, [x22]
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x8
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	mov	w8, #0
	cmp	w0, #97
	b.eq	LBB0_1
; %bb.2:
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.3:
	tbz	w23, #0, LBB0_11
; %bb.4:
	ldrsw	x8, [x22]
	sub	w20, w20, w8
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.5:
	add	x21, x19, x8, lsl #3
Lloh7:
	adrp	x19, l_.str.1@PAGE
Lloh8:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, #0
	bl	_rescan_ctrlr
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_ctrlrunit
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x21]
	mov	x0, x19
	bl	_warnx
	b	LBB0_7
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	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	_cmd_help
LBB0_11:
Lloh9:
	adrp	x0, _rescan_ctrlr@GOTPAGE
Lloh10:
	ldr	x0, [x0, _rescan_ctrlr@GOTPAGEOFF]
	mov	x1, #0
	bl	_mlx_foreach
LBB0_12:
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_optreset,4,2                   ; @optreset
	.comm	_optind,4,2                     ; @optind
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

l_.str.1:                               ; @.str.1
	.asciz	"'%s' is not a valid controller"

	.no_dead_strip	_cmd_rescan
.subsections_via_symbols
