	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_coalesce_choose_scale
_rtl_coalesce_choose_scale:             ## @rtl_coalesce_choose_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_rtl_coalesce_info
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_max
	movq	_RTL_COALESCE_T_MAX@GOTPCREL(%rip), %r12
	imull	(%r12), %eax
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_max
	imull	(%r12), %eax
	movl	$1, %ecx
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_max
	imull	(%r12), %eax
	movl	$2, %ecx
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movq	24(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_max
	imull	(%r12), %eax
	movl	$3, %ecx
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movl	%ecx, %eax
	movl	%ecx, (%r14)
	shlq	$3, %rax
	addq	(%rbx), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_COALESCE_T_MAX,4,2         ## @RTL_COALESCE_T_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtl_coalesce_choose_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_coalesce_choose_scale
_rtl_coalesce_choose_scale:             ; @rtl_coalesce_choose_scale
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_rtl_coalesce_info
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_ERR_CAST
LBB0_2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldp	w0, w1, [x8]
	bl	_max
Lloh0:
	adrp	x22, _RTL_COALESCE_T_MAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RTL_COALESCE_T_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	mul	w8, w8, w0
	cmp	w8, w21
	b.ge	LBB0_7
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldp	w0, w1, [x8]
	bl	_max
	ldr	w8, [x22]
	mul	w8, w8, w0
	cmp	w8, w21
	b.ge	LBB0_8
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8, #16]
	ldp	w0, w1, [x8]
	bl	_max
	ldr	w8, [x22]
	mul	w8, w8, w0
	cmp	w8, w21
	b.ge	LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	ldp	w0, w1, [x8]
	bl	_max
	ldr	w8, [x22]
	mul	w8, w8, w0
	cmp	w8, w21
	b.ge	LBB0_10
; %bb.6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_7:
	mov	w8, #0
	b	LBB0_11
LBB0_8:
	mov	w8, #1
	b	LBB0_11
LBB0_9:
	mov	w8, #2
	b	LBB0_11
LBB0_10:
	mov	w8, #3
LBB0_11:
	str	w8, [x19]
	ldr	x9, [x20]
	add	x0, x9, w8, uxtw #3
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_COALESCE_T_MAX,4,2         ; @RTL_COALESCE_T_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtl_coalesce_choose_scale
.subsections_via_symbols
