	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_best_mode                  ## -- Begin function get_best_mode
	.p2align	4, 0x90
_get_best_mode:                         ## @get_best_mode
	.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
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_MODE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_CLASS_NARROWEST_MODE
	movq	_VOIDmode@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_GET_MODE_BITSIZE
	movl	%eax, %ebx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ebx
	addl	%r13d, %edx
	cmpl	%ebx, %edx
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	callq	_GET_MODE_WIDER_MODE
	movl	%eax, %r15d
	cmpl	(%r14), %eax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_4:
	cmpl	(%r14), %r15d
	je	LBB0_8
## %bb.5:
	movq	_BIGGEST_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_MIN
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_8
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	je	LBB0_9
## %bb.7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_GET_MODE_BITSIZE
	cmpl	%eax, %ebx
	jbe	LBB0_9
LBB0_8:
	movl	(%r14), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.10:
	movq	_SLOW_BYTE_ACCESS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_13
LBB0_11:
	testl	%ecx, %ecx
	je	LBB0_23
## %bb.12:
	movq	_targetm@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	testl	%eax, %eax
	jne	LBB0_23
LBB0_13:
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_MODE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GET_CLASS_NARROWEST_MODE
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	jne	LBB0_14
LBB0_22:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jne	LBB0_24
LBB0_23:
	movl	%r15d, %eax
	jmp	LBB0_24
LBB0_14:
	leal	(%r12,%r13), %eax
	decl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_15
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %edi
	callq	_GET_MODE_WIDER_MODE
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	je	LBB0_22
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GET_MODE_BITSIZE
	movl	%eax, %r13d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	divl	%r13d
	cmpl	%eax, %ecx
	jne	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_BITS_PER_WORD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_BIGGEST_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MIN
	cmpl	%eax, %r13d
	ja	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_GET_MODE_BITSIZE
	cmpl	%eax, %r13d
	jbe	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_INT,4,2                   ## @MODE_INT
	.comm	_VOIDmode,4,2                   ## @VOIDmode
	.comm	_BIGGEST_ALIGNMENT,4,2          ## @BIGGEST_ALIGNMENT
	.comm	_SLOW_BYTE_ACCESS,8,3           ## @SLOW_BYTE_ACCESS
	.comm	_targetm,8,3                    ## @targetm
	.comm	_BITS_PER_WORD,4,2              ## @BITS_PER_WORD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_best_mode                  ; -- Begin function get_best_mode
	.p2align	2
_get_best_mode:                         ; @get_best_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x28, _MODE_INT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _MODE_INT@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_GET_CLASS_NARROWEST_MODE
Lloh2:
	adrp	x26, _VOIDmode@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VOIDmode@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x20, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_GET_MODE_BITSIZE
	udiv	w8, w22, w0
	msub	w8, w8, w0, w22
	add	w8, w8, w23
	cmp	w8, w0
	b.ls	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_GET_MODE_WIDER_MODE
	mov	x20, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_2
	b	LBB0_8
LBB0_4:
	ldr	w8, [x26]
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.5:
	mov	x25, x0
Lloh4:
	adrp	x8, _BIGGEST_ALIGNMENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BIGGEST_ALIGNMENT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_MIN
	cmp	w0, w21
	b.hi	LBB0_8
; %bb.6:
	ldr	w8, [x26]
	cmp	w8, w19
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_GET_MODE_BITSIZE
	cmp	w25, w0
	b.ls	LBB0_10
LBB0_8:
	ldr	w24, [x26]
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	cbnz	w24, LBB0_12
; %bb.11:
Lloh7:
	adrp	x8, _SLOW_BYTE_ACCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SLOW_BYTE_ACCESS@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
LBB0_12:
	cbz	w24, LBB0_16
; %bb.13:
Lloh10:
	adrp	x8, _targetm@GOTPAGE
Lloh11:
	ldr	x8, [x8, _targetm@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	blr	x8
	cbnz	w0, LBB0_16
LBB0_14:
	ldr	w24, [x26]
	ldr	w0, [x28]
	bl	_GET_CLASS_NARROWEST_MODE
	mov	x25, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_17
LBB0_15:
	cmp	w24, w25
	b.ne	LBB0_9
LBB0_16:
	mov	x24, x20
	b	LBB0_9
LBB0_17:
	add	w8, w23, w22
	sub	w28, w8, #1
Lloh13:
	adrp	x27, _BITS_PER_WORD@GOTPAGE
Lloh14:
	ldr	x27, [x27, _BITS_PER_WORD@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x24, x25
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x25
	bl	_GET_MODE_WIDER_MODE
	mov	x25, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_15
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_GET_MODE_BITSIZE
	udiv	w8, w22, w0
	udiv	w9, w28, w0
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x23, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.hi	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
Lloh15:
	adrp	x8, _BIGGEST_ALIGNMENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIGGEST_ALIGNMENT@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MIN
	cmp	w23, w0
	b.hi	LBB0_19
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w8, [x26]
	cmp	w8, w19
	b.eq	LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x19
	bl	_GET_MODE_BITSIZE
	cmp	w23, w0
	b.ls	LBB0_18
	b	LBB0_19
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_INT,4,2                   ; @MODE_INT
	.comm	_VOIDmode,4,2                   ; @VOIDmode
	.comm	_BIGGEST_ALIGNMENT,4,2          ; @BIGGEST_ALIGNMENT
	.comm	_SLOW_BYTE_ACCESS,8,3           ; @SLOW_BYTE_ACCESS
	.comm	_targetm,8,3                    ; @targetm
	.comm	_BITS_PER_WORD,4,2              ; @BITS_PER_WORD
.subsections_via_symbols
