	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_div_scale
_select_div_scale:                      ## @select_div_scale
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdi), %esi
	xorl	%r8d, %r8d
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_2
LBB0_5:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_3:
	subl	16(%rdi), %ecx
LBB0_6:
	movl	(%r15), %r9d
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.7:
	movq	8(%r15), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rax,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_8
## %bb.11:
	xorl	%r8d, %r8d
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movl	16(%r15), %r8d
	subl	%eax, %r8d
LBB0_13:
	addl	%ecx, %r8d
	xorl	%eax, %eax
	cmpq	%rbx, %rdx
	setle	%al
	movq	_NUMERIC_MIN_SIG_DIGITS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r8d
	addl	%eax, %r8d
	movl	20(%rdi), %esi
	movl	%r8d, %edi
	callq	_Max
	movl	20(%r15), %esi
	movl	%eax, %edi
	callq	_Max
	movq	_NUMERIC_MIN_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Max
	movq	_NUMERIC_MAX_DISPLAY_SCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_Min
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %ecx
	movl	%ecx, (%r14)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMERIC_MIN_SIG_DIGITS,4,2     ## @NUMERIC_MIN_SIG_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ## @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_NUMERIC_MAX_DISPLAY_SCALE,4,2  ## @NUMERIC_MAX_DISPLAY_SCALE
	.no_dead_strip	_select_div_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_div_scale
_select_div_scale:                      ; @select_div_scale
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x11, x10, lsl #3]
	cbnz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
LBB0_4:
	mov	x8, #0
	mov	w9, #0
	b	LBB0_6
LBB0_5:
	ldr	w9, [x0, #16]
	sub	w9, w10, w9
LBB0_6:
	ldr	w10, [x20]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x11, #0
	ldr	x13, [x20, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x13, x11, lsl #3]
	cbnz	x12, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.ne	LBB0_8
LBB0_10:
	mov	w10, #0
	mov	x12, #0
	b	LBB0_12
LBB0_11:
	ldr	w10, [x20, #16]
	sub	w10, w10, w11
LBB0_12:
Lloh0:
	adrp	x11, _NUMERIC_MIN_SIG_DIGITS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NUMERIC_MIN_SIG_DIGITS@GOTPAGEOFF]
	cmp	x8, x12
Lloh2:
	ldr	w8, [x11]
	add	w9, w10, w9
	add	w8, w9, w8
	cinc	w8, w8, le
	ldr	w1, [x0, #20]
	mov	x0, x8
	bl	_Max
	ldr	w1, [x20, #20]
	bl	_Max
Lloh3:
	adrp	x8, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUMERIC_MIN_DISPLAY_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_Max
Lloh6:
	adrp	x8, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUMERIC_MAX_DISPLAY_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_Min
	add	w8, w0, #4
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMERIC_MIN_SIG_DIGITS,4,2     ; @NUMERIC_MIN_SIG_DIGITS
	.comm	_NUMERIC_MIN_DISPLAY_SCALE,4,2  ; @NUMERIC_MIN_DISPLAY_SCALE
	.comm	_NUMERIC_MAX_DISPLAY_SCALE,4,2  ; @NUMERIC_MAX_DISPLAY_SCALE
	.no_dead_strip	_select_div_scale
.subsections_via_symbols
